@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * class SessionAuthorization |
| 55 | 55 | * @package Platine\Framework\Auth\Authorization |
| 56 | 56 | */ |
| 57 | -class SessionAuthorization implements AuthorizationInterface |
|
| 58 | -{ |
|
| 57 | +class SessionAuthorization implements AuthorizationInterface { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * The session instance to use |
@@ -163,11 +163,11 @@ |
||
| 163 | 163 | } |
| 164 | 164 | |
| 165 | 165 | $data = [ |
| 166 | - 'id' => $user->id, |
|
| 167 | - 'username' => $user->username, |
|
| 168 | - 'lastname' => $user->lastname, |
|
| 169 | - 'firstname' => $user->firstname, |
|
| 170 | - 'permissions' => array_unique($permissions), |
|
| 166 | + 'id' => $user->id, |
|
| 167 | + 'username' => $user->username, |
|
| 168 | + 'lastname' => $user->lastname, |
|
| 169 | + 'firstname' => $user->firstname, |
|
| 170 | + 'permissions' => array_unique($permissions), |
|
| 171 | 171 | ]; |
| 172 | 172 | |
| 173 | 173 | $this->session->set('user', $data); |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * class SessionAuthentication |
| 62 | 62 | * @package Platine\Framework\Auth\Authentication |
| 63 | 63 | */ |
| 64 | -class SessionAuthentication implements AuthenticationInterface |
|
| 65 | -{ |
|
| 64 | +class SessionAuthentication implements AuthenticationInterface { |
|
| 66 | 65 | |
| 67 | 66 | /** |
| 68 | 67 | * The session instance to use |
@@ -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 |
@@ -53,8 +53,7 @@ discard block |
||
| 53 | 53 | * @class BaseKernel |
| 54 | 54 | * @package Platine\Framework\Kernel |
| 55 | 55 | */ |
| 56 | -class BaseKernel |
|
| 57 | -{ |
|
| 56 | +class BaseKernel { |
|
| 58 | 57 | |
| 59 | 58 | /** |
| 60 | 59 | * Application instance |
@@ -66,8 +65,7 @@ discard block |
||
| 66 | 65 | * Create new instance |
| 67 | 66 | * @param Application $app |
| 68 | 67 | */ |
| 69 | - public function __construct(Application $app) |
|
| 70 | - { |
|
| 68 | + public function __construct(Application $app) { |
|
| 71 | 69 | $this->app = $app; |
| 72 | 70 | } |
| 73 | 71 | |
@@ -67,8 +67,7 @@ |
||
| 67 | 67 | * @package Platine\Framework\Kernel |
| 68 | 68 | * @template T |
| 69 | 69 | */ |
| 70 | -class HttpKernel extends BaseKernel implements RequestHandlerInterface |
|
| 71 | -{ |
|
| 70 | +class HttpKernel extends BaseKernel implements RequestHandlerInterface { |
|
| 72 | 71 | |
| 73 | 72 | /** |
| 74 | 73 | * The router instance |
@@ -58,8 +58,7 @@ discard block |
||
| 58 | 58 | * @package Platine\Framework\Kernel |
| 59 | 59 | * @template T |
| 60 | 60 | */ |
| 61 | -class ConsoleKernel extends BaseKernel |
|
| 62 | -{ |
|
| 61 | +class ConsoleKernel extends BaseKernel { |
|
| 63 | 62 | |
| 64 | 63 | protected ConsoleApp $console; |
| 65 | 64 | |
@@ -80,8 +79,7 @@ discard block |
||
| 80 | 79 | * @param Application $app |
| 81 | 80 | * @param ConsoleApp $console |
| 82 | 81 | */ |
| 83 | - public function __construct(Application $app, ConsoleApp $console) |
|
| 84 | - { |
|
| 82 | + public function __construct(Application $app, ConsoleApp $console) { |
|
| 85 | 83 | parent::__construct($app); |
| 86 | 84 | $this->console = $console; |
| 87 | 85 | } |