@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class ApiAuthenticationInterface |
58 | 58 | * @package Platine\Framework\Auth |
59 | 59 | */ |
60 | -interface ApiAuthenticationInterface |
|
61 | -{ |
|
60 | +interface ApiAuthenticationInterface { |
|
62 | 61 | /** |
63 | 62 | * Whether the request is authenticated |
64 | 63 | * @param ServerRequestInterface $request |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class Permission |
55 | 55 | * @package Platine\Framework\Auth\Entity |
56 | 56 | */ |
57 | -class Permission extends Entity |
|
58 | -{ |
|
57 | +class Permission extends Entity { |
|
59 | 58 | /** |
60 | 59 | * {@inheritdoc} |
61 | 60 | */ |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class Role |
55 | 55 | * @package Platine\Framework\Auth\Entity |
56 | 56 | */ |
57 | -class Role extends Entity |
|
58 | -{ |
|
57 | +class Role extends Entity { |
|
59 | 58 | /** |
60 | 59 | * {@inheritdoc} |
61 | 60 | */ |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @class RouteMatchMiddleware |
61 | 61 | * @package Platine\Framework\Http\Middleware |
62 | 62 | */ |
63 | -class RouteMatchMiddleware implements MiddlewareInterface |
|
64 | -{ |
|
63 | +class RouteMatchMiddleware implements MiddlewareInterface { |
|
65 | 64 | /** |
66 | 65 | * The Router instance |
67 | 66 | * @var Router |
@@ -79,8 +78,7 @@ discard block |
||
79 | 78 | * @param Router $router |
80 | 79 | * @param array<string> $allowedMethods the default allowed methods |
81 | 80 | */ |
82 | - public function __construct(Router $router, array $allowedMethods = ['HEAD']) |
|
83 | - { |
|
81 | + public function __construct(Router $router, array $allowedMethods = ['HEAD']) { |
|
84 | 82 | $this->router = $router; |
85 | 83 | |
86 | 84 | foreach ($allowedMethods as $method) { |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | * @class RouteDispatcherMiddleware |
60 | 60 | * @package Platine\Framework\Http\Middleware |
61 | 61 | */ |
62 | -class RouteDispatcherMiddleware implements MiddlewareInterface |
|
63 | -{ |
|
62 | +class RouteDispatcherMiddleware implements MiddlewareInterface { |
|
64 | 63 | /** |
65 | 64 | * The Middleware resolver instance |
66 | 65 | * @var MiddlewareResolverInterface |
@@ -71,8 +70,7 @@ discard block |
||
71 | 70 | * Create new instance |
72 | 71 | * @param MiddlewareResolverInterface $resolver |
73 | 72 | */ |
74 | - public function __construct(MiddlewareResolverInterface $resolver) |
|
75 | - { |
|
73 | + public function __construct(MiddlewareResolverInterface $resolver) { |
|
76 | 74 | $this->resolver = $resolver; |
77 | 75 | } |
78 | 76 |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class TemplateResponse |
55 | 55 | * @package Platine\Framework\Http\Response |
56 | 56 | */ |
57 | -class TemplateResponse extends Response |
|
58 | -{ |
|
57 | +class TemplateResponse extends Response { |
|
59 | 58 | /** |
60 | 59 | * The template instance |
61 | 60 | * @var Template |
@@ -51,8 +51,7 @@ |
||
51 | 51 | * @class RestResponse |
52 | 52 | * @package Platine\Framework\Http\Response |
53 | 53 | */ |
54 | -class RestResponse extends JsonResponse |
|
55 | -{ |
|
54 | +class RestResponse extends JsonResponse { |
|
56 | 55 | /** |
57 | 56 | * Create new instance |
58 | 57 | * @param mixed $data |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class JsonResponse |
55 | 55 | * @package Platine\Framework\Http\Response |
56 | 56 | */ |
57 | -class JsonResponse extends Response |
|
58 | -{ |
|
57 | +class JsonResponse extends Response { |
|
59 | 58 | /** |
60 | 59 | * Create new instance |
61 | 60 | * @param mixed $data |
@@ -54,8 +54,7 @@ |
||
54 | 54 | * @class EmitterInterface |
55 | 55 | * @package Platine\Framework\Http\Emitter |
56 | 56 | */ |
57 | -interface EmitterInterface |
|
58 | -{ |
|
57 | +interface EmitterInterface { |
|
59 | 58 | /** |
60 | 59 | * Emits a HTTP response, that including status line, headers and message |
61 | 60 | * body, according to the environment. |