@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | |
| 35 | 35 | public function getPages(?string $pageClass = null): Collection |
| 36 | 36 | { |
| 37 | - return ! $pageClass ? $this : $this->filter(function (PageContract $page) use ($pageClass): bool { |
|
| 37 | + return !$pageClass ? $this : $this->filter(function(PageContract $page) use ($pageClass) : bool { |
|
| 38 | 38 | return $page instanceof $pageClass; |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | protected function discoverPagesFor(string $pageClass): void |
| 64 | 64 | { |
| 65 | - $this->parsePagesFor($pageClass)->each(function ($page) { |
|
| 65 | + $this->parsePagesFor($pageClass)->each(function($page) { |
|
| 66 | 66 | $this->discover($page); |
| 67 | 67 | }); |
| 68 | 68 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | public function getRoutesForModel(string $pageClass): self |
| 45 | 45 | { |
| 46 | 46 | // Return a new filtered collection with only routes that are for the given page class. |
| 47 | - return $this->filter(function (RouteContract $route) use ($pageClass) { |
|
| 47 | + return $this->filter(function(RouteContract $route) use ($pageClass) { |
|
| 48 | 48 | return $route->getSourceModel() instanceof $pageClass; |
| 49 | 49 | }); |
| 50 | 50 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | |
| 71 | 71 | protected function discoverRoutes(): self |
| 72 | 72 | { |
| 73 | - $this->kernel->pages()->each(function (PageContract $page) { |
|
| 73 | + $this->kernel->pages()->each(function(PageContract $page) { |
|
| 74 | 74 | $this->discover($page); |
| 75 | 75 | }); |
| 76 | 76 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | |
| 97 | 97 | public function pages(): PageCollection |
| 98 | 98 | { |
| 99 | - if (! $this->booted) { |
|
| 99 | + if (!$this->booted) { |
|
| 100 | 100 | $this->bootKernel(); |
| 101 | 101 | } |
| 102 | 102 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | |
| 106 | 106 | public function routes(): RouteCollection |
| 107 | 107 | { |
| 108 | - if (! $this->booted) { |
|
| 108 | + if (!$this->booted) { |
|
| 109 | 109 | $this->bootKernel(); |
| 110 | 110 | } |
| 111 | 111 | |