@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | continue; |
360 | 360 | } |
361 | 361 | |
362 | - $path = $this->module->getModulePath($this->getName()) . '/' . $folder->getPath(); |
|
362 | + $path = $this->module->getModulePath($this->getName()).'/'.$folder->getPath(); |
|
363 | 363 | |
364 | 364 | $this->filesystem->makeDirectory($path, 0755, true); |
365 | 365 | if (config('modules.stubs.gitkeep')) { |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | */ |
376 | 376 | public function generateGitKeep($path) |
377 | 377 | { |
378 | - $this->filesystem->put($path . '/.gitkeep', ''); |
|
378 | + $this->filesystem->put($path.'/.gitkeep', ''); |
|
379 | 379 | } |
380 | 380 | |
381 | 381 | /** |
@@ -384,11 +384,11 @@ discard block |
||
384 | 384 | public function generateFiles() |
385 | 385 | { |
386 | 386 | foreach ($this->getFiles() as $stub => $file) { |
387 | - $file = str_replace('$LOWER_NAME$',$this->getLowerNameReplacement(),$file); |
|
388 | - $file = str_replace('$STUDLY_NAME$', $this->getName(),$file); |
|
389 | - $path = $this->module->getModulePath($this->getName()) . $file; |
|
387 | + $file = str_replace('$LOWER_NAME$', $this->getLowerNameReplacement(), $file); |
|
388 | + $file = str_replace('$STUDLY_NAME$', $this->getName(), $file); |
|
389 | + $path = $this->module->getModulePath($this->getName()).$file; |
|
390 | 390 | |
391 | - $this->component->task("Generating file {$path}",function () use ($stub, $path) { |
|
391 | + $this->component->task("Generating file {$path}", function() use ($stub, $path) { |
|
392 | 392 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
393 | 393 | $this->filesystem->makeDirectory($dir, 0775, true); |
394 | 394 | } |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | |
416 | 416 | if (GenerateConfigReader::read('provider')->generate() === true) { |
417 | 417 | $this->console->call('module:make-provider', [ |
418 | - 'name' => $this->getName() . 'ServiceProvider', |
|
418 | + 'name' => $this->getName().'ServiceProvider', |
|
419 | 419 | 'module' => $this->getName(), |
420 | 420 | '--master' => true, |
421 | 421 | ]); |
@@ -425,11 +425,11 @@ discard block |
||
425 | 425 | } |
426 | 426 | |
427 | 427 | if (GenerateConfigReader::read('controller')->generate() === true) { |
428 | - $options = $this->type=='api' ? ['--api'=>true] : []; |
|
428 | + $options = $this->type == 'api' ? ['--api'=>true] : []; |
|
429 | 429 | $this->console->call('module:make-controller', [ |
430 | - 'controller' => $this->getName() . 'Controller', |
|
430 | + 'controller' => $this->getName().'Controller', |
|
431 | 431 | 'module' => $this->getName(), |
432 | - ]+$options); |
|
432 | + ] + $options); |
|
433 | 433 | } |
434 | 434 | |
435 | 435 | if (GenerateConfigReader::read('model')->generate() === true) { |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | protected function getStubContents($stub) |
516 | 516 | { |
517 | 517 | return (new Stub( |
518 | - '/' . $stub . '.stub', |
|
518 | + '/'.$stub.'.stub', |
|
519 | 519 | $this->getReplacement() |
520 | 520 | ) |
521 | 521 | )->render(); |
@@ -526,9 +526,9 @@ discard block |
||
526 | 526 | */ |
527 | 527 | private function generateModuleJsonFile() |
528 | 528 | { |
529 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
529 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
530 | 530 | |
531 | - $this->component->task("Generating file $path",function () use ($path) { |
|
531 | + $this->component->task("Generating file $path", function() use ($path) { |
|
532 | 532 | if (!$this->filesystem->isDirectory($dir = dirname($path))) { |
533 | 533 | $this->filesystem->makeDirectory($dir, 0775, true); |
534 | 534 | } |
@@ -543,13 +543,13 @@ discard block |
||
543 | 543 | */ |
544 | 544 | private function cleanModuleJsonFile() |
545 | 545 | { |
546 | - $path = $this->module->getModulePath($this->getName()) . 'module.json'; |
|
546 | + $path = $this->module->getModulePath($this->getName()).'module.json'; |
|
547 | 547 | |
548 | 548 | $content = $this->filesystem->get($path); |
549 | 549 | $namespace = $this->getModuleNamespaceReplacement(); |
550 | 550 | $studlyName = $this->getStudlyNameReplacement(); |
551 | 551 | |
552 | - $provider = '"' . $namespace . '\\\\' . $studlyName . '\\\\Providers\\\\' . $studlyName . 'ServiceProvider"'; |
|
552 | + $provider = '"'.$namespace.'\\\\'.$studlyName.'\\\\Providers\\\\'.$studlyName.'ServiceProvider"'; |
|
553 | 553 | |
554 | 554 | $content = str_replace($provider, '', $content); |
555 | 555 |