Passed
Push β€” master ( a19138...d27343 )
by Sheldon
04:02
created
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.
app/Generators/ControllerGenerator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         return str_replace(
37 37
             '/',
38 38
             '\\',
39
-            parent::getRootNamespace() . parent::getConfigGeneratorClassPath($this->getPathConfigNode())
39
+            parent::getRootNamespace().parent::getConfigGeneratorClassPath($this->getPathConfigNode())
40 40
         );
41 41
     }
42 42
 
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function getPath()
59 59
     {
60
-        return $this->getBasePath() .
61
-            '/' .
62
-            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true) .
63
-            '/' .
64
-            $this->getControllerName() .
60
+        return $this->getBasePath().
61
+            '/'.
62
+            parent::getConfigGeneratorClassPath($this->getPathConfigNode(), true).
63
+            '/'.
64
+            $this->getControllerName().
65 65
             'Controller.php';
66 66
     }
67 67
 
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/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.