@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | // collect published pages |
58 | 58 | /* @var $page Page */ |
59 | - $filteredPages = $this->builder->getPages()->filter(function (Page $page) { |
|
59 | + $filteredPages = $this->builder->getPages()->filter(function(Page $page) { |
|
60 | 60 | return !empty($page->getVariable('published')); |
61 | 61 | }); |
62 | 62 | $max = count($filteredPages); |
@@ -276,7 +276,7 @@ discard block |
||
276 | 276 | } |
277 | 277 | $rendered = preg_replace_callback( |
278 | 278 | '/href="([A-Za-z0-9_\.\-\/]+)\.md(\#[A-Za-z0-9\-]+)?"/is', |
279 | - function ($matches) use ($replace) { |
|
279 | + function($matches) use ($replace) { |
|
280 | 280 | return \sprintf($replace, Page::slugify(PrefixSuffix::sub($matches[1])), $matches[2] ?? ''); |
281 | 281 | }, |
282 | 282 | $rendered |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public static function joinPath(array $strings): string |
139 | 139 | { |
140 | - array_walk($strings, function (&$value) { |
|
140 | + array_walk($strings, function(&$value) { |
|
141 | 141 | $value = str_replace('\\', '/', $value); |
142 | 142 | $value = trim($value, '/'); |
143 | 143 | }); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | */ |
155 | 155 | public static function joinFile(array $strings): string |
156 | 156 | { |
157 | - array_walk($strings, function (&$value) { |
|
157 | + array_walk($strings, function(&$value) { |
|
158 | 158 | $value = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $value); |
159 | 159 | $value = trim($value, DIRECTORY_SEPARATOR); |
160 | 160 | }); |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $message = sprintf('"%s": no config file', $theme); |
45 | 45 | if (Util::getFS()->exists($themeConfigFile)) { |
46 | 46 | set_error_handler( |
47 | - function ($severity, $message, $file, $line) { |
|
47 | + function($severity, $message, $file, $line) { |
|
48 | 48 | throw new \ErrorException($message, 0, $severity, $file, $line, null); |
49 | 49 | } |
50 | 50 | ); |