Passed
Push — master ( af68bb...ca5e33 )
by Robin
02:39
created
src/model/VocabCite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/migration/2019_03_10_110221_create_queue_tables.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/model/VocabTerm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
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.