@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | 'stubs' => [ |
26 | 26 | 'enabled' => false, |
27 | - 'path' => base_path() . '/vendor/nwidart/laravel-modules/src/Commands/stubs', |
|
27 | + 'path' => base_path().'/vendor/nwidart/laravel-modules/src/Commands/stubs', |
|
28 | 28 | 'files' => [ |
29 | 29 | 'routes/web' => 'Routes/web.php', |
30 | 30 | 'routes/api' => 'Routes/api.php', |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | $generatorPath = GenerateConfigReader::read('provider'); |
80 | 80 | |
81 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
81 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | /** |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | protected function getWebRoutesPath() |
88 | 88 | { |
89 | - return '/' . $this->laravel['config']->get('stubs.files.routes', 'Routes/web.php'); |
|
89 | + return '/'.$this->laravel['config']->get('stubs.files.routes', 'Routes/web.php'); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | */ |
95 | 95 | protected function getApiRoutesPath() |
96 | 96 | { |
97 | - return '/' . $this->laravel['config']->get('stubs.files.routes', 'Routes/api.php'); |
|
97 | + return '/'.$this->laravel['config']->get('stubs.files.routes', 'Routes/api.php'); |
|
98 | 98 | } |
99 | 99 | |
100 | 100 | public function getDefaultNamespace() : string |
@@ -71,9 +71,9 @@ discard block |
||
71 | 71 | */ |
72 | 72 | public function getPath() |
73 | 73 | { |
74 | - $path = config('modules.stubs.path') . $this->path; |
|
74 | + $path = config('modules.stubs.path').$this->path; |
|
75 | 75 | |
76 | - return file_exists($path) ? $path : static::getBasePath() . $this->path; |
|
76 | + return file_exists($path) ? $path : static::getBasePath().$this->path; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $contents = file_get_contents($this->getPath()); |
107 | 107 | |
108 | 108 | foreach ($this->replaces as $search => $replace) { |
109 | - $contents = str_replace('$' . strtoupper($search) . '$', $replace, $contents); |
|
109 | + $contents = str_replace('$'.strtoupper($search).'$', $replace, $contents); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | return $contents; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | */ |
133 | 133 | public function saveTo($path, $filename) |
134 | 134 | { |
135 | - return file_put_contents($path . '/' . $filename, $this->getContents()); |
|
135 | + return file_put_contents($path.'/'.$filename, $this->getContents()); |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | /** |