@@ -19,7 +19,7 @@ |
||
| 19 | 19 | */ |
| 20 | 20 | $router->group( |
| 21 | 21 | ['controllerNamespace' => 'AbterPhp\Files\Http\Controllers'], |
| 22 | - function (Router $router) { |
|
| 22 | + function(Router $router) { |
|
| 23 | 23 | /** @see \AbterPhp\Files\Http\Controllers\Website\File::download() */ |
| 24 | 24 | $router->get( |
| 25 | 25 | Routes::PATH_FILE, |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | $router->group( |
| 21 | 21 | ['controllerNamespace' => 'AbterPhp\Files\Http\Controllers'], |
| 22 | - function (Router $router) { |
|
| 22 | + function(Router $router) { |
|
| 23 | 23 | $router->group( |
| 24 | 24 | [ |
| 25 | 25 | 'path' => PATH_ADMIN, |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | Authentication::class, |
| 28 | 28 | ], |
| 29 | 29 | ], |
| 30 | - function (Router $router) { |
|
| 30 | + function(Router $router) { |
|
| 31 | 31 | $entities = [ |
| 32 | 32 | 'filecategories' => 'FileCategory', |
| 33 | 33 | 'filedownloads' => 'FileDownload', |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | */ |
| 20 | 20 | $router->group( |
| 21 | 21 | ['controllerNamespace' => 'AbterPhp\Files\Http\Controllers'], |
| 22 | - function (Router $router) { |
|
| 22 | + function(Router $router) { |
|
| 23 | 23 | $router->group( |
| 24 | 24 | [ |
| 25 | 25 | 'path' => PATH_API, |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | Api::class, |
| 28 | 28 | ], |
| 29 | 29 | ], |
| 30 | - function (Router $router) { |
|
| 30 | + function(Router $router) { |
|
| 31 | 31 | $entities = [ |
| 32 | 32 | 'filecategories' => 'FileCategory', |
| 33 | 33 | 'filedownloads' => 'FileDownload', |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | { |
| 126 | 126 | $attributeCallbacks = parent::getAttributeCallbacks(); |
| 127 | 127 | |
| 128 | - $attributeCallbacks[Html5::ATTR_CLASS] = function ($attribute, Entity $entity) { |
|
| 128 | + $attributeCallbacks[Html5::ATTR_CLASS] = function($attribute, Entity $entity) { |
|
| 129 | 129 | return $entity->isWritable() ? $attribute : Component::INTENT_HIDDEN; |
| 130 | 130 | }; |
| 131 | 131 | |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | { |
| 140 | 140 | $urlGenerator = $this->urlGenerator; |
| 141 | 141 | |
| 142 | - $closure = function ($attribute, Entity $entity) use ($urlGenerator) { |
|
| 142 | + $closure = function($attribute, Entity $entity) use ($urlGenerator) { |
|
| 143 | 143 | try { |
| 144 | 144 | // @phan-suppress-next-line PhanTypeMismatchArgument |
| 145 | 145 | return $urlGenerator->createFromName($attribute, $entity->getFilesystemName()); |