Passed
Push — master ( d27343...ff86d8 )
by Sheldon
05:44
created
app/Generators/Migrations/RulesParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     {
92 92
         return array_first(
93 93
             explode('=>', $rules),
94
-            function ($key/*, $value*/) {
94
+            function($key/*, $value*/) {
95 95
                 return $key;
96 96
             }
97 97
         );
Please login to merge, or discard this patch.
app/Generators/Migrations/SchemaParser.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     {
126 126
         return array_first(
127 127
             explode(':', $schema),
128
-            function ($key/*, $value*/) {
128
+            function($key/*, $value*/) {
129 129
                 return $key;
130 130
             }
131 131
         );
@@ -144,8 +144,7 @@  discard block
 block discarded – undo
144 144
         $fields = str_replace($column.':', '', $schema);
145 145
 
146 146
         return $this->hasCustomAttribute($column) ?
147
-            $this->getCustomAttribute($column) :
148
-            explode(':', $fields);
147
+            $this->getCustomAttribute($column) : explode(':', $fields);
149 148
     }
150 149
 
151 150
     /**
Please login to merge, or discard this patch.
app/Generators/ApiControllerGenerator.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         return str_replace(
35 35
             '/',
36 36
             '\\',
37
-            parent::getRootNamespace() . parent::getConfigGeneratorClassPath($this->getPathConfigNode())
37
+            parent::getRootNamespace().parent::getConfigGeneratorClassPath($this->getPathConfigNode())
38 38
         );
39 39
     }
40 40
 
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function getPath()
57 57
     {
58
-        return $this->getBasePath() . '/' .
58
+        return $this->getBasePath().'/'.
59 59
             parent::getConfigGeneratorClassPath(
60 60
                 $this->getPathConfigNode(),
61 61
                 true
62
-            ) .
63
-            '/' .
64
-            $this->getControllerName() . 'Controller.php';
62
+            ).
63
+            '/'.
64
+            $this->getControllerName().'Controller.php';
65 65
     }
66 66
 
67 67
     /**
@@ -139,12 +139,12 @@  discard block
 block discarded – undo
139 139
 
140 140
         $validator = $validatorGenerator->getRootNamespace().'\\'.$validatorGenerator->getName();
141 141
 
142
-        return 'use ' . str_replace(
142
+        return 'use '.str_replace(
143 143
                 [
144 144
                     '\\',
145 145
                     '/',
146 146
                 ]
147
-                , '\\', $validator) . 'Validator;';
147
+                , '\\', $validator).'Validator;';
148 148
     }
149 149
 
150 150
     /**
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
 
163 163
         $repository = $repositoryGenerator->getRootNamespace().'\\'.$repositoryGenerator->getName();
164 164
 
165
-        return 'use ' . str_replace(
165
+        return 'use '.str_replace(
166 166
                 [
167 167
                     '\\',
168 168
                     '/',
169 169
                 ]
170
-                , '\\', $repository) . 'Repository;';
170
+                , '\\', $repository).'Repository;';
171 171
     }
172 172
 }
Please login to merge, or discard this patch.
app/Generators/LangGenerator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         $result .= "\t\t'".$this->getIdName()."' => '".str_singular($this->getIdName())."',\r\n";
100 100
         if (!empty($fields)) {
101 101
             foreach ($fields as /*$index =>*/
102
-                     $field) {
102
+                        $field) {
103 103
                 $result .= "\t\t'{$field['name']}' => '{$field['comment']}',\r\n";
104 104
             }
105 105
             $result .= "\t\t'created_by' => 'CREATED_BY',\r\n";
Please login to merge, or discard this patch.
app/Generators/ValidatorGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      */
35 35
     public function getRootNamespace()
36 36
     {
37
-        return parent::getRootNamespace() .
37
+        return parent::getRootNamespace().
38 38
             parent::getConfigGeneratorClassPath($this->getPathConfigNode());
39 39
     }
40 40
 
@@ -55,11 +55,11 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function getPath()
57 57
     {
58
-        return $this->getBasePath() .
59
-            '/' .
60
-            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) .
61
-            '/' .
62
-            $this->getName() .
58
+        return $this->getBasePath().
59
+            '/'.
60
+            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true).
61
+            '/'.
62
+            $this->getName().
63 63
             'Validator.php';
64 64
     }
65 65
 
Please login to merge, or discard this patch.
app/Generators/PresenterGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function getRootNamespace()
33 33
     {
34
-        return parent::getRootNamespace() .
34
+        return parent::getRootNamespace().
35 35
             parent::getConfigGeneratorClassPath($this->getPathConfigNode());
36 36
     }
37 37
 
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function getPath()
85 85
     {
86
-        return $this->getBasePath() .
87
-            '/' .
88
-            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) .
89
-            '/' .
90
-            $this->getName() .
86
+        return $this->getBasePath().
87
+            '/'.
88
+            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true).
89
+            '/'.
90
+            $this->getName().
91 91
             'Presenter.php';
92 92
     }
93 93
 
Please login to merge, or discard this patch.
app/Http/Controllers/Api/Controllers/SocialiteUsersController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             [
129 129
                 'provider' => [
130 130
                     'required',
131
-                    Rule::unique('socialite_users')->where(function ($query) use ($user) {
131
+                    Rule::unique('socialite_users')->where(function($query) use ($user) {
132 132
                         return $query->where('user_id', $user->user_id);
133 133
                     }),
134 134
                 ],
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     {
169 169
         $data = $request->all();
170 170
 
171
-        DB::transaction(function () use ($request, $data) {
171
+        DB::transaction(function() use ($request, $data) {
172 172
             $user = $this->userRepository->create($data);
173 173
             $this->addSocialiteUser($request, $user);
174 174
         });
Please login to merge, or discard this patch.
app/Http/Controllers/Backend/Tools/ApiTester/ApiTesterController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
         }
75 75
         $parameters = array_filter(
76 76
             $parameters,
77
-            function ($key) {
77
+            function($key) {
78 78
                 return $key !== '';
79 79
             },
80 80
             ARRAY_FILTER_USE_KEY
Please login to merge, or discard this patch.