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