@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | $router->group( |
| 20 | 20 | ['controllerNamespace' => 'AbterPhp\Admin\\Http\\Controllers'], |
| 21 | - function (Router $router) { |
|
| 21 | + function(Router $router) { |
|
| 22 | 22 | $router->group( |
| 23 | 23 | [ |
| 24 | 24 | 'path' => PATH_ADMIN, |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | Authentication::class, |
| 27 | 27 | ], |
| 28 | 28 | ], |
| 29 | - function (Router $router) { |
|
| 29 | + function(Router $router) { |
|
| 30 | 30 | $entities = [ |
| 31 | 31 | 'usergroups' => 'UserGroup', |
| 32 | 32 | 'users' => 'User', |
@@ -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'], |
@@ -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 | ); |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | public function __construct(string $identifier) |
| 21 | 21 | { |
| 22 | - $this->identifier = $identifier; |
|
| 22 | + $this->identifier = $identifier; |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
@@ -15,12 +15,12 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | $router->group( |
| 17 | 17 | ['controllerNamespace' => 'AbterPhp\Admin\\Http\\Controllers'], |
| 18 | - function (Router $router) { |
|
| 18 | + function(Router $router) { |
|
| 19 | 19 | $router->group( |
| 20 | 20 | [ |
| 21 | 21 | 'path' => PATH_API, |
| 22 | 22 | ], |
| 23 | - function (Router $router) { |
|
| 23 | + function(Router $router) { |
|
| 24 | 24 | /** @see \AbterPhp\Admin\Http\Controllers\Api\AccessToken::create() */ |
| 25 | 25 | $router->post( |
| 26 | 26 | Routes::PATH_ACCESS_TOKEN, |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | Api::class, |
| 39 | 39 | ], |
| 40 | 40 | ], |
| 41 | - function (Router $router) { |
|
| 41 | + function(Router $router) { |
|
| 42 | 42 | /** @see \AbterPhp\Admin\Http\Controllers\Api\User::create() */ |
| 43 | 43 | $router->post( |
| 44 | 44 | Routes::PATH_USERS, |