Passed
Push — fix-path ( b5d6c0...1b4496 )
by Arnaud
02:46
created
src/Step/PagesRender.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Util.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/Step/ConfigImport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.