@@ -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; |
@@ -19,8 +19,7 @@ discard block |
||
| 19 | 19 | * |
| 20 | 20 | * @author tony |
| 21 | 21 | */ |
| 22 | -class ConfigCommand extends Command |
|
| 23 | -{ |
|
| 22 | +class ConfigCommand extends Command { |
|
| 24 | 23 | |
| 25 | 24 | protected Application $application; |
| 26 | 25 | protected Lang $lang; |
@@ -28,8 +27,7 @@ discard block |
||
| 28 | 27 | /** |
| 29 | 28 | * |
| 30 | 29 | */ |
| 31 | - public function __construct(Application $application, Lang $lang) |
|
| 32 | - { |
|
| 30 | + public function __construct(Application $application, Lang $lang) { |
|
| 33 | 31 | parent::__construct('config', 'Command to manage configuration'); |
| 34 | 32 | $this->setAlias('c'); |
| 35 | 33 | |
@@ -40,8 +38,7 @@ discard block |
||
| 40 | 38 | $this->lang = $lang; |
| 41 | 39 | } |
| 42 | 40 | |
| 43 | - public function execute() |
|
| 44 | - { |
|
| 41 | + public function execute() { |
|
| 45 | 42 | if ($this->getArgumentValue('list') === 'list') { |
| 46 | 43 | $this->showConfigList(); |
| 47 | 44 | } |
@@ -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; |
@@ -20,8 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @author tony |
| 22 | 22 | */ |
| 23 | -class LoginAction implements RequestHandlerInterface |
|
| 24 | -{ |
|
| 23 | +class LoginAction implements RequestHandlerInterface { |
|
| 25 | 24 | |
| 26 | 25 | protected LoggerInterface $logger; |
| 27 | 26 | protected Application $app; |
@@ -103,9 +103,9 @@ |
||
| 103 | 103 | $this->template, |
| 104 | 104 | 'login', |
| 105 | 105 | [ |
| 106 | - 'name' => $name, |
|
| 107 | - 'labelName' => $this->lang->tr('name'), |
|
| 108 | - 'lang' => $this->lang->getLocale() |
|
| 106 | + 'name' => $name, |
|
| 107 | + 'labelName' => $this->lang->tr('name'), |
|
| 108 | + 'lang' => $this->lang->getLocale() |
|
| 109 | 109 | ] |
| 110 | 110 | ); |
| 111 | 111 | } |
@@ -14,8 +14,7 @@ |
||
| 14 | 14 | * |
| 15 | 15 | * @author tony |
| 16 | 16 | */ |
| 17 | -class ListAction implements RequestHandlerInterface |
|
| 18 | -{ |
|
| 17 | +class ListAction implements RequestHandlerInterface { |
|
| 19 | 18 | protected UserRepository $userRepository; |
| 20 | 19 | protected Template $template; |
| 21 | 20 | |
@@ -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 | |
@@ -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 | protected Lang $lang; |
| 22 | 21 | |
@@ -29,8 +28,7 @@ discard block |
||
| 29 | 28 | /** |
| 30 | 29 | * {@inheritdoc} |
| 31 | 30 | */ |
| 32 | - public function __construct(string $markup, &$tokens, Parser $parser) |
|
| 33 | - { |
|
| 31 | + public function __construct(string $markup, &$tokens, Parser $parser) { |
|
| 34 | 32 | $lexer = new Lexer('/' . Token::QUOTED_FRAGMENT . '/'); |
| 35 | 33 | if ($lexer->match($markup)) { |
| 36 | 34 | //$this->variables = $this->variablesFromString($markup); |
@@ -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 | } |