@@ -10,8 +10,7 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * @author tony |
| 12 | 12 | */ |
| 13 | -class User extends Entity |
|
| 14 | -{ |
|
| 13 | +class User extends Entity { |
|
| 15 | 14 | |
| 16 | 15 | public static function mapEntity(EntityMapperInterface $mapper): void |
| 17 | 16 | { |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | $kernel = $app->make(HttpKernel::class); |
| 12 | 12 | |
| 13 | -$kernel->use(function($req, $h){ |
|
| 13 | +$kernel->use(function($req, $h) { |
|
| 14 | 14 | return $h->handle($req); |
| 15 | 15 | }); |
| 16 | 16 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | $kernel = $app->make(HttpKernel::class); |
| 12 | 12 | |
| 13 | -$kernel->use(function($req, $h){ |
|
| 13 | +$kernel->use(function($req, $h) { |
|
| 14 | 14 | return $h->handle($req); |
| 15 | 15 | }); |
| 16 | 16 | |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function register(): void |
| 71 | 71 | { |
| 72 | - $this->app->bind(Configuration::class, function (ContainerInterface $app) { |
|
| 72 | + $this->app->bind(Configuration::class, function(ContainerInterface $app) { |
|
| 73 | 73 | return new Configuration($app->get(Config::class)->get('lang', [])); |
| 74 | 74 | }); |
| 75 | 75 | $this->app->bind(StorageInterface::class, MemoryStorage::class); |
@@ -61,8 +61,7 @@ |
||
| 61 | 61 | * class LangServiceProvider |
| 62 | 62 | * @package Platine\Framework\Service\Provider |
| 63 | 63 | */ |
| 64 | -class LangServiceProvider extends ServiceProvider |
|
| 65 | -{ |
|
| 64 | +class LangServiceProvider extends ServiceProvider { |
|
| 66 | 65 | |
| 67 | 66 | /** |
| 68 | 67 | * {@inheritdoc} |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @author tony |
| 18 | 18 | */ |
| 19 | -class TemplateResponse extends Response |
|
| 20 | -{ |
|
| 19 | +class TemplateResponse extends Response { |
|
| 21 | 20 | |
| 22 | 21 | protected Template $template; |
| 23 | 22 | |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * class RepositoryServiceProvider |
| 55 | 55 | * @package Platine\Framework |
| 56 | 56 | */ |
| 57 | -class RepositoryServiceProvider extends ServiceProvider |
|
| 58 | -{ |
|
| 57 | +class RepositoryServiceProvider extends ServiceProvider { |
|
| 59 | 58 | |
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
@@ -53,8 +53,7 @@ |
||
| 53 | 53 | * class MyServiceProvider |
| 54 | 54 | * @package Platine\Framework |
| 55 | 55 | */ |
| 56 | -class MyServiceProvider extends ServiceProvider |
|
| 57 | -{ |
|
| 56 | +class MyServiceProvider extends ServiceProvider { |
|
| 58 | 57 | |
| 59 | 58 | /** |
| 60 | 59 | * {@inheritdoc} |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | * application instance will be returned |
| 55 | 55 | * @return mixed |
| 56 | 56 | */ |
| 57 | - function app(?string $identifier = null) |
|
| 58 | - { |
|
| 57 | + function app(?string $identifier = null) { |
|
| 59 | 58 | $app = Application::getInstance(); |
| 60 | 59 | |
| 61 | 60 | return $identifier ? $app->get($identifier) : $app; |
@@ -16,8 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @author tony |
| 18 | 18 | */ |
| 19 | -class DetailAction implements RequestHandlerInterface |
|
| 20 | -{ |
|
| 19 | +class DetailAction implements RequestHandlerInterface { |
|
| 21 | 20 | |
| 22 | 21 | protected LoggerInterface $logger; |
| 23 | 22 | protected UserRepository $userRepository; |
@@ -13,8 +13,7 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * @author tony |
| 15 | 15 | */ |
| 16 | -class LogoutAction implements RequestHandlerInterface |
|
| 17 | -{ |
|
| 16 | +class LogoutAction implements RequestHandlerInterface { |
|
| 18 | 17 | |
| 19 | 18 | protected Session $session; |
| 20 | 19 | |