@@ -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} |
@@ -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} |
@@ -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; |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | protected string $value; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * {@inheritdoc} |
|
| 31 | - */ |
|
| 30 | + * {@inheritdoc} |
|
| 31 | + */ |
|
| 32 | 32 | public function __construct(string $markup, &$tokens, Parser $parser) |
| 33 | 33 | { |
| 34 | 34 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
@@ -15,8 +15,7 @@ discard block |
||
| 15 | 15 | * |
| 16 | 16 | * @author tony |
| 17 | 17 | */ |
| 18 | -class LangTag extends AbstractTag |
|
| 19 | -{ |
|
| 18 | +class LangTag extends AbstractTag { |
|
| 20 | 19 | |
| 21 | 20 | /** |
| 22 | 21 | * Value to debug |
@@ -27,8 +26,7 @@ discard block |
||
| 27 | 26 | /** |
| 28 | 27 | * {@inheritdoc} |
| 29 | 28 | */ |
| 30 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
| 31 | - { |
|
| 29 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
| 32 | 30 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
| 33 | 31 | if ($lexer->match($markup)) { |
| 34 | 32 | $this->value = $lexer->getStringMatch(0); |
@@ -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 | |
@@ -63,8 +63,7 @@ discard block |
||
| 63 | 63 | * class HttpKernel |
| 64 | 64 | * @package Platine\Framework\Kernel |
| 65 | 65 | */ |
| 66 | -class HttpKernel extends BaseKernel implements RequestHandlerInterface |
|
| 67 | -{ |
|
| 66 | +class HttpKernel extends BaseKernel implements RequestHandlerInterface { |
|
| 68 | 67 | |
| 69 | 68 | /** |
| 70 | 69 | * The router instance |
@@ -83,8 +82,7 @@ discard block |
||
| 83 | 82 | * @param Application $app |
| 84 | 83 | * @param Router $router |
| 85 | 84 | */ |
| 86 | - public function __construct(Application $app, Router $router) |
|
| 87 | - { |
|
| 85 | + public function __construct(Application $app, Router $router) { |
|
| 88 | 86 | parent::__construct($app); |
| 89 | 87 | $this->router = $router; |
| 90 | 88 | } |