@@ -132,7 +132,7 @@ |
||
132 | 132 | $this->options = array_merge([ |
133 | 133 | 'drafts' => false, // build drafts or not |
134 | 134 | 'dry-run' => false, // if dry-run is true, generated files are not saved |
135 | - 'page' => '', // specific page to build |
|
135 | + 'page' => '', // specific page to build |
|
136 | 136 | ], $options); |
137 | 137 | |
138 | 138 | // process each step |
@@ -61,8 +61,8 @@ |
||
61 | 61 | |
62 | 62 | // handles options |
63 | 63 | $canonical = null; // if true, add prefix URL with baseurl |
64 | - $format = null; // set output format |
|
65 | - $language = null; // force language |
|
64 | + $format = null; // set output format |
|
65 | + $language = null; // force language |
|
66 | 66 | extract(\is_array($options) ? $options : [], EXTR_IF_EXISTS); |
67 | 67 | |
68 | 68 | // canonical URL? |
@@ -131,8 +131,8 @@ |
||
131 | 131 | $layouts = [ |
132 | 132 | // "taxonomy/$term.$format.$ext", // e.g.: taxonomy/velo.html.twig |
133 | 133 | // "taxonomy/$singular.$format.$ext", // e.g.: taxonomy/tag.html.twig |
134 | - "_default/term.$format.$ext", // e.g.: _default/term.html.twig |
|
135 | - "_default/list.$format.$ext", // e.g.: _default/list.html.twig |
|
134 | + "_default/term.$format.$ext", // e.g.: _default/term.html.twig |
|
135 | + "_default/list.$format.$ext", // e.g.: _default/list.html.twig |
|
136 | 136 | ]; |
137 | 137 | if ($page->hasVariable('term')) { |
138 | 138 | $layouts = array_merge(["taxonomy/{$page->getVariable('term')}.$format.$ext"], $layouts); |
@@ -60,7 +60,7 @@ |
||
60 | 60 | /** |
61 | 61 | * {@inheritdoc} |
62 | 62 | */ |
63 | - public function log($level, string|\Stringable $message, array $context = []): void |
|
63 | + public function log($level, string | \Stringable $message, array $context = []): void |
|
64 | 64 | { |
65 | 65 | $output = $this->output; |
66 | 66 | $output->getFormatter()->setStyle('text', new OutputFormatterStyle('white')); |
@@ -141,7 +141,7 @@ |
||
141 | 141 | /** |
142 | 142 | * Adds navigation (next and prev) to section subpages. |
143 | 143 | */ |
144 | - protected function addNavigationLinks(PagesCollection $pages, string|null $sortBy = null, bool $circular = false): void |
|
144 | + protected function addNavigationLinks(PagesCollection $pages, string | null $sortBy = null, bool $circular = false): void |
|
145 | 145 | { |
146 | 146 | $pagesAsArray = $pages->toArray(); |
147 | 147 | if ($sortBy === null || $sortBy == 'date' || $sortBy == 'updated') { |
@@ -184,7 +184,7 @@ |
||
184 | 184 | /** |
185 | 185 | * Returns the property value(s) of an output format. |
186 | 186 | */ |
187 | - public function getOutputProperty(string $name, string $property): string|array|null |
|
187 | + public function getOutputProperty(string $name, string $property): string | array | null |
|
188 | 188 | { |
189 | 189 | return $this->config->getOutputFormatProperty($name, $property); |
190 | 190 | } |
@@ -155,7 +155,7 @@ |
||
155 | 155 | /** |
156 | 156 | * Returns the configuration file name or path, if file exists, otherwise default name or false. |
157 | 157 | */ |
158 | - protected function findConfigFile(string $nameOrPath): string|false |
|
158 | + protected function findConfigFile(string $nameOrPath): string | false |
|
159 | 159 | { |
160 | 160 | $config = [ |
161 | 161 | 'name' => self::CONFIG_FILE[0], |
@@ -282,7 +282,7 @@ |
||
282 | 282 | * |
283 | 283 | * @return Asset |
284 | 284 | */ |
285 | - public function asset($path, array|null $options = null): Asset |
|
285 | + public function asset($path, array | null $options = null): Asset |
|
286 | 286 | { |
287 | 287 | if (!\is_string($path) && !\is_array($path)) { |
288 | 288 | throw new RuntimeException(\sprintf('Argument of "%s()" must a string or an array.', \Cecil\Util::formatMethodName(__METHOD__))); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * {@inheritdoc} |
48 | 48 | */ |
49 | - public function log($level, string|\Stringable $message, array $context = []): void |
|
49 | + public function log($level, string | \Stringable $message, array $context = []): void |
|
50 | 50 | { |
51 | 51 | if (!isset($this->verbosityLevelMap[$level])) { |
52 | 52 | throw new InvalidArgumentException(\sprintf('The log level "%s" does not exist.', $level)); |