@@ -68,6 +68,9 @@ discard block |
||
68 | 68 | return $this; |
69 | 69 | } |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $content |
|
73 | + */ |
|
71 | 74 | public function itemprop(string $name, ?string $content) : Meta { |
72 | 75 | if (!$content) { |
73 | 76 | return $this; |
@@ -79,6 +82,9 @@ discard block |
||
79 | 82 | return $this; |
80 | 83 | } |
81 | 84 | |
85 | + /** |
|
86 | + * @param string $content |
|
87 | + */ |
|
82 | 88 | public function property(string $property, ?string $content) : Meta { |
83 | 89 | if (!$content) { |
84 | 90 | return $this; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $contents = File::read($this->unparsed); |
28 | 28 | |
29 | - if (! $contents) { |
|
29 | + if (!$contents) { |
|
30 | 30 | throw InvalidConfiguration::fileNotFound($this->unparsed); |
31 | 31 | } |
32 | 32 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | private function setTwigRule(): void |
38 | 38 | { |
39 | - $this->setRule(TwigRenderer::class, function ($value) { |
|
39 | + $this->setRule(TwigRenderer::class, function($value) { |
|
40 | 40 | if ($value === 'twig') { |
41 | 41 | return TwigRenderer::make($this->templateDirectory); |
42 | 42 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | { |
13 | 13 | $fs = new Filesystem(); |
14 | 14 | |
15 | - if (! $fs->exists($templateDirectory)) { |
|
15 | + if (!$fs->exists($templateDirectory)) { |
|
16 | 16 | $fs->mkdir($templateDirectory); |
17 | 17 | } |
18 | 18 |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $path = self::path($path); |
29 | 29 | |
30 | - if (! file_exists(self::path($path))) { |
|
30 | + if (!file_exists(self::path($path))) { |
|
31 | 31 | return null; |
32 | 32 | } |
33 | 33 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | public static function write(string $path, $content = null): void |
40 | 40 | { |
41 | - if (! self::$fs) { |
|
41 | + if (!self::$fs) { |
|
42 | 42 | self::$fs = new Filesystem(); |
43 | 43 | } |
44 | 44 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | array $adapterConfiguration, |
20 | 20 | VariableParser $variableParser |
21 | 21 | ) { |
22 | - if (! $this->isValidConfiguration($adapterConfiguration)) { |
|
22 | + if (!$this->isValidConfiguration($adapterConfiguration)) { |
|
23 | 23 | throw InvalidConfiguration::invalidAdapterConfiguration('filter', '`field`: `filter`'); |
24 | 24 | } |
25 | 25 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | array $adapterConfiguration, |
29 | 29 | VariableParser $variableParser |
30 | 30 | ) { |
31 | - if (! $this->isValidConfiguration($adapterConfiguration)) { |
|
31 | + if (!$this->isValidConfiguration($adapterConfiguration)) { |
|
32 | 32 | throw InvalidCollectionAdapter::create(); |
33 | 33 | } |
34 | 34 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | |
158 | 158 | $prev = prev($this->entries); |
159 | 159 | |
160 | - if (! $prev) { |
|
160 | + if (!$prev) { |
|
161 | 161 | reset($this->entries); |
162 | 162 | } else { |
163 | 163 | $browse['prev'] = $prev; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | array $adapterConfiguration, |
26 | 26 | VariableParser $variableParser |
27 | 27 | ) { |
28 | - if (! $this->isValidConfiguration($adapterConfiguration)) { |
|
28 | + if (!$this->isValidConfiguration($adapterConfiguration)) { |
|
29 | 29 | throw InvalidPaginationAdapter::create(); |
30 | 30 | } |
31 | 31 | |
@@ -150,6 +150,6 @@ discard block |
||
150 | 150 | |
151 | 151 | protected function createPaginatedUrl(string $pageId, int $index): string |
152 | 152 | { |
153 | - return str_replace('{' .$this->parameter. '}', $index, $pageId); |
|
153 | + return str_replace('{' . $this->parameter . '}', $index, $pageId); |
|
154 | 154 | } |
155 | 155 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | $filteredConfiguration = array_filter( |
38 | 38 | $parsedConfiguration, |
39 | - function ($key) use ($matchingRoute) { |
|
39 | + function($key) use ($matchingRoute) { |
|
40 | 40 | return $key === $matchingRoute['_route']; |
41 | 41 | }, ARRAY_FILTER_USE_KEY |
42 | 42 | ); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | { |
64 | 64 | $configurationFile = File::read($this->configurationFile); |
65 | 65 | |
66 | - if (! $configurationFile) { |
|
66 | + if (!$configurationFile) { |
|
67 | 67 | throw InvalidConfiguration::siteConfigurationFileNotFound(); |
68 | 68 | } |
69 | 69 |