@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | $policyPath = GenerateConfigReader::read('policies'); |
| 78 | 78 | |
| 79 | - return $path . $policyPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 79 | + return $path.$policyPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | $seederPath = GenerateConfigReader::read('seeder'); |
| 75 | 75 | |
| 76 | - return $path . $seederPath->getPath() . '/' . $this->getSeederName() . '.php'; |
|
| 76 | + return $path.$seederPath->getPath().'/'.$this->getSeederName().'.php'; |
|
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
| 64 | 64 | $factoryPath = GenerateConfigReader::read('component-view'); |
| 65 | 65 | |
| 66 | - return $path . $factoryPath->getPath() . '/' . $this->getFileName(); |
|
| 66 | + return $path.$factoryPath->getPath().'/'.$this->getFileName(); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -71,6 +71,6 @@ discard block |
||
| 71 | 71 | */ |
| 72 | 72 | private function getFileName() |
| 73 | 73 | { |
| 74 | - return Str::lower($this->argument('name')) . '.blade.php'; |
|
| 74 | + return Str::lower($this->argument('name')).'.blade.php'; |
|
| 75 | 75 | } |
| 76 | 76 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | |
| 101 | 101 | $commandPath = GenerateConfigReader::read('command'); |
| 102 | 102 | |
| 103 | - return $path . $commandPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 103 | + return $path.$commandPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | |
| 62 | 62 | $notificationPath = GenerateConfigReader::read('notifications'); |
| 63 | 63 | |
| 64 | - return $path . $notificationPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 64 | + return $path.$notificationPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | |
| 77 | 77 | $rulePath = GenerateConfigReader::read('rules'); |
| 78 | 78 | |
| 79 | - return $path . $rulePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 79 | + return $path.$rulePath->getPath().'/'.$this->getFileName().'.php'; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -39,11 +39,11 @@ |
||
| 39 | 39 | |
| 40 | 40 | public function getDestinationFilePath() |
| 41 | 41 | { |
| 42 | - $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
|
| 42 | + $path = $this->laravel['modules']->getModulePath($this->getModuleName()); |
|
| 43 | 43 | |
| 44 | 44 | $eventPath = GenerateConfigReader::read('event'); |
| 45 | 45 | |
| 46 | - return $path . $eventPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 46 | + return $path.$eventPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | $testPath = GenerateConfigReader::read('test-unit'); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - return $path . $testPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 83 | + return $path.$testPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -24,21 +24,21 @@ discard block |
||
| 24 | 24 | { |
| 25 | 25 | $module = $this->getModuleModel($name); |
| 26 | 26 | |
| 27 | - $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function () use ($module) { |
|
| 27 | + $this->components->task("Updating Composer.json <fg=cyan;options=bold>{$module->getName()}</> Module", function() use ($module) { |
|
| 28 | 28 | |
| 29 | - $composer_path = $module->getPath() . DIRECTORY_SEPARATOR . 'composer.json'; |
|
| 29 | + $composer_path = $module->getPath().DIRECTORY_SEPARATOR.'composer.json'; |
|
| 30 | 30 | |
| 31 | 31 | $composer = json_decode(File::get($composer_path), true); |
| 32 | 32 | |
| 33 | 33 | $autoload = data_get($composer, 'autoload.psr-4'); |
| 34 | 34 | |
| 35 | - if (! $autoload) { |
|
| 35 | + if (!$autoload) { |
|
| 36 | 36 | return; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | $key_name_with_app = sprintf('Modules\\%s\\App\\', $module->getStudlyName()); |
| 40 | 40 | |
| 41 | - if (! array_key_exists($key_name_with_app, $autoload)) { |
|
| 41 | + if (!array_key_exists($key_name_with_app, $autoload)) { |
|
| 42 | 42 | return; |
| 43 | 43 | } |
| 44 | 44 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | }); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - public function getInfo(): string|null |
|
| 56 | + public function getInfo(): string | null |
|
| 57 | 57 | { |
| 58 | 58 | return 'Updating Composer.json of modules...'; |
| 59 | 59 | } |