@@ -71,9 +71,9 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | public function getPath() |
| 73 | 73 | { |
| 74 | - $path = static::getBasePath() . $this->path; |
|
| 74 | + $path = static::getBasePath().$this->path; |
|
| 75 | 75 | |
| 76 | - return file_exists($path) ? $path : __DIR__ . '/../Commands/stubs' . $this->path; |
|
| 76 | + return file_exists($path) ? $path : __DIR__.'/../Commands/stubs'.$this->path; |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | if (class_exists('\Laravel\Lumen\Application')) { |
| 107 | 107 | if (app() instanceof \Laravel\Lumen\Application) { |
| 108 | 108 | $lumenFileName = str_replace('.stub', '.lumen.stub', $this->path); |
| 109 | - if (file_exists(static::getBasePath() . $lumenFileName)) { |
|
| 109 | + if (file_exists(static::getBasePath().$lumenFileName)) { |
|
| 110 | 110 | $this->setPath($lumenFileName); |
| 111 | 111 | } |
| 112 | 112 | } |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $contents = file_get_contents($this->getPath()); |
| 116 | 116 | |
| 117 | 117 | foreach ($this->replaces as $search => $replace) { |
| 118 | - $contents = str_replace('$' . strtoupper($search) . '$', $replace, $contents); |
|
| 118 | + $contents = str_replace('$'.strtoupper($search).'$', $replace, $contents); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | return $contents; |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function saveTo($path, $filename) |
| 143 | 143 | { |
| 144 | - return file_put_contents($path . '/' . $filename, $this->getContents()); |
|
| 144 | + return file_put_contents($path.'/'.$filename, $this->getContents()); |
|
| 145 | 145 | } |
| 146 | 146 | |
| 147 | 147 | /** |