@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | { |
54 | 54 | // Scan the source directory, and directories therein, for files that match the model's file extension. |
55 | 55 | foreach (glob($this->kernel->path($pageClass::sourcePath('{*,**/*}')), GLOB_BRACE) as $filepath) { |
56 | - if (! str_starts_with(basename((string) $filepath), '_')) { |
|
56 | + if (!str_starts_with(basename((string) $filepath), '_')) { |
|
57 | 57 | $this->addFile(SourceFile::make($filepath, $pageClass)); |
58 | 58 | } |
59 | 59 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | public function getFiles(?string $pageClass = null): FileCollection |
72 | 72 | { |
73 | - return $pageClass ? $this->filter(function (SourceFile $file) use ($pageClass): bool { |
|
73 | + return $pageClass ? $this->filter(function(SourceFile $file) use ($pageClass) : bool { |
|
74 | 74 | return $file->model === $pageClass; |
75 | 75 | }) : $this; |
76 | 76 | } |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | protected function runDiscovery(): void |
34 | 34 | { |
35 | - $this->kernel->pages()->each(function (HydePage $page): void { |
|
35 | + $this->kernel->pages()->each(function(HydePage $page): void { |
|
36 | 36 | $this->addRoute(new Route($page)); |
37 | 37 | }); |
38 | 38 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | */ |
56 | 56 | public function getRoutes(?string $pageClass = null): RouteCollection |
57 | 57 | { |
58 | - return $pageClass ? $this->filter(function (Route $route) use ($pageClass): bool { |
|
58 | + return $pageClass ? $this->filter(function(Route $route) use ($pageClass) : bool { |
|
59 | 59 | return $route->getPage() instanceof $pageClass; |
60 | 60 | }) : $this; |
61 | 61 | } |