@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | } |
| 73 | 73 | $code = array_filter(array_slice($lines, $start, $end - $start + 1, true), 'trim'); |
| 74 | 74 | $max = strlen($end); |
| 75 | - $cite->code = implode("\n", array_map(function ($u, $v) use ($max) { |
|
| 75 | + $cite->code = implode("\n", array_map(function($u, $v) use ($max) { |
|
| 76 | 76 | return sprintf("%{$max}d\t%s", $u, rtrim($v)); |
| 77 | 77 | }, array_keys($code), $code)); |
| 78 | 78 | $cite->save(); |
@@ -89,11 +89,11 @@ discard block |
||
| 89 | 89 | if (!function_exists('sweep')) { |
| 90 | 90 | function sweep() |
| 91 | 91 | { |
| 92 | - call_user_func_array(function ($u) { |
|
| 92 | + call_user_func_array(function($u) { |
|
| 93 | 93 | $u->sweep(); |
| 94 | 94 | }, config('trans-helper.model.cite')::get()->all()); |
| 95 | 95 | |
| 96 | - call_user_func_array(function ($u) { |
|
| 96 | + call_user_func_array(function($u) { |
|
| 97 | 97 | $u->sweep(); |
| 98 | 98 | }, config('trans-helper.model.term')::get()->all()); |
| 99 | 99 | } |