| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | */ | 
| 15 | 15 | $router->group( | 
| 16 | 16 | ['controllerNamespace' => 'AbterPhp\Framework\Http\Controllers'], | 
| 17 | -    function (Router $router) { | |
| 17 | +    function(Router $router) { | |
| 18 | 18 | |
| 19 | 19 | /** @see \AbterPhp\Framework\Http\Controllers\Website\Assets::asset() */ | 
| 20 | 20 | $router->get( | 
| @@ -57,7 +57,7 @@ discard block | ||
| 57 | 57 | */ | 
| 58 | 58 | protected function getWarningHtml(string $environmentName): string | 
| 59 | 59 |      { | 
| 60 | - $styles = [ | |
| 60 | + $styles = [ | |
| 61 | 61 | 'color' => 'white', | 
| 62 | 62 | 'line-height' => '1em', | 
| 63 | 63 | 'font-weight' => 'bold', | 
| @@ -68,7 +68,7 @@ discard block | ||
| 68 | 68 |              $this->translator->translate('admin:environment', $environmentName) | 
| 69 | 69 | ); | 
| 70 | 70 | |
| 71 | - $styles = [ | |
| 71 | + $styles = [ | |
| 72 | 72 | 'position' => 'fixed', | 
| 73 | 73 | 'bottom' => '10px', | 
| 74 | 74 | 'right' => '10px', | 
| @@ -49,7 +49,7 @@ | ||
| 49 | 49 | array $attributes = [], | 
| 50 | 50 | ?string $tag = null | 
| 51 | 51 |      ) { | 
| 52 | - $this->session = $session; | |
| 52 | + $this->session = $session; | |
| 53 | 53 | |
| 54 | 54 |          if (!$this->session->has(Session::USERNAME)) { | 
| 55 | 55 |              throw new \LogicException('session must be set'); | 
| @@ -77,7 +77,7 @@ discard block | ||
| 77 | 77 | */ | 
| 78 | 78 | public function getHttpBootstrappers(): array | 
| 79 | 79 |      { | 
| 80 | -        $callback = function (array $modules) { | |
| 80 | +        $callback = function(array $modules) { | |
| 81 | 81 | $bootstrappers = []; | 
| 82 | 82 |              foreach ($modules as $module) { | 
| 83 | 83 |                  if (isset($module[Module::BOOTSTRAPPERS])) { | 
| @@ -99,7 +99,7 @@ discard block | ||
| 99 | 99 | */ | 
| 100 | 100 | public function getCliBootstrappers(): array | 
| 101 | 101 |      { | 
| 102 | -        $callback = function (array $modules) { | |
| 102 | +        $callback = function(array $modules) { | |
| 103 | 103 | $bootstrappers = []; | 
| 104 | 104 |              foreach ($modules as $module) { | 
| 105 | 105 |                  if (isset($module[Module::BOOTSTRAPPERS])) { | 
| @@ -121,7 +121,7 @@ discard block | ||
| 121 | 121 | */ | 
| 122 | 122 | public function getCommands(): array | 
| 123 | 123 |      { | 
| 124 | -        $callback = function (array $modules) { | |
| 124 | +        $callback = function(array $modules) { | |
| 125 | 125 | $commands = []; | 
| 126 | 126 |              foreach ($modules as $module) { | 
| 127 | 127 |                  if (isset($module[Module::COMMANDS])) { | 
| @@ -190,7 +190,7 @@ discard block | ||
| 190 | 190 | */ | 
| 191 | 191 | protected function namedOptionsCallback(string $option): callable | 
| 192 | 192 |      { | 
| 193 | -        return function ($modules) use ($option) { | |
| 193 | +        return function($modules) use ($option) { | |
| 194 | 194 | $merged = []; | 
| 195 | 195 |              foreach ($modules as $module) { | 
| 196 | 196 |                  if (!isset($module[$option])) { | 
| @@ -223,7 +223,7 @@ discard block | ||
| 223 | 223 | */ | 
| 224 | 224 | protected function prioritizedOptionsCallback(string $option, bool $reversed = false): callable | 
| 225 | 225 |      { | 
| 226 | -        return function ($modules) use ($option, $reversed) { | |
| 226 | +        return function($modules) use ($option, $reversed) { | |
| 227 | 227 | $merged = []; | 
| 228 | 228 |              foreach ($modules as $module) { | 
| 229 | 229 |                  if (!isset($module[$option])) { | 
| @@ -142,7 +142,7 @@ | ||
| 142 | 142 |      { | 
| 143 | 143 | $urlGenerator = $this->urlGenerator; | 
| 144 | 144 | |
| 145 | -        $hrefClosure = function ($attribute, IEntity $entity) use ($urlGenerator) { | |
| 145 | +        $hrefClosure = function($attribute, IEntity $entity) use ($urlGenerator) { | |
| 146 | 146 | return $urlGenerator->createFromName($attribute, $entity->getId()); | 
| 147 | 147 | }; | 
| 148 | 148 | |
| @@ -24,7 +24,7 @@ | ||
| 24 | 24 | |
| 25 | 25 | $viewFactory->registerBuilder( | 
| 26 | 26 | 'layouts/default', | 
| 27 | -            function (IView $view) use ($container) { | |
| 27 | +            function(IView $view) use ($container) { | |
| 28 | 28 | /** @var IEventDispatcher $eventDispatcher */ | 
| 29 | 29 | $eventDispatcher = $container->resolve(IEventDispatcher::class); | 
| 30 | 30 | |
| @@ -30,7 +30,7 @@ | ||
| 30 | 30 | |
| 31 | 31 | $container->bindFactory( | 
| 32 | 32 | IMigrator::class, | 
| 33 | -            function () use ($container, $paths) { | |
| 33 | +            function() use ($container, $paths) { | |
| 34 | 34 | $fileMigrationFinder = new FileMigrationFinder(); | 
| 35 | 35 | $resolver = new ContainerMigrationResolver($container); | 
| 36 | 36 | |
| @@ -28,7 +28,7 @@ discard block | ||
| 28 | 28 | |
| 29 | 29 | $transpiler->registerViewFunction( | 
| 30 | 30 | 'metaName', | 
| 31 | -            function (string $name, ...$contents) { | |
| 31 | +            function(string $name, ...$contents) { | |
| 32 | 32 | $realContent = ''; | 
| 33 | 33 |                  foreach ($contents as $content) { | 
| 34 | 34 |                      if (empty($content)) { | 
| @@ -44,7 +44,7 @@ discard block | ||
| 44 | 44 | |
| 45 | 45 | $transpiler->registerViewFunction( | 
| 46 | 46 | 'metaProp', | 
| 47 | -            function (string $name, ...$contents) { | |
| 47 | +            function(string $name, ...$contents) { | |
| 48 | 48 | $realContent = ''; | 
| 49 | 49 |                  foreach ($contents as $content) { | 
| 50 | 50 |                      if (empty($content)) { | 
| @@ -60,7 +60,7 @@ discard block | ||
| 60 | 60 | |
| 61 | 61 | $transpiler->registerViewFunction( | 
| 62 | 62 | 'author', | 
| 63 | -            function (string $author) { | |
| 63 | +            function(string $author) { | |
| 64 | 64 |                  if (empty($author)) { | 
| 65 | 65 | return ''; | 
| 66 | 66 | } | 
| @@ -151,7 +151,7 @@ | ||
| 151 | 151 | $transpiler = $container->resolve(ITranspiler::class); | 
| 152 | 152 | $transpiler->registerViewFunction( | 
| 153 | 153 | 'canView', | 
| 154 | -            function (string $key) use ($username, $enforcer) { | |
| 154 | +            function(string $key) use ($username, $enforcer) { | |
| 155 | 155 | return $enforcer->enforce($username, 'admin_resource_' . $key, Role::READ); | 
| 156 | 156 | } | 
| 157 | 157 | ); |