Passed
Push — master ( d27343...ff86d8 )
by Sheldon
05:44
created
app/Generators/BindingsGenerator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,12 +53,12 @@
 block discarded – undo
53 53
      */
54 54
     public function getPath()
55 55
     {
56
-        return $this->getBasePath() .
57
-            '/Providers/' .
56
+        return $this->getBasePath().
57
+            '/Providers/'.
58 58
             parent::getConfigGeneratorClassPath(
59 59
                 $this->getPathConfigNode(),
60 60
                 true
61
-            ) .
61
+            ).
62 62
             '.php';
63 63
     }
64 64
 
Please login to merge, or discard this patch.
app/Generators/Commands/ControllerCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $this->call(
56 56
                 'yl:request',
57 57
                 [
58
-                    'name' => $this->argument('name') . 'Create',
58
+                    'name' => $this->argument('name').'Create',
59 59
                     '--type' => 'web',
60 60
                     '--fields' => $this->option('fields'),
61 61
                     '--force' => $this->option('force'),
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             $this->call(
66 66
                 'yl:request',
67 67
                 [
68
-                    'name' => $this->argument('name') . 'Update',
68
+                    'name' => $this->argument('name').'Update',
69 69
                     '--type' => 'web',
70 70
                     '--fields' => $this->option('fields'),
71 71
                     '--force' => $this->option('force'),
Please login to merge, or discard this patch.
app/Generators/Commands/RepositoryCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         $this->generators->push(
67 67
             new MigrationGenerator(
68 68
                 [
69
-                    'name' => 'create_' . snake_case(str_plural($this->argument('name'))) . '_table',
69
+                    'name' => 'create_'.snake_case(str_plural($this->argument('name'))).'_table',
70 70
                     'fields' => $this->option('fillable'),
71 71
                     'force' => $this->option('force'),
72 72
                 ]
Please login to merge, or discard this patch.
app/Generators/Commands/ApiControllerCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             $this->call(
56 56
                 'yl:request',
57 57
                 [
58
-                    'name' => 'Api/' . $this->argument('name') . 'Create',
58
+                    'name' => 'Api/'.$this->argument('name').'Create',
59 59
                     '--type' => 'api',
60 60
                     '--fields' => $this->option('fields'),
61 61
                     '--force' => $this->option('force'),
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
             $this->call(
66 66
                 'yl:request',
67 67
                 [
68
-                    'name' => 'Api/' . $this->argument('name') . 'Update',
68
+                    'name' => 'Api/'.$this->argument('name').'Update',
69 69
                     '--type' => 'api',
70 70
                     '--fields' => $this->option('fields'),
71 71
                     '--force' => $this->option('force'),
Please login to merge, or discard this patch.
app/Generators/ViewsGenerator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,11 +65,11 @@
 block discarded – undo
65 65
      */
66 66
     public function getPath()
67 67
     {
68
-        return $this->getBasePath() .
69
-            '/' .
70
-            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) .
71
-            '/' .
72
-            $this->getName() .
68
+        return $this->getBasePath().
69
+            '/'.
70
+            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true).
71
+            '/'.
72
+            $this->getName().
73 73
             '/';
74 74
     }
75 75
 
Please login to merge, or discard this patch.
app/Generators/Stub.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
         $contents = file_get_contents($this->getPath());
128 128
         foreach ($this->replaces as $search => $replace) {
129 129
             $contents = str_replace(
130
-                '$' . strtoupper($search) . '$',
130
+                '$'.strtoupper($search).'$',
131 131
                 $replace,
132 132
                 $contents
133 133
             );
Please login to merge, or discard this patch.
app/Generators/ModelGenerator.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function getRootNamespace()
35 35
     {
36
-        return parent::getRootNamespace() .
36
+        return parent::getRootNamespace().
37 37
             parent::getConfigGeneratorClassPath($this->getPathConfigNode());
38 38
     }
39 39
 
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
      */
55 55
     public function getPath()
56 56
     {
57
-        return $this->getBasePath() .
58
-            '/' .
59
-            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) .
60
-            '/' .
61
-            $this->getName() .
57
+        return $this->getBasePath().
58
+            '/'.
59
+            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true).
60
+            '/'.
61
+            $this->getName().
62 62
             '.php';
63 63
     }
64 64
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             parent::getReplacements(),
84 84
             [
85 85
                 'fillable' => $this->getFillable(),
86
-                'use_base_model' => 'use ' . $this->getRootNamespace() . '\BaseModel;',
86
+                'use_base_model' => 'use '.$this->getRootNamespace().'\BaseModel;',
87 87
                 '_id_name' => $this->getIdName(),
88 88
             ]
89 89
         );
Please login to merge, or discard this patch.
app/Generators/RequestGenerator.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
 
@@ -52,11 +52,11 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function getPath()
54 54
     {
55
-        return $this->getBasePath() .
56
-            '/' .
57
-            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) .
58
-            '/' .
59
-            $this->getName() .
55
+        return $this->getBasePath().
56
+            '/'.
57
+            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true).
58
+            '/'.
59
+            $this->getName().
60 60
             'Request.php';
61 61
     }
62 62
 
Please login to merge, or discard this patch.
app/Generators/Generator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         }
94 94
 
95 95
         return (new Stub(
96
-            $path . '/Stubs/' . $this->stub . '.stub',
96
+            $path.'/Stubs/'.$this->stub.'.stub',
97 97
             $this->getReplacements()
98 98
         ))->render();
99 99
     }
@@ -304,8 +304,8 @@  discard block
 block discarded – undo
304 304
             return;
305 305
         }
306 306
 
307
-        return 'namespace ' .
308
-            rtrim($rootNamespace . '\\' . implode($segments, '\\'), '\\') .
307
+        return 'namespace '.
308
+            rtrim($rootNamespace.'\\'.implode($segments, '\\'), '\\').
309 309
             ';';
310 310
     }
311 311
 
Please login to merge, or discard this patch.