@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | // collects published pages |
67 | 67 | /** @var Page $page */ |
68 | - $filteredPages = $this->builder->getPages()->filter(function (Page $page) { |
|
68 | + $filteredPages = $this->builder->getPages()->filter(function(Page $page) { |
|
69 | 69 | return !empty($page->getVariable('published')); |
70 | 70 | }); |
71 | 71 | $max = count($filteredPages); |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | // renders with Twig |
131 | 131 | try { |
132 | 132 | $deprecations = []; |
133 | - set_error_handler(function ($type, $msg) use (&$deprecations) { |
|
133 | + set_error_handler(function($type, $msg) use (&$deprecations) { |
|
134 | 134 | if (E_USER_DEPRECATED === $type) { |
135 | 135 | $deprecations[] = $msg; |
136 | 136 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | } |
310 | 310 | $rendered = preg_replace_callback( |
311 | 311 | '/href="([A-Za-z0-9_\.\-\/]+)\.md(\#[A-Za-z0-9\-]+)?"/is', |
312 | - function ($matches) use ($replace) { |
|
312 | + function($matches) use ($replace) { |
|
313 | 313 | return \sprintf($replace, Page::slugify(PrefixSuffix::sub($matches[1])), $matches[2] ?? ''); |
314 | 314 | }, |
315 | 315 | $rendered |