@@ -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 %s", $u + 1, rtrim($v)); |
| 77 | 77 | }, array_keys($code), $code)); |
| 78 | 78 | $cite->save(); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | function sweep() |
| 92 | 92 | { |
| 93 | 93 | array_map( |
| 94 | - function ($u) { |
|
| 94 | + function($u) { |
|
| 95 | 95 | $u->sweep(); |
| 96 | 96 | }, |
| 97 | 97 | array_merge( |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | if ($line) { |
| 39 | 39 | foreach ($this->terms()->get() as $term) { |
| 40 | 40 | $keywords = ["localize('{$term->term}')", 'localize("' . $term->term . '")']; |
| 41 | - $matched = array_filter(array_map(function ($u) use ($line) { |
|
| 41 | + $matched = array_filter(array_map(function($u) use ($line) { |
|
| 42 | 42 | return strpos($line, $u); |
| 43 | 43 | }, $keywords), 'strlen'); |
| 44 | 44 | if (empty($matched)) { |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | if (!Schema::connection($connection)->hasTable(config('queue.failed.table'))) { |
| 19 | 19 | Schema::connection($connection)->create( |
| 20 | 20 | config('queue.failed.table'), |
| 21 | - function (Blueprint $table) { |
|
| 21 | + function(Blueprint $table) { |
|
| 22 | 22 | $table->bigIncrements('id'); |
| 23 | 23 | $table->text('connection'); |
| 24 | 24 | $table->text('queue'); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | if (!Schema::connection($connection)->hasTable(config('queue.connections.database.table'))) { |
| 33 | 33 | Schema::connection($connection)->create( |
| 34 | 34 | config('queue.connections.database.table'), |
| 35 | - function (Blueprint $table) { |
|
| 35 | + function(Blueprint $table) { |
|
| 36 | 36 | $table->bigIncrements('id'); |
| 37 | 37 | $table->string('queue')->index(); |
| 38 | 38 | $table->longText('payload'); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | call_user_func_array( |
| 61 | 61 | 'array_merge', |
| 62 | 62 | array_map( |
| 63 | - function ($u) { |
|
| 63 | + function($u) { |
|
| 64 | 64 | return array_keys($u->translation); |
| 65 | 65 | }, |
| 66 | 66 | self::get()->all() |