Passed
Push — master ( af68bb...ca5e33 )
by Robin
02:39
created
src/helpers.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                     }
90 90
                     $code = array_filter(array_slice($lines, $start, $end - $start + 1, true), 'trim');
91 91
                     $max = strlen($end);
92
-                    $cite->code = implode("\n", array_map(function ($u, $v) use ($max) {
92
+                    $cite->code = implode("\n", array_map(function($u, $v) use ($max) {
93 93
                         return sprintf("%{$max}d    %s", $u + 1, rtrim($v));
94 94
                     }, array_keys($code), $code));
95 95
                     $cite->save();
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     function sweep()
108 108
     {
109 109
         array_map(
110
-            function ($u) {
110
+            function($u) {
111 111
                 $u->sweep();
112 112
             },
113 113
             array_merge(
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     {
159 159
         $keys = array_keys($slugs);
160 160
         $slugs = array_values($slugs);
161
-        $slugs = array_map(function ($k, $v) use ($slugs) {
161
+        $slugs = array_map(function($k, $v) use ($slugs) {
162 162
             if ($k > 0 && in_array($v, array_slice($slugs, 0, $k - 1))) {
163 163
                 $v .= '-' . uniqid();
164 164
             }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 }
204 204
                 $slugs = unique_slugs($slugs);
205 205
                 $max = intdiv(max(array_map('strlen', $slugs)) + 3, 4) * 4;
206
-                $lines = array_map(function ($u, $v) use ($max) {
206
+                $lines = array_map(function($u, $v) use ($max) {
207 207
                     $u = "'{$u}'";
208 208
                     return sprintf("    %-{$max}s => '%s',", $u, $v);
209 209
                 }, $slugs, $terms);
Please login to merge, or discard this patch.