@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | } |
| 117 | 117 | $code = array_filter(array_slice($lines, $start, $end - $start + 1, true), 'trim'); |
| 118 | 118 | $max = strlen($end); |
| 119 | - $cite->code = implode("\n", array_map(function ($u, $v) use ($max) { |
|
| 119 | + $cite->code = implode("\n", array_map(function($u, $v) use ($max) { |
|
| 120 | 120 | return sprintf("%{$max}d %s ", $u + 1, rtrim($v)); |
| 121 | 121 | }, array_keys($code), $code)); |
| 122 | 122 | $cite->save(); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | function sweep() |
| 135 | 135 | { |
| 136 | 136 | array_map( |
| 137 | - function ($u) { |
|
| 137 | + function($u) { |
|
| 138 | 138 | $u->sweep(); |
| 139 | 139 | }, |
| 140 | 140 | array_merge( |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | { |
| 186 | 186 | $keys = array_keys($slugs); |
| 187 | 187 | $slugs = array_values($slugs); |
| 188 | - $slugs = array_map(function ($k, $v) use ($slugs) { |
|
| 188 | + $slugs = array_map(function($k, $v) use ($slugs) { |
|
| 189 | 189 | if ($k > 0 && in_array($v, array_slice($slugs, 0, $k - 1))) { |
| 190 | 190 | $v .= '-' . uniqid(); |
| 191 | 191 | } |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | } |
| 231 | 231 | $slugs = unique_slugs($slugs); |
| 232 | 232 | $max = intdiv(max(array_map('strlen', $slugs)) + 3, 4) * 4; |
| 233 | - $lines = array_map(function ($u, $v) use ($max) { |
|
| 233 | + $lines = array_map(function($u, $v) use ($max) { |
|
| 234 | 234 | $u = "'{$u}'"; |
| 235 | 235 | return sprintf(" %-{$max}s => '%s',", $u, $v); |
| 236 | 236 | }, $slugs, $terms); |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | } |
| 52 | 52 | $code = array_filter(array_slice($lines, $start, $end - $start + 1, true), 'trim'); |
| 53 | 53 | $max = strlen($end); |
| 54 | - $cite->code = implode("\n", array_map(function ($u, $v) use ($max) { |
|
| 54 | + $cite->code = implode("\n", array_map(function($u, $v) use ($max) { |
|
| 55 | 55 | return sprintf("%{$max}d %s ", $u + 1, rtrim($v)); |
| 56 | 56 | }, array_keys($code), $code)); |
| 57 | 57 | $cite->save(); |