Passed
Push — master ( 66a0e9...731289 )
by Robin
02:50
created
src/migration/2019_03_11_103021_create_vocabularies_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     public function up()
20 20
     {
21 21
         $connection = config('trans-helper.database.connection') ?: config('database.default');
22
-        Schema::connection($connection)->create(config('trans-helper.database.table.cite'), function (Blueprint $table) {
22
+        Schema::connection($connection)->create(config('trans-helper.database.table.cite'), function(Blueprint $table) {
23 23
             $table->bigIncrements('id');
24 24
             $table->string('file', 256)->default('');
25 25
             $table->unsignedBigInteger('line');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         });
38 38
         Schema::connection($connection)->create(
39 39
             config('trans-helper.database.table.term'),
40
-            function (Blueprint $table) {
40
+            function(Blueprint $table) {
41 41
                 $table->bigIncrements('id');
42 42
                 $table->string('namespace', 256)->default('');
43 43
                 $table->string('term', 256)->default('');
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         Schema::connection($connection)->create(
56 56
             config('trans-helper.database.table.link'),
57
-            function (Blueprint $table) {
57
+            function(Blueprint $table) {
58 58
                 $table->unsignedBigInteger('cited');
59 59
                 $table->unsignedBigInteger('vocab');
60 60
 
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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();
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/model/VocabCite.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
             $terms = call_user_func_array(
39 39
                 'array_merge',
40 40
                 array_map(
41
-                    function ($u) {
41
+                    function($u) {
42 42
                         return ["localize('{$u->term}')", 'localize("' . $u->term . '")'];
43 43
                     },
44 44
                     $this->terms()->get()->all()
45 45
                 )
46 46
             );
47
-            $matched = array_filter(array_map(function ($u) use ($line) {
47
+            $matched = array_filter(array_map(function($u) use ($line) {
48 48
                 return strpos($line, $u);
49 49
             }, $terms), 'strlen');
50 50
 
Please login to merge, or discard this patch.