@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | continue; |
330 | 330 | } |
331 | 331 | |
332 | - $path = $this->module->getModulePath($this->getName()) . '/' . $folder->getPath(); |
|
332 | + $path = $this->module->getModulePath($this->getName()).'/'.$folder->getPath(); |
|
333 | 333 | |
334 | 334 | $this->filesystem->makeDirectory($path, 0755, true); |
335 | 335 | if (config('modules.stubs.gitkeep')) { |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | */ |
346 | 346 | public function generateGitKeep($path) |
347 | 347 | { |
348 | - $this->filesystem->put($path . '/.gitkeep', ''); |
|
348 | + $this->filesystem->put($path.'/.gitkeep', ''); |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | /** |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | public function generateFiles() |
355 | 355 | { |
356 | 356 | foreach ($this->getFiles() as $stub => $file) { |
357 | - $path = $this->module->getModulePath($this->getName()) . $file; |
|
357 | + $path = $this->module->getModulePath($this->getName()).$file; |
|
358 | 358 | |
359 | 359 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
360 | 360 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -381,7 +381,7 @@ discard block |
||
381 | 381 | |
382 | 382 | if (GenerateConfigReader::read('provider')->generate() === true) { |
383 | 383 | $this->console->call('module:make-provider', [ |
384 | - 'name' => $this->getName() . 'ServiceProvider', |
|
384 | + 'name' => $this->getName().'ServiceProvider', |
|
385 | 385 | 'module' => $this->getName(), |
386 | 386 | '--master' => true, |
387 | 387 | ]); |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | |
393 | 393 | if (GenerateConfigReader::read('controller')->generate() === true) { |
394 | 394 | $this->console->call('module:make-controller', [ |
395 | - 'controller' => $this->getName() . 'Controller', |
|
395 | + 'controller' => $this->getName().'Controller', |
|
396 | 396 | 'module' => $this->getName(), |
397 | 397 | ]); |
398 | 398 | } |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | protected function getStubContents($stub) |
409 | 409 | { |
410 | 410 | return (new Stub( |
411 | - '/' . $stub . '.stub', |
|
411 | + '/'.$stub.'.stub', |
|
412 | 412 | $this->getReplacement($stub) |
413 | 413 | ) |
414 | 414 | )->render(); |
@@ -442,7 +442,7 @@ discard block |
||
442 | 442 | $replaces = []; |
443 | 443 | |
444 | 444 | foreach ($keys as $key) { |
445 | - if (method_exists($this, $method = 'get' . ucfirst(Str::studly(strtolower($key))) . 'Replacement')) { |
|
445 | + if (method_exists($this, $method = 'get'.ucfirst(Str::studly(strtolower($key))).'Replacement')) { |
|
446 | 446 | $replaces[$key] = $this->$method(); |
447 | 447 | } else { |
448 | 448 | $replaces[$key] = null; |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | */ |
458 | 458 | private function generateModuleJsonFile() |
459 | 459 | { |
460 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
460 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
461 | 461 | |
462 | 462 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
463 | 463 | $this->filesystem->makeDirectory($dir, 0775, true); |
@@ -474,13 +474,13 @@ discard block |
||
474 | 474 | */ |
475 | 475 | private function cleanModuleJsonFile() |
476 | 476 | { |
477 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
477 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
478 | 478 | |
479 | 479 | $content = $this->filesystem->get($path); |
480 | 480 | $namespace = $this->getModuleNamespaceReplacement(); |
481 | 481 | $studlyName = $this->getStudlyNameReplacement(); |
482 | 482 | |
483 | - $provider = '"' . $namespace . '\\\\' . $studlyName . '\\\\Providers\\\\' . $studlyName . 'ServiceProvider"'; |
|
483 | + $provider = '"'.$namespace.'\\\\'.$studlyName.'\\\\Providers\\\\'.$studlyName.'ServiceProvider"'; |
|
484 | 484 | |
485 | 485 | $content = str_replace($provider, '', $content); |
486 | 486 |