@@ -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'); |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | $transpiler = $container->resolve(ITranspiler::class); |
| 96 | 96 | $transpiler->registerViewFunction( |
| 97 | 97 | 'tr', |
| 98 | - function (string $key, ...$args) use ($translator) { |
|
| 98 | + function(string $key, ...$args) use ($translator) { |
|
| 99 | 99 | return $translator->translate($key, ...$args); |
| 100 | 100 | } |
| 101 | 101 | ); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | $viewFactory->registerBuilder( |
| 26 | 26 | 'layouts/default', |
| 27 | - function (IView $view) { |
|
| 27 | + function(IView $view) { |
|
| 28 | 28 | /** @see DefaultBuilder::build() */ |
| 29 | 29 | return (new DefaultBuilder())->build($view); |
| 30 | 30 | } |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | */ |
| 85 | 85 | public function getHttpBootstrappers(): array |
| 86 | 86 | { |
| 87 | - $callback = function (array $modules) { |
|
| 87 | + $callback = function(array $modules) { |
|
| 88 | 88 | $bootstrappers = []; |
| 89 | 89 | foreach ($modules as $module) { |
| 90 | 90 | if (isset($module[Module::BOOTSTRAPPERS])) { |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | public function getCliBootstrappers(): array |
| 108 | 108 | { |
| 109 | - $callback = function (array $modules) { |
|
| 109 | + $callback = function(array $modules) { |
|
| 110 | 110 | $bootstrappers = []; |
| 111 | 111 | foreach ($modules as $module) { |
| 112 | 112 | if (isset($module[Module::BOOTSTRAPPERS])) { |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | */ |
| 129 | 129 | public function getCommands(): array |
| 130 | 130 | { |
| 131 | - $callback = function (array $modules) { |
|
| 131 | + $callback = function(array $modules) { |
|
| 132 | 132 | $commands = []; |
| 133 | 133 | foreach ($modules as $module) { |
| 134 | 134 | if (isset($module[Module::COMMANDS])) { |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | */ |
| 220 | 220 | protected function simpleOptionCallback(string $option): callable |
| 221 | 221 | { |
| 222 | - return function ($modules) use ($option) { |
|
| 222 | + return function($modules) use ($option) { |
|
| 223 | 223 | $merged = []; |
| 224 | 224 | foreach ($modules as $module) { |
| 225 | 225 | if (!isset($module[$option])) { |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | protected function simpleNamedOptions(string $option): callable |
| 248 | 248 | { |
| 249 | - return function ($modules) use ($option) { |
|
| 249 | + return function($modules) use ($option) { |
|
| 250 | 250 | $merged = []; |
| 251 | 251 | foreach ($modules as $module) { |
| 252 | 252 | if (!isset($module[$option])) { |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | */ |
| 278 | 278 | protected function namedPrioritizedOptionsCallback(string $option): callable |
| 279 | 279 | { |
| 280 | - return function ($modules) use ($option) { |
|
| 280 | + return function($modules) use ($option) { |
|
| 281 | 281 | $prioritized = []; |
| 282 | 282 | foreach ($modules as $module) { |
| 283 | 283 | if (!isset($module[$option])) { |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | */ |
| 327 | 327 | protected function prioritizedOptionsCallback(string $option, bool $reversed = false): callable |
| 328 | 328 | { |
| 329 | - return function ($modules) use ($option, $reversed) { |
|
| 329 | + return function($modules) use ($option, $reversed) { |
|
| 330 | 330 | $merged = []; |
| 331 | 331 | foreach ($modules as $module) { |
| 332 | 332 | if (!isset($module[$option])) { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | $attributes[Html5::ATTR_ROWS] = static::DEFAULT_ROW; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - $attributes[Html5::ATTR_NAME] = $name; |
|
| 47 | + $attributes[Html5::ATTR_NAME] = $name; |
|
| 48 | 48 | |
| 49 | 49 | parent::__construct(null, $intents, $attributes, $tag); |
| 50 | 50 | |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | namespace AbterPhp\Framework\Grid\Row; |
| 6 | 6 | |
| 7 | 7 | use AbterPhp\Framework\Constant\Html5; |
| 8 | -use AbterPhp\Framework\Grid\Action\IAction; // @phan-suppress-current-line PhanUnreferencedUseNormal |
|
| 8 | +use AbterPhp\Framework\Grid\Action\IAction; // @phan-suppress-current-line PhanUnreferencedUseNormal |
|
| 9 | 9 | use AbterPhp\Framework\Grid\Cell\Cell; |
| 10 | 10 | use AbterPhp\Framework\Grid\Collection\Cells; |
| 11 | 11 | use AbterPhp\Framework\Grid\Component\Actions; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | ) { |
| 52 | 52 | parent::__construct($inputId, $content, $intents, $attributes, $tag); |
| 53 | 53 | |
| 54 | - $attributes = [ |
|
| 54 | + $attributes = [ |
|
| 55 | 55 | static::ATTR_DATA_COUNT => $size, |
| 56 | 56 | Html5::ATTR_CLASS => static::CLASS_COUNT, |
| 57 | 57 | ]; |