@@ -37,6 +37,5 @@ |
||
| 37 | 37 | * @class AccountLockedException |
| 38 | 38 | * @package Platine\Framework\Auth\Exception |
| 39 | 39 | */ |
| 40 | -class AccountLockedException extends AuthenticationException |
|
| 41 | -{ |
|
| 40 | +class AccountLockedException extends AuthenticationException { |
|
| 42 | 41 | } |
@@ -41,8 +41,7 @@ |
||
| 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 |
@@ -40,8 +40,7 @@ |
||
| 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 |
@@ -37,8 +37,7 @@ |
||
| 37 | 37 | * @class HttpNotFoundException |
| 38 | 38 | * @package Platine\Framework\Http\Exception |
| 39 | 39 | */ |
| 40 | -class HttpNotFoundException extends HttpSpecialException |
|
| 41 | -{ |
|
| 40 | +class HttpNotFoundException 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 |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | * @class HeadersAlreadySentException |
| 41 | 41 | * @package Platine\Framework\Http\Emitter\Exception |
| 42 | 42 | */ |
| 43 | -class HeadersAlreadySentException extends RuntimeException |
|
| 44 | -{ |
|
| 43 | +class HeadersAlreadySentException extends RuntimeException { |
|
| 45 | 44 | /** |
| 46 | 45 | * Create new instance |
| 47 | 46 | * @return self |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | * @class OutputAlreadySentException |
| 41 | 41 | * @package Platine\Http\Framework\Emitter\Exception |
| 42 | 42 | */ |
| 43 | -class OutputAlreadySentException extends RuntimeException |
|
| 44 | -{ |
|
| 43 | +class OutputAlreadySentException extends RuntimeException { |
|
| 45 | 44 | /** |
| 46 | 45 | * Create new instance |
| 47 | 46 | * @return self |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * @class AbstractMigration |
| 54 | 54 | * @package Platine\Framework\Migration |
| 55 | 55 | */ |
| 56 | -abstract class AbstractMigration extends Schema |
|
| 57 | -{ |
|
| 56 | +abstract class AbstractMigration extends Schema { |
|
| 58 | 57 | /** |
| 59 | 58 | * Execute when do migrate |
| 60 | 59 | * @return void |
@@ -212,10 +212,10 @@ |
||
| 212 | 212 | return $this; |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | - /** |
|
| 216 | - * Return the application root path |
|
| 217 | - * @return string |
|
| 218 | - */ |
|
| 215 | + /** |
|
| 216 | + * Return the application root path |
|
| 217 | + * @return string |
|
| 218 | + */ |
|
| 219 | 219 | public function getAppPath(): string |
| 220 | 220 | { |
| 221 | 221 | return $this->appPath; |
@@ -401,7 +401,7 @@ discard block |
||
| 401 | 401 | * @return EventInterface |
| 402 | 402 | */ |
| 403 | 403 | public function dispatch( |
| 404 | - string|EventInterface $eventName, |
|
| 404 | + string | EventInterface $eventName, |
|
| 405 | 405 | ?EventInterface $event = null |
| 406 | 406 | ): EventInterface { |
| 407 | 407 | return $this->dispatcher->dispatch($eventName, $event); |
@@ -418,7 +418,7 @@ discard block |
||
| 418 | 418 | */ |
| 419 | 419 | public function listen( |
| 420 | 420 | string $eventName, |
| 421 | - ListenerInterface|callable|string $listener, |
|
| 421 | + ListenerInterface | callable | string $listener, |
|
| 422 | 422 | int $priority = DispatcherInterface::PRIORITY_DEFAULT |
| 423 | 423 | ): self { |
| 424 | 424 | if (is_string($listener)) { |
@@ -503,7 +503,7 @@ discard block |
||
| 503 | 503 | * @return ServiceProvider |
| 504 | 504 | */ |
| 505 | 505 | public function registerServiceProvider( |
| 506 | - string|ServiceProvider $provider, |
|
| 506 | + string | ServiceProvider $provider, |
|
| 507 | 507 | bool $force = false |
| 508 | 508 | ): ServiceProvider { |
| 509 | 509 | $registered = $this->getServiceProvider($provider); |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | * @param string|ServiceProvider $provider |
| 532 | 532 | * @return ServiceProvider|null |
| 533 | 533 | */ |
| 534 | - public function getServiceProvider(string|ServiceProvider $provider): ?ServiceProvider |
|
| 534 | + public function getServiceProvider(string | ServiceProvider $provider): ?ServiceProvider |
|
| 535 | 535 | { |
| 536 | 536 | $name = is_string($provider) |
| 537 | 537 | ? $provider |
@@ -67,8 +67,7 @@ discard block |
||
| 67 | 67 | * @class Application |
| 68 | 68 | * @package Platine\Framework\App |
| 69 | 69 | */ |
| 70 | -class Application extends Container |
|
| 71 | -{ |
|
| 70 | +class Application extends Container { |
|
| 72 | 71 | /** |
| 73 | 72 | * The application version |
| 74 | 73 | */ |
@@ -156,8 +155,7 @@ discard block |
||
| 156 | 155 | * Create new instance |
| 157 | 156 | * @param string $basePath |
| 158 | 157 | */ |
| 159 | - public function __construct(string $basePath = '') |
|
| 160 | - { |
|
| 158 | + public function __construct(string $basePath = '') { |
|
| 161 | 159 | parent::__construct(); |
| 162 | 160 | |
| 163 | 161 | $this->basePath = $basePath; |