Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preparatory work to add a silent response (#32)
* Preparatory work to add a silent response Added a code enum to own our own HTTP code source so we can better work with Psalm annotations. We improved our code to the point that we are now at Psalm level 3, these code improvements have also had a positive effect on PHPStan as the last "phpstan-ignore" annotations could now be removed. * Preparatory work to add a silent response Fix code style * Preparatory work to add a silent response Update PHPUnit to version 10 and fix all deprecations of phpunit and php-cs-fixer * Add a silent response * Add a silent response * Add infectionphp now this package using infectionphp to check the qualitify of the unittests * Add infectionphp now this package using infectionphp to check the qualitify of the unittests * Fix phpstan issues
- Loading branch information
1 parent
564b4b8
commit 96e94d7
Showing
15 changed files
with
309 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Dropelikeit\LaravelJmsSerializer\Http; | ||
|
||
enum Code | ||
{ | ||
public const HTTP_CODE_CONTINUE = 100; | ||
public const HTTP_CODE_SWITCHING_PROTOCOLS = 101; | ||
public const HTTP_CODE_PROCESSING = 102; | ||
public const HTTP_CODE_EARLY_HINTS = 103; | ||
public const HTTP_CODE_OK = 200; | ||
public const HTTP_CODE_CREATED = 201; | ||
public const HTTP_CODE_ACCEPTED = 202; | ||
public const HTTP_CODE_NON_AUTHORITATIVE_INFORMATION = 203; | ||
public const HTTP_CODE_NO_CONTENT = 204; | ||
public const HTTP_CODE_RESET_CONTENT = 205; | ||
public const HTTP_CODE_PARTIAL_CONTENT = 206; | ||
public const HTTP_CODE_MULTI_STATUS = 207; | ||
public const HTTP_CODE_ALREADY_REPORTED = 208; | ||
public const HTTP_CODE_IM_USED = 226; | ||
public const HTTP_CODE_MULTIPLE_CHOICES = 300; | ||
public const HTTP_CODE_MOVED_PERMANENTLY = 301; | ||
public const HTTP_CODE_FOUND = 302; | ||
public const HTTP_CODE_SEE_OTHER = 303; | ||
public const HTTP_CODE_NOT_MODIFIED = 304; | ||
public const HTTP_CODE_USE_PROXY = 305; | ||
public const HTTP_CODE_RESERVED = 306; | ||
public const HTTP_CODE_TEMPORARY_REDIRECT = 307; | ||
public const HTTP_CODE_PERMANENTLY_REDIRECT = 308; | ||
public const HTTP_CODE_BAD_REQUEST = 400; | ||
public const HTTP_CODE_UNAUTHORIZED = 401; | ||
public const HTTP_CODE_PAYMENT_REQUIRED = 402; | ||
public const HTTP_CODE_FORBIDDEN = 403; | ||
public const HTTP_CODE_NOT_FOUND = 404; | ||
public const HTTP_CODE_METHOD_NOT_ALLOWED = 405; | ||
public const HTTP_CODE_NOT_ACCEPTABLE = 406; | ||
public const HTTP_CODE_PROXY_AUTHENTICATION_REQUIRED = 407; | ||
public const HTTP_CODE_REQUEST_TIMEOUT = 408; | ||
public const HTTP_CODE_CONFLICT = 409; | ||
public const HTTP_CODE_GONE = 410; | ||
public const HTTP_CODE_LENGTH_REQUIRED = 411; | ||
public const HTTP_CODE_PRECONDITION_FAILED = 412; | ||
public const HTTP_CODE_REQUEST_ENTITY_TOO_LARGE = 413; | ||
public const HTTP_CODE_REQUEST_URI_TOO_LONG = 414; | ||
public const HTTP_CODE_UNSUPPORTED_MEDIA_TYPE = 415; | ||
public const HTTP_CODE_REQUESTED_RANGE_NOT_SATISFIABLE = 416; | ||
public const HTTP_CODE_EXPECTATION_FAILED = 417; | ||
public const HTTP_CODE_I_AM_A_TEAPOT = 418; | ||
public const HTTP_CODE_MISDIRECTED_REQUEST = 421; | ||
public const HTTP_CODE_UNPROCESSABLE_ENTITY = 422; | ||
public const HTTP_CODE_LOCKED = 423; | ||
public const HTTP_CODE_FAILED_DEPENDENCY = 424; | ||
public const HTTP_CODE_TOO_EARLY = 425; | ||
public const HTTP_CODE_UPGRADE_REQUIRED = 426; | ||
public const HTTP_CODE_PRECONDITION_REQUIRED = 428; | ||
public const HTTP_CODE_TOO_MANY_REQUESTS = 429; | ||
public const HTTP_CODE_REQUEST_HEADER_FIELDS_TOO_LARGE = 431; | ||
public const HTTP_CODE_UNAVAILABLE_FOR_LEGAL_REASONS = 451; | ||
public const HTTP_CODE_INTERNAL_SERVER_ERROR = 500; | ||
public const HTTP_CODE_NOT_IMPLEMENTED = 501; | ||
public const HTTP_CODE_BAD_GATEWAY = 502; | ||
public const HTTP_CODE_SERVICE_UNAVAILABLE = 503; | ||
public const HTTP_CODE_GATEWAY_TIMEOUT = 504; | ||
public const HTTP_CODE_VERSION_NOT_SUPPORTED = 505; | ||
public const HTTP_CODE_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL = 506; | ||
public const HTTP_CODE_INSUFFICIENT_STORAGE = 507; | ||
public const HTTP_CODE_LOOP_DETECTED = 508; | ||
public const HTTP_CODE_NOT_EXTENDED = 510; | ||
public const HTTP_CODE_NETWORK_AUTHENTICATION_REQUIRED = 511; | ||
} |
Oops, something went wrong.