@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | return property_exists($this, $key) || $this->matter->has($key); |
| 191 | 191 | } |
| 192 | 192 | |
| 193 | - return ! blank($this->get($key)); |
|
| 193 | + return !blank($this->get($key)); |
|
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | /** |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | |
| 280 | 280 | public function showInNavigation(): bool |
| 281 | 281 | { |
| 282 | - return ! $this->navigation['hidden']; |
|
| 282 | + return !$this->navigation['hidden']; |
|
| 283 | 283 | } |
| 284 | 284 | |
| 285 | 285 | public function navigationMenuPriority(): int |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | |
| 26 | 26 | public function getPages(?string $pageClass = null): self |
| 27 | 27 | { |
| 28 | - return ! $pageClass ? $this : $this->filter(function (HydePage $page) use ($pageClass): bool { |
|
| 28 | + return !$pageClass ? $this : $this->filter(function(HydePage $page) use ($pageClass) : bool { |
|
| 29 | 29 | return $page instanceof $pageClass; |
| 30 | 30 | }); |
| 31 | 31 | } |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | protected function discoverPagesFor(string $pageClass): void |
| 55 | 55 | { |
| 56 | - $this->parsePagesFor($pageClass)->each(function ($page) { |
|
| 56 | + $this->parsePagesFor($pageClass)->each(function($page) { |
|
| 57 | 57 | $this->discover($page); |
| 58 | 58 | }); |
| 59 | 59 | } |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | public function getRoutes(?string $pageClass = null): self |
| 36 | 36 | { |
| 37 | - return ! $pageClass ? $this : $this->filter(function (RouteContract $route) use ($pageClass) { |
|
| 37 | + return !$pageClass ? $this : $this->filter(function(RouteContract $route) use ($pageClass) { |
|
| 38 | 38 | return $route->getSourceModel() instanceof $pageClass; |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | protected function runDiscovery(): self |
| 62 | 62 | { |
| 63 | - $this->kernel->pages()->each(function (HydePage $page) { |
|
| 63 | + $this->kernel->pages()->each(function(HydePage $page) { |
|
| 64 | 64 | $this->discover($page); |
| 65 | 65 | }); |
| 66 | 66 | |
@@ -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, HydePage::class)) { |
|
| 39 | + if (!class_exists($model) || !is_subclass_of($model, HydePage::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 | |