| @@ -74,7 +74,7 @@ | ||
| 74 | 74 | 'website:pageOGDescription', | 
| 75 | 75 | Countable::DEFAULT_SIZE | 
| 76 | 76 | ); | 
| 77 | -        $help  = new Help('website:pageOGDescriptionHelp'); | |
| 77 | +        $help = new Help('website:pageOGDescriptionHelp'); | |
| 78 | 78 | |
| 79 | 79 | return new FormGroup($input, $label, $help); | 
| 80 | 80 | } | 
| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 | |
| 25 | 25 | $viewFactory->registerBuilder( | 
| 26 | 26 | 'layouts/frontend/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 | |
| @@ -34,7 +34,7 @@ discard block | ||
| 34 | 34 | ); | 
| 35 | 35 | $viewFactory->registerBuilder( | 
| 36 | 36 | 'layouts/frontend/empty', | 
| 37 | -            function (IView $view) use ($container) { | |
| 37 | +            function(IView $view) use ($container) { | |
| 38 | 38 | /** @var IEventDispatcher $eventDispatcher */ | 
| 39 | 39 | $eventDispatcher = $container->resolve(IEventDispatcher::class); | 
| 40 | 40 | |
| @@ -48,7 +48,7 @@ | ||
| 48 | 48 | $dropdown[] = $this->createBlockLayoutItem(); | 
| 49 | 49 | $dropdown[] = $this->createContentListItem(); | 
| 50 | 50 | |
| 51 | - $item = $this->createPageItem(); | |
| 51 | + $item = $this->createPageItem(); | |
| 52 | 52 | $item->setIntent(Item::INTENT_DROPDOWN); | 
| 53 | 53 | $item->setAttribute(Html5::ATTR_ID, 'nav-pages'); | 
| 54 | 54 | $item[0]->setAttribute(Html5::ATTR_HREF, 'javascript:void(0);'); | 
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 | const ENTITY_SINGULAR = 'contentList'; | 
| 19 | 19 | const ENTITY_PLURAL = 'lists'; | 
| 20 | 20 | |
| 21 | - const ENTITY_TITLE_PLURAL = 'website:contentLists'; | |
| 21 | + const ENTITY_TITLE_PLURAL = 'website:contentLists'; | |
| 22 | 22 | |
| 23 | 23 | const ROUTING_PATH = 'lists'; | 
| 24 | 24 | |
| @@ -19,7 +19,7 @@ discard block | ||
| 19 | 19 | */ | 
| 20 | 20 | $router->group( | 
| 21 | 21 | ['controllerNamespace' => 'AbterPhp\Website\Http\Controllers'], | 
| 22 | -    function (Router $router) { | |
| 22 | +    function(Router $router) { | |
| 23 | 23 | $router->group( | 
| 24 | 24 | [ | 
| 25 | 25 | 'path' => RoutesConfig::getAdminBasePath(), | 
| @@ -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 | 'blocks' => 'Block', | 
| 33 | 33 | 'block-layouts' => 'BlockLayout', | 
| @@ -15,7 +15,7 @@ discard block | ||
| 15 | 15 | */ | 
| 16 | 16 | $router->group( | 
| 17 | 17 | ['controllerNamespace' => 'AbterPhp\Website\Http\Controllers'], | 
| 18 | -    function (Router $router) { | |
| 18 | +    function(Router $router) { | |
| 19 | 19 | $router->group( | 
| 20 | 20 | [ | 
| 21 | 21 | 'path' => RoutesConfig::getApiBasePath(), | 
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | Api::class, | 
| 24 | 24 | ], | 
| 25 | 25 | ], | 
| 26 | -            function (Router $router) { | |
| 26 | +            function(Router $router) { | |
| 27 | 27 | $entities = [ | 
| 28 | 28 | 'pages' => 'Page', | 
| 29 | 29 | 'page-layouts' => 'PageLayout', | 
| @@ -44,7 +44,7 @@ | ||
| 44 | 44 |          if ($list->isWithLinks()) { | 
| 45 | 45 | $name = StringHelper::wrapInTag($name, Html5::TAG_A, [Html5::ATTR_HREF => $item->getNameHref()]); | 
| 46 | 46 | $body = StringHelper::wrapInTag($body, Html5::TAG_A, [Html5::ATTR_HREF => $item->getBodyHref()]); | 
| 47 | - $image = StringHelper::wrapInTag($image, Html5::TAG_A, [Html5::ATTR_HREF => $item->getImgHref()]); | |
| 47 | + $image = StringHelper::wrapInTag($image, Html5::TAG_A, [Html5::ATTR_HREF => $item->getImgHref()]); | |
| 48 | 48 | } | 
| 49 | 49 | |
| 50 | 50 |          if (!$list->isWithBody()) { | 
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | */ | 
| 15 | 15 | $router->group( | 
| 16 | 16 | ['controllerNamespace' => 'AbterPhp\Website\Http\Controllers'], | 
| 17 | -    function (Router $router) { | |
| 17 | +    function(Router $router) { | |
| 18 | 18 | /** @see \AbterPhp\Website\Http\Controllers\Website\Index::index() */ | 
| 19 | 19 | $router->get( | 
| 20 | 20 | '/', | 
| @@ -153,7 +153,7 @@ | ||
| 153 | 153 | $urlGenerator = $this->urlGenerator; | 
| 154 | 154 | |
| 155 | 155 | // @phan-suppress-next-line PhanUnusedVariable | 
| 156 | -        $hrefClosure = function ($attribute, Entity $entity) use ($urlGenerator) { | |
| 156 | +        $hrefClosure = function($attribute, Entity $entity) use ($urlGenerator) { | |
| 157 | 157 | // @phan-suppress-next-line PhanTypeMismatchArgument | 
| 158 | 158 | return $urlGenerator->createFromName(Route::FALLBACK, $entity->getIdentifier()); | 
| 159 | 159 | }; |