@@ -141,7 +141,7 @@ |
||
141 | 141 | $string = trim($string); |
142 | 142 | |
143 | 143 | // Check if string is an array |
144 | - if (! static::isValueArrayString($string)) { |
|
144 | + if (!static::isValueArrayString($string)) { |
|
145 | 145 | throw new RuntimeException('Failed parsing BladeMatter array. Input string must follow array syntax.'); |
146 | 146 | } |
147 | 147 |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | public function execute(): bool|int |
45 | 45 | { |
46 | - if (! array_key_exists($this->selected, static::$options)) { |
|
46 | + if (!array_key_exists($this->selected, static::$options)) { |
|
47 | 47 | return 404; |
48 | 48 | } |
49 | 49 |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | public function execute(): bool|int |
43 | 43 | { |
44 | - if (! array_key_exists($this->selected, static::$homePages)) { |
|
44 | + if (!array_key_exists($this->selected, static::$homePages)) { |
|
45 | 45 | return 404; |
46 | 46 | } |
47 | 47 |
@@ -93,11 +93,11 @@ |
||
93 | 93 | |
94 | 94 | private function getCanonicalUrl(): ?string |
95 | 95 | { |
96 | - if (! empty($this->matter('canonicalUrl'))) { |
|
96 | + if (!empty($this->matter('canonicalUrl'))) { |
|
97 | 97 | return $this->matter('canonicalUrl'); |
98 | 98 | } |
99 | 99 | |
100 | - if (Hyde::hasSiteUrl() && ! empty($this->identifier)) { |
|
100 | + if (Hyde::hasSiteUrl() && !empty($this->identifier)) { |
|
101 | 101 | return Hyde::url($this->outputPath); |
102 | 102 | } |
103 | 103 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | $filepath = $model::sourceDirectory().'/'. |
24 | 24 | $slug.$model::fileExtension(); |
25 | 25 | |
26 | - if (! file_exists(Hyde::path($filepath))) { |
|
26 | + if (!file_exists(Hyde::path($filepath))) { |
|
27 | 27 | throw new FileNotFoundException($filepath); |
28 | 28 | } |
29 | 29 | } |
@@ -65,14 +65,14 @@ |
||
65 | 65 | |
66 | 66 | protected function registerPreProcessor(string $class, bool $when = true): void |
67 | 67 | { |
68 | - if (! in_array($class, $this->preprocessors) && $when) { |
|
68 | + if (!in_array($class, $this->preprocessors) && $when) { |
|
69 | 69 | $this->preprocessors[] = $class; |
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | 73 | protected function registerPostProcessor(string $class, bool $when = true): void |
74 | 74 | { |
75 | - if (! in_array($class, $this->postprocessors) && $when) { |
|
75 | + if (!in_array($class, $this->postprocessors) && $when) { |
|
76 | 76 | $this->postprocessors[] = $class; |
77 | 77 | } |
78 | 78 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | public static function needsDirectory(string $directory): void |
16 | 16 | { |
17 | - if (! file_exists($directory)) { |
|
17 | + if (!file_exists($directory)) { |
|
18 | 18 | mkdir($directory, recursive: true); |
19 | 19 | } |
20 | 20 | } |
@@ -42,6 +42,6 @@ |
||
42 | 42 | */ |
43 | 43 | public function has(string $key): bool |
44 | 44 | { |
45 | - return ! blank($this->get($key)); |
|
45 | + return !blank($this->get($key)); |
|
46 | 46 | } |
47 | 47 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | public function getRoutes(?string $pageClass = null): self |
37 | 37 | { |
38 | - return ! $pageClass ? $this : $this->filter(function (Route $route) use ($pageClass) { |
|
38 | + return !$pageClass ? $this : $this->filter(function(Route $route) use ($pageClass) { |
|
39 | 39 | return $route->getPage() instanceof $pageClass; |
40 | 40 | }); |
41 | 41 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | protected function runDiscovery(): self |
63 | 63 | { |
64 | - $this->kernel->pages()->each(function (HydePage $page) { |
|
64 | + $this->kernel->pages()->each(function(HydePage $page) { |
|
65 | 65 | $this->discover($page); |
66 | 66 | }); |
67 | 67 |