@@ -303,7 +303,7 @@ discard block |
||
| 303 | 303 | continue; |
| 304 | 304 | } |
| 305 | 305 | |
| 306 | - $path = $this->module->getModulePath($this->getName()) . '/' . $folder->getPath(); |
|
| 306 | + $path = $this->module->getModulePath($this->getName()).'/'.$folder->getPath(); |
|
| 307 | 307 | |
| 308 | 308 | $this->filesystem->makeDirectory($path, 0755, true); |
| 309 | 309 | if (config('modules.stubs.gitkeep')) { |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | */ |
| 320 | 320 | public function generateGitKeep($path) |
| 321 | 321 | { |
| 322 | - $this->filesystem->put($path . '/.gitkeep', ''); |
|
| 322 | + $this->filesystem->put($path.'/.gitkeep', ''); |
|
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | /** |
@@ -334,7 +334,7 @@ discard block |
||
| 334 | 334 | } |
| 335 | 335 | } |
| 336 | 336 | |
| 337 | - $path = $this->module->getModulePath($this->getName()) . $file; |
|
| 337 | + $path = $this->module->getModulePath($this->getName()).$file; |
|
| 338 | 338 | |
| 339 | 339 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 340 | 340 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -387,7 +387,7 @@ discard block |
||
| 387 | 387 | protected function getMakeProviderArguments() |
| 388 | 388 | { |
| 389 | 389 | $arguments = [ |
| 390 | - 'name' => $this->getName() . 'ServiceProvider', |
|
| 390 | + 'name' => $this->getName().'ServiceProvider', |
|
| 391 | 391 | 'module' => $this->getName(), |
| 392 | 392 | '--master' => true, |
| 393 | 393 | ]; |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | protected function getMakeControllerArguments() |
| 408 | 408 | { |
| 409 | 409 | $arguments = [ |
| 410 | - 'controller' => $this->getName() . 'Controller', |
|
| 410 | + 'controller' => $this->getName().'Controller', |
|
| 411 | 411 | 'module' => $this->getName(), |
| 412 | 412 | ]; |
| 413 | 413 | if ($this->api === true) { |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | protected function getStubContents($stub) |
| 443 | 443 | { |
| 444 | 444 | return (new Stub( |
| 445 | - '/' . $stub . '.stub', |
|
| 445 | + '/'.$stub.'.stub', |
|
| 446 | 446 | $this->getReplacement($stub) |
| 447 | 447 | ) |
| 448 | 448 | )->render(); |
@@ -476,7 +476,7 @@ discard block |
||
| 476 | 476 | $replaces = []; |
| 477 | 477 | |
| 478 | 478 | foreach ($keys as $key) { |
| 479 | - if (method_exists($this, $method = 'get' . ucfirst(studly_case(strtolower($key))) . 'Replacement')) { |
|
| 479 | + if (method_exists($this, $method = 'get'.ucfirst(studly_case(strtolower($key))).'Replacement')) { |
|
| 480 | 480 | $replaces[$key] = $this->$method(); |
| 481 | 481 | } else { |
| 482 | 482 | $replaces[$key] = null; |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | */ |
| 492 | 492 | private function generateModuleJsonFile() |
| 493 | 493 | { |
| 494 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
| 494 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
| 495 | 495 | |
| 496 | 496 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
| 497 | 497 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -508,13 +508,13 @@ discard block |
||
| 508 | 508 | */ |
| 509 | 509 | private function cleanModuleJsonFile() |
| 510 | 510 | { |
| 511 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
| 511 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
| 512 | 512 | |
| 513 | 513 | $content = $this->filesystem->get($path); |
| 514 | 514 | $namespace = $this->getModuleNamespaceReplacement(); |
| 515 | 515 | $studlyName = $this->getStudlyNameReplacement(); |
| 516 | 516 | |
| 517 | - $provider = '"' . $namespace . '\\\\' . $studlyName . '\\\\Providers\\\\' . $studlyName . 'ServiceProvider"'; |
|
| 517 | + $provider = '"'.$namespace.'\\\\'.$studlyName.'\\\\Providers\\\\'.$studlyName.'ServiceProvider"'; |
|
| 518 | 518 | |
| 519 | 519 | $content = str_replace($provider, '', $content); |
| 520 | 520 | |