Completed
Pull Request — master (#1105)
by Dovydas
09:11
created
src/Support/Stub.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,6 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Set variable style.
50 50
      *
51
-     * @param string $style
52 51
      * @return self
53 52
      */
54 53
     public function setStyle($left, $right = null)
@@ -138,7 +137,7 @@  discard block
 block discarded – undo
138 137
     /**
139 138
      * Get stub contents.
140 139
      *
141
-     * @return mixed|string
140
+     * @return string
142 141
      */
143 142
     public function getContents()
144 143
     {
@@ -168,7 +167,7 @@  discard block
 block discarded – undo
168 167
      * @param string $path
169 168
      * @param string $filename
170 169
      *
171
-     * @return bool
170
+     * @return integer
172 171
      */
173 172
     public function saveTo($path, $filename)
174 173
     {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             $right = $left;
62 62
         }
63 63
 
64
-        $this->style = trim($left . 'VARIABLE_NAME' . $right);
64
+        $this->style = trim($left.'VARIABLE_NAME'.$right);
65 65
 
66 66
         return $this;
67 67
     }
@@ -110,9 +110,9 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function getPath()
112 112
     {
113
-        $path = static::getBasePath() . $this->path;
113
+        $path = static::getBasePath().$this->path;
114 114
 
115
-        return file_exists($path) ? $path : __DIR__ . '/../Commands/stubs' . $this->path;
115
+        return file_exists($path) ? $path : __DIR__.'/../Commands/stubs'.$this->path;
116 116
     }
117 117
 
118 118
     /**
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      */
173 173
     public function saveTo($path, $filename)
174 174
     {
175
-        return file_put_contents($path . '/' . $filename, $this->getContents());
175
+        return file_put_contents($path.'/'.$filename, $this->getContents());
176 176
     }
177 177
 
178 178
     /**
Please login to merge, or discard this patch.
config/config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     'stubs' => [
29 29
         'enabled' => false,
30 30
         'style' => '$VARIABLE_NAME$',
31
-        'path' => base_path() . '/vendor/nwidart/laravel-modules/src/Commands/stubs',
31
+        'path' => base_path().'/vendor/nwidart/laravel-modules/src/Commands/stubs',
32 32
         'files' => [
33 33
             'routes/web' => 'Routes/web.php',
34 34
             'routes/api' => 'Routes/api.php',
Please login to merge, or discard this patch.