@@ -41,8 +41,7 @@ discard block |
||
| 41 | 41 | * @class HttpException |
| 42 | 42 | * @package Platine\Framework\Http\Exception |
| 43 | 43 | */ |
| 44 | -class HttpException extends Exception |
|
| 45 | -{
|
|
| 44 | +class HttpException extends Exception { |
|
| 46 | 45 | /** |
| 47 | 46 | * The instance of server request that throw this exception |
| 48 | 47 | * @var ServerRequestInterface |
@@ -79,7 +78,7 @@ discard block |
||
| 79 | 78 | string $message = '', |
| 80 | 79 | int $code = 0, |
| 81 | 80 | ?Throwable $previous = null |
| 82 | - ) {
|
|
| 81 | + ) { |
|
| 83 | 82 | parent::__construct($message, $code, $previous); |
| 84 | 83 | $this->request = $request; |
| 85 | 84 | } |
@@ -40,8 +40,7 @@ discard block |
||
| 40 | 40 | * @class HttpNotFoundException |
| 41 | 41 | * @package Platine\Framework\Http\Exception |
| 42 | 42 | */ |
| 43 | -class HttpNotFoundException extends HttpSpecialException |
|
| 44 | -{
|
|
| 43 | +class HttpNotFoundException extends HttpSpecialException { |
|
| 45 | 44 | /** |
| 46 | 45 | * |
| 47 | 46 | * @var int |
@@ -66,7 +65,7 @@ discard block |
||
| 66 | 65 | ServerRequestInterface $request, |
| 67 | 66 | ?string $message = null, |
| 68 | 67 | ?Throwable $previous = null |
| 69 | - ) {
|
|
| 68 | + ) { |
|
| 70 | 69 | parent::__construct($request, $message, $previous); |
| 71 | 70 | |
| 72 | 71 | $this->description = sprintf( |
@@ -39,8 +39,7 @@ |
||
| 39 | 39 | * @class HttpForbiddenException |
| 40 | 40 | * @package Platine\Framework\Http\Exception |
| 41 | 41 | */ |
| 42 | -class HttpForbiddenException extends HttpSpecialException |
|
| 43 | -{
|
|
| 42 | +class HttpForbiddenException extends HttpSpecialException { |
|
| 44 | 43 | /** |
| 45 | 44 | * |
| 46 | 45 | * @var int |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpNotImplementedException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpNotImplementedException extends HttpSpecialException |
|
| 41 | -{
|
|
| 40 | +class HttpNotImplementedException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpBadRequestException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpBadRequestException extends HttpSpecialException |
|
| 41 | -{
|
|
| 40 | +class HttpBadRequestException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpInternalServerErrorException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpInternalServerErrorException extends HttpSpecialException |
|
| 41 | -{
|
|
| 40 | +class HttpInternalServerErrorException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |
@@ -40,8 +40,7 @@ discard block |
||
| 40 | 40 | * @class HttpSpecialException |
| 41 | 41 | * @package Platine\Framework\Http\Exception |
| 42 | 42 | */ |
| 43 | -abstract class HttpSpecialException extends HttpException |
|
| 44 | -{
|
|
| 43 | +abstract class HttpSpecialException extends HttpException { |
|
| 45 | 44 | /** |
| 46 | 45 | * Create new instance |
| 47 | 46 | * @param ServerRequestInterface $request |
@@ -52,8 +51,8 @@ discard block |
||
| 52 | 51 | ServerRequestInterface $request, |
| 53 | 52 | ?string $message = null, |
| 54 | 53 | ?Throwable $previous = null |
| 55 | - ) {
|
|
| 56 | - if ($message !== null) {
|
|
| 54 | + ) { |
|
| 55 | + if ($message !== null) { |
|
| 57 | 56 | $this->message = $message; |
| 58 | 57 | } |
| 59 | 58 | |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpUnauthorizedException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpUnauthorizedException extends HttpSpecialException |
|
| 41 | -{
|
|
| 40 | +class HttpUnauthorizedException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpMethodNotAllowedException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpMethodNotAllowedException extends HttpSpecialException |
|
| 41 | -{
|
|
| 40 | +class HttpMethodNotAllowedException extends HttpSpecialException { |
|
| 42 | 41 | /** |
| 43 | 42 | * |
| 44 | 43 | * @var int |