@@ -66,8 +66,7 @@ |
||
66 | 66 | * @package Platine\Framework\Kernel |
67 | 67 | * @template T |
68 | 68 | */ |
69 | -class HttpKernel extends BaseKernel implements RequestHandlerInterface |
|
70 | -{ |
|
69 | +class HttpKernel extends BaseKernel implements RequestHandlerInterface { |
|
71 | 70 | /** |
72 | 71 | * The router instance |
73 | 72 | * @var Router |
@@ -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 | * Application instance |
60 | 59 | * @var Application |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * Create new instance |
66 | 65 | * @param Application $app |
67 | 66 | */ |
68 | - public function __construct(Application $app) |
|
69 | - { |
|
67 | + public function __construct(Application $app) { |
|
70 | 68 | $this->app = $app; |
71 | 69 | } |
72 | 70 |
@@ -54,8 +54,7 @@ discard block |
||
54 | 54 | * @class ServerRequestUrlGenerator |
55 | 55 | * @package Platine\Framework\Pagination |
56 | 56 | */ |
57 | -class ServerRequestUrlGenerator implements UrlGeneratorInterface |
|
58 | -{ |
|
57 | +class ServerRequestUrlGenerator implements UrlGeneratorInterface { |
|
59 | 58 | /** |
60 | 59 | * The server request instance |
61 | 60 | * @var ServerRequestInterface |
@@ -79,8 +78,7 @@ discard block |
||
79 | 78 | * @param ServerRequestInterface $request |
80 | 79 | * @param string $queryName |
81 | 80 | */ |
82 | - public function __construct(ServerRequestInterface $request, string $queryName) |
|
83 | - { |
|
81 | + public function __construct(ServerRequestInterface $request, string $queryName) { |
|
84 | 82 | $this->request = $request; |
85 | 83 | $this->queryVarName = $queryName; |
86 | 84 |
@@ -53,8 +53,7 @@ discard block |
||
53 | 53 | * @class Flash |
54 | 54 | * @package Platine\Framework\Helper |
55 | 55 | */ |
56 | -class Flash |
|
57 | -{ |
|
56 | +class Flash { |
|
58 | 57 | /** |
59 | 58 | * The session instance |
60 | 59 | * @var Session |
@@ -65,8 +64,7 @@ discard block |
||
65 | 64 | * Create new instance |
66 | 65 | * @param Session $session |
67 | 66 | */ |
68 | - public function __construct(Session $session) |
|
69 | - { |
|
67 | + public function __construct(Session $session) { |
|
70 | 68 | $this->session = $session; |
71 | 69 | } |
72 | 70 |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @class ServiceProvider |
58 | 58 | * @package Platine\Framework\Service |
59 | 59 | */ |
60 | -class ServiceProvider |
|
61 | -{ |
|
60 | +class ServiceProvider { |
|
62 | 61 | /** |
63 | 62 | * The Application instance |
64 | 63 | * @var Application |
@@ -75,8 +74,7 @@ discard block |
||
75 | 74 | * Create new instance |
76 | 75 | * @param Application $app |
77 | 76 | */ |
78 | - public function __construct(Application $app) |
|
79 | - { |
|
77 | + public function __construct(Application $app) { |
|
80 | 78 | $this->app = $app; |
81 | 79 | } |
82 | 80 |
@@ -57,8 +57,7 @@ |
||
57 | 57 | * @class EventServiceProvider |
58 | 58 | * @package Platine\Framework\Service\Provider |
59 | 59 | */ |
60 | -class EventServiceProvider extends ServiceProvider |
|
61 | -{ |
|
60 | +class EventServiceProvider extends ServiceProvider { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -64,8 +64,7 @@ |
||
64 | 64 | * @class MigrationServiceProvider |
65 | 65 | * @package Platine\Framework\Service\Provider |
66 | 66 | */ |
67 | -class MigrationServiceProvider extends ServiceProvider |
|
68 | -{ |
|
67 | +class MigrationServiceProvider extends ServiceProvider { |
|
69 | 68 | /** |
70 | 69 | * {@inheritdoc} |
71 | 70 | */ |
@@ -55,8 +55,7 @@ |
||
55 | 55 | * @class SecurityServiceProvider |
56 | 56 | * @package Platine\Framework\Service\Provider |
57 | 57 | */ |
58 | -class SecurityServiceProvider extends ServiceProvider |
|
59 | -{ |
|
58 | +class SecurityServiceProvider extends ServiceProvider { |
|
60 | 59 | /** |
61 | 60 | * {@inheritdoc} |
62 | 61 | */ |
@@ -60,8 +60,7 @@ |
||
60 | 60 | * @class SessionServiceProvider |
61 | 61 | * @package Platine\Framework\Service\Provider |
62 | 62 | */ |
63 | -class SessionServiceProvider extends ServiceProvider |
|
64 | -{ |
|
63 | +class SessionServiceProvider extends ServiceProvider { |
|
65 | 64 | /** |
66 | 65 | * {@inheritdoc} |
67 | 66 | */ |
@@ -68,10 +68,10 @@ |
||
68 | 68 | public function register(): void |
69 | 69 | { |
70 | 70 | $cfg = $this->app->get(Config::class)->get('session', []); |
71 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) use ($cfg) { |
|
71 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) use ($cfg) { |
|
72 | 72 | return new Configuration($cfg); |
73 | 73 | }); |
74 | - $this->app->bind(SessionHandlerInterface::class, function (ContainerInterface $app) { |
|
74 | + $this->app->bind(SessionHandlerInterface::class, function(ContainerInterface $app) { |
|
75 | 75 | return new LocalStorage( |
76 | 76 | $app->get(Filesystem::class), |
77 | 77 | $app->get(Configuration::class) |