@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | $pageBlock = new Block($themeDescriptor, [ |
55 | - 'content' => [ $contentBlock ], |
|
55 | + 'content' => [$contentBlock], |
|
56 | 56 | 'title' => $page->getTitle(), |
57 | 57 | 'url' => $page->getUrl(), |
58 | 58 | 'menu' => $this->pageRegistry->getRootMenuItem() |
@@ -65,7 +65,9 @@ |
||
65 | 65 | */ |
66 | 66 | private function isAssoc(array $arr): bool |
67 | 67 | { |
68 | - if (array() === $arr) return false; |
|
68 | + if (array() === $arr) { |
|
69 | + return false; |
|
70 | + } |
|
69 | 71 | return array_keys($arr) !== range(0, count($arr) - 1); |
70 | 72 | } |
71 | 73 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param string $label The text for the menu item |
39 | 39 | * @param string|null $url The link for the menu (relative to the root url), unless it starts with / or http:// or https:// or # or ?. |
40 | 40 | */ |
41 | - public function __construct(string $label, string $url=null) { |
|
41 | + public function __construct(string $label, string $url = null) { |
|
42 | 42 | $this->label = $label; |
43 | 43 | $this->url = $url; |
44 | 44 | $this->children = new \SplPriorityQueue(); |