@@ -39,7 +39,7 @@ |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | $block = new Block($this->themeRegistry->getThemeDescriptor($page->getTheme()), [ |
| 42 | - 'content' => [ $page->getContent() ], |
|
| 42 | + 'content' => [$page->getContent()], |
|
| 43 | 43 | 'title' => $page->getTitle(), |
| 44 | 44 | 'url' => $page->getUrl(), |
| 45 | 45 | 'menu' => $this->pageRegistry->getRootMenuItem() |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * @param float $priority |
| 31 | 31 | * @param string|null $cssClass |
| 32 | 32 | */ |
| 33 | - public function registerMenuItem(array $items, ?string $url, float $priority = 0.0, ?string $cssClass = null): void |
|
| 33 | + public function registerMenuItem(array $items, ?string $url, float $priority = 0.0, ?string $cssClass = null) : void |
|
| 34 | 34 | { |
| 35 | 35 | $this->registerSubMenuItem($this->rootMenu, $items, $url, $priority, $cssClass); |
| 36 | 36 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | * @param float $priority |
| 43 | 43 | * @param string|null $cssClass |
| 44 | 44 | */ |
| 45 | - private function registerSubMenuItem(MenuItem $menuItem, array $items, ?string $url, float $priority = 0.0, ?string $cssClass): void |
|
| 45 | + private function registerSubMenuItem(MenuItem $menuItem, array $items, ?string $url, float $priority = 0.0, ?string $cssClass) : void |
|
| 46 | 46 | { |
| 47 | 47 | $label = array_shift($items); |
| 48 | 48 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * @param string $label The text for the menu item |
| 47 | 47 | * @param string|null $url The link for the menu (relative to the root url), unless it starts with / or http:// or https:// or # or ?. |
| 48 | 48 | */ |
| 49 | - public function __construct(string $label, string $url=null) { |
|
| 49 | + public function __construct(string $label, string $url = null) { |
|
| 50 | 50 | $this->label = $label; |
| 51 | 51 | $this->url = $url; |
| 52 | 52 | $this->children = new \SplPriorityQueue(); |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * |
| 133 | 133 | * @param string|null $cssClass |
| 134 | 134 | */ |
| 135 | - public function setCssClass(?string $cssClass): void { |
|
| 135 | + public function setCssClass(?string $cssClass) : void { |
|
| 136 | 136 | $this->cssClass = $cssClass; |
| 137 | 137 | } |
| 138 | 138 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * @param string[]|null $menu |
| 59 | 59 | */ |
| 60 | - public function __construct(?string $id, string $title, string $content, string $url, string $lang, ?string $website, ?array $menu, ?int $menuOrder, ?string $menuCssClass, ?string $metaTitle, ?string $metaDescription, ?string $theme) |
|
| 60 | + public function __construct(?string $id, string $title, string $content, string $url, string $lang, ?string $website, ? array $menu, ?int $menuOrder, ?string $menuCssClass, ?string $metaTitle, ?string $metaDescription, ?string $theme) |
|
| 61 | 61 | { |
| 62 | 62 | $this->id = $id; |
| 63 | 63 | $this->title = $title; |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | /** |
| 174 | 174 | * @return null|string[] |
| 175 | 175 | */ |
| 176 | - public function getMenu(): ?array |
|
| 176 | + public function getMenu(): ? array |
|
| 177 | 177 | { |
| 178 | 178 | return $this->menu; |
| 179 | 179 | } |