@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $this->options = array_merge([ |
151 | 151 | 'drafts' => false, // build drafts or not |
152 | 152 | 'dry-run' => false, // if dry-run is true, generated files are not saved |
153 | - 'page' => '', // specific page to build |
|
153 | + 'page' => '', // specific page to build |
|
154 | 154 | 'renderPath' => '' // |
155 | 155 | ], $options); |
156 | 156 | |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | /** |
209 | 209 | * Set configuration. |
210 | 210 | */ |
211 | - public function setConfig(array|Config $config): self |
|
211 | + public function setConfig(array | Config $config): self |
|
212 | 212 | { |
213 | 213 | if (\is_array($config)) { |
214 | 214 | $config = new Config($config); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | if (empty($regexPath)) { |
84 | 84 | return true; |
85 | 85 | } |
86 | - return (bool) preg_match('/'.$regexPath.'/', $page->getPath()); |
|
86 | + return (bool) preg_match('/' . $regexPath . '/', $page->getPath()); |
|
87 | 87 | }) |
88 | 88 | // enrichs some variables |
89 | 89 | ->map(function (Page $page) { |