@@ -14,7 +14,7 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | $router->group( |
| 16 | 16 | ['controllerNamespace' => 'AbterPhp\Admin\\Http\\Controllers'], |
| 17 | - function (Router $router) { |
|
| 17 | + function(Router $router) { |
|
| 18 | 18 | /** @see \AbterPhp\Admin\Http\Controllers\Admin\Form\Login::display() */ |
| 19 | 19 | $router->get(PATH_LOGIN, 'Admin\Form\Login@display', [OPTION_NAME => Routes::ROUTE_LOGIN]); |
| 20 | 20 | /** @see \AbterPhp\Admin\Http\Controllers\Admin\Execute\Login::execute() */ |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | '', |
| 101 | 101 | '' |
| 102 | 102 | ); |
| 103 | - $entity = new Entity( |
|
| 103 | + $entity = new Entity( |
|
| 104 | 104 | (string)$entityId, |
| 105 | 105 | '', |
| 106 | 106 | '', |
@@ -229,7 +229,7 @@ |
||
| 229 | 229 | $data['user_language_identifier'], |
| 230 | 230 | '' |
| 231 | 231 | ); |
| 232 | - $userGroups = $this->loadUserGroups($data); |
|
| 232 | + $userGroups = $this->loadUserGroups($data); |
|
| 233 | 233 | |
| 234 | 234 | return new Entity( |
| 235 | 235 | $data['id'], |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | $viewFactory->registerBuilder( |
| 33 | 33 | 'layouts/backend/default', |
| 34 | - function (IView $view) use ($container) { |
|
| 34 | + function(IView $view) use ($container) { |
|
| 35 | 35 | /** @var ISession $session */ |
| 36 | 36 | $session = $container->resolve(ISession::class); |
| 37 | 37 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | ); |
| 60 | 60 | $viewFactory->registerBuilder( |
| 61 | 61 | 'layouts/backend/login', |
| 62 | - function (IView $view) use ($container) { |
|
| 62 | + function(IView $view) use ($container) { |
|
| 63 | 63 | /** @var AssetManager $assets */ |
| 64 | 64 | $assets = $container->resolve(AssetManager::class); |
| 65 | 65 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | ); |
| 73 | 73 | $viewFactory->registerBuilder( |
| 74 | 74 | 'layouts/backend/empty', |
| 75 | - function (IView $view) use ($container) { |
|
| 75 | + function(IView $view) use ($container) { |
|
| 76 | 76 | /** @var ISession $session */ |
| 77 | 77 | $session = $container->resolve(ISession::class); |
| 78 | 78 | |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | ); |
| 89 | 89 | $viewFactory->registerBuilder( |
| 90 | 90 | 'errors/html/Error', |
| 91 | - function (IView $view) { |
|
| 91 | + function(IView $view) { |
|
| 92 | 92 | /** @see HtmlErrorBuilder::build() */ |
| 93 | 93 | return (new HtmlErrorBuilder())->build($view); |
| 94 | 94 | } |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | IConnection $writeConnection, |
| 139 | 139 | IUnitOfWork $unitOfWork |
| 140 | 140 | ) { |
| 141 | - return function () use ( |
|
| 141 | + return function() use ( |
|
| 142 | 142 | $repoClass, |
| 143 | 143 | $dataMapperClass, |
| 144 | 144 | $entityClass, |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | '', |
| 59 | 59 | '' |
| 60 | 60 | ); |
| 61 | - $entity = new Entity( |
|
| 61 | + $entity = new Entity( |
|
| 62 | 62 | $entityId, |
| 63 | 63 | '', |
| 64 | 64 | '', |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | */ |
| 95 | 95 | protected function addJsOnly(): User |
| 96 | 96 | { |
| 97 | - $content = sprintf( |
|
| 97 | + $content = sprintf( |
|
| 98 | 98 | '<i class="material-icons">warning</i> %s', |
| 99 | 99 | $this->translator->translate('admin:jsOnly') |
| 100 | 100 | ); |
@@ -265,7 +265,7 @@ discard block |
||
| 265 | 265 | 'is_gravatar_allowed', |
| 266 | 266 | 'admin:userIsGravatarAllowed' |
| 267 | 267 | ); |
| 268 | - $help = new Node('admin:userIsGravatarAllowed'); |
|
| 268 | + $help = new Node('admin:userIsGravatarAllowed'); |
|
| 269 | 269 | |
| 270 | 270 | $this->form[] = new CheckboxGroup($input, $label, $help); |
| 271 | 271 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | class ApiClient extends BaseFactory |
| 21 | 21 | { |
| 22 | - const LABEL_NEW_SECRET = 'admin:newSecret'; |
|
| 22 | + const LABEL_NEW_SECRET = 'admin:newSecret'; |
|
| 23 | 23 | |
| 24 | 24 | const GROUP_ID = 'apiclient-id'; |
| 25 | 25 | const GROUP_DESCRIPTION = 'apiclient-description'; |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | */ |
| 91 | 91 | protected function addJsOnly(): ApiClient |
| 92 | 92 | { |
| 93 | - $content = sprintf( |
|
| 93 | + $content = sprintf( |
|
| 94 | 94 | '<i class="material-icons">warning</i> %s', |
| 95 | 95 | $this->translator->translate('admin:jsOnly') |
| 96 | 96 | ); |