@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | { |
34 | 34 | public function getRoutes(?string $pageClass = null): self |
35 | 35 | { |
36 | - return ! $pageClass ? $this : $this->filter(function (RouteContract $route) use ($pageClass) { |
|
36 | + return !$pageClass ? $this : $this->filter(function(RouteContract $route) use ($pageClass) { |
|
37 | 37 | return $route->getSourceModel() instanceof $pageClass; |
38 | 38 | }); |
39 | 39 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | protected function runDiscovery(): self |
61 | 61 | { |
62 | - $this->kernel->pages()->each(function (PageContract $page) { |
|
62 | + $this->kernel->pages()->each(function(PageContract $page) { |
|
63 | 63 | $this->discover($page); |
64 | 64 | }); |
65 | 65 |
@@ -36,12 +36,12 @@ |
||
36 | 36 | */ |
37 | 37 | public static function getSourceFileListForModel(string $model): array |
38 | 38 | { |
39 | - if (! class_exists($model) || ! is_subclass_of($model, AbstractPage::class)) { |
|
39 | + if (!class_exists($model) || !is_subclass_of($model, AbstractPage::class)) { |
|
40 | 40 | throw new UnsupportedPageTypeException($model); |
41 | 41 | } |
42 | 42 | |
43 | 43 | $files = []; |
44 | - Hyde::files()->getSourceFiles($model)->each(function (File $file) use (&$files, $model) { |
|
44 | + Hyde::files()->getSourceFiles($model)->each(function(File $file) use (&$files, $model) { |
|
45 | 45 | $files[] = self::formatSlugForModel($model, $file->withoutDirectoryPrefix()); |
46 | 46 | }); |
47 | 47 |