@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function getDiscoveredPageTypes(): array |
70 | 70 | { |
71 | - return $this->pages()->map(function (HydePage $page): string { |
|
71 | + return $this->pages()->map(function(HydePage $page): string { |
|
72 | 72 | return $page::class; |
73 | 73 | })->unique()->values()->toArray(); |
74 | 74 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | throw new BadMethodCallException('Cannot register a page class after the Kernel has been booted.'); |
96 | 96 | } |
97 | 97 | |
98 | - if (! is_subclass_of($pageClass, HydePage::class)) { |
|
98 | + if (!is_subclass_of($pageClass, HydePage::class)) { |
|
99 | 99 | throw new InvalidArgumentException('The specified class must be a subclass of HydePage.'); |
100 | 100 | } |
101 | 101 | |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | throw new InvalidArgumentException('The specified class must not be a subclass of DynamicPage.'); |
104 | 104 | } |
105 | 105 | |
106 | - if (! in_array($pageClass, $this->pageClasses, true)) { |
|
106 | + if (!in_array($pageClass, $this->pageClasses, true)) { |
|
107 | 107 | $this->pageClasses[] = $pageClass; |
108 | 108 | } |
109 | 109 | } |