@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | |
33 | 33 | protected function runDiscovery(): void |
34 | 34 | { |
35 | - $this->kernel->files()->each(function (SourceFile $file): void { |
|
35 | + $this->kernel->files()->each(function(SourceFile $file): void { |
|
36 | 36 | $this->addPage($file->model::parse( |
37 | 37 | $file->model::pathToIdentifier($file->getPath()) |
38 | 38 | )); |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | */ |
59 | 59 | public function getPages(?string $pageClass = null): PageCollection |
60 | 60 | { |
61 | - return $pageClass ? $this->filter(function (HydePage $page) use ($pageClass): bool { |
|
61 | + return $pageClass ? $this->filter(function(HydePage $page) use ($pageClass) : bool { |
|
62 | 62 | return $page instanceof $pageClass; |
63 | 63 | }) : $this; |
64 | 64 | } |
@@ -89,11 +89,11 @@ |
||
89 | 89 | Hyde::pathToRelative(Hyde::getDocumentationPagePath()), |
90 | 90 | ]; |
91 | 91 | |
92 | - if (! in_array($directory, $directories)) { |
|
92 | + if (!in_array($directory, $directories)) { |
|
93 | 93 | throw new Exception("Path [$this->path] is not in a valid source directory.", 400); |
94 | 94 | } |
95 | 95 | |
96 | - if (! file_exists(Hyde::path($this->path))) { |
|
96 | + if (!file_exists(Hyde::path($this->path))) { |
|
97 | 97 | throw new Exception("File [$this->path] not found.", 404); |
98 | 98 | } |
99 | 99 | } |