@@ -11,9 +11,9 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | protected function loadMigrationFiles($module) |
| 13 | 13 | { |
| 14 | - $path = $this->laravel['modules']->getModulePath($module) . $this->getMigrationGeneratorPath(); |
|
| 14 | + $path = $this->laravel['modules']->getModulePath($module).$this->getMigrationGeneratorPath(); |
|
| 15 | 15 | |
| 16 | - $files = $this->laravel['files']->glob($path . '/*_*.php'); |
|
| 16 | + $files = $this->laravel['files']->glob($path.'/*_*.php'); |
|
| 17 | 17 | |
| 18 | 18 | foreach ($files as $file) { |
| 19 | 19 | $this->laravel['files']->requireOnce($file); |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | $process->setTimeout($this->timeout); |
| 136 | 136 | |
| 137 | 137 | if ($this->console instanceof Command) { |
| 138 | - $process->run(function ($type, $line) { |
|
| 138 | + $process->run(function($type, $line) { |
|
| 139 | 139 | $this->console->line($line); |
| 140 | 140 | }); |
| 141 | 141 | } |
@@ -239,10 +239,10 @@ discard block |
||
| 239 | 239 | public function getPackageName() |
| 240 | 240 | { |
| 241 | 241 | if (is_null($this->version)) { |
| 242 | - return $this->name . ':dev-master'; |
|
| 242 | + return $this->name.':dev-master'; |
|
| 243 | 243 | } |
| 244 | 244 | |
| 245 | - return $this->name . ':' . $this->version; |
|
| 245 | + return $this->name.':'.$this->version; |
|
| 246 | 246 | } |
| 247 | 247 | |
| 248 | 248 | /** |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
| 52 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
| 52 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
| 53 | 53 | |
| 54 | 54 | $this->rollback($module); |
| 55 | 55 | } |
@@ -49,7 +49,7 @@ |
||
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | foreach ($this->module->getOrdered($this->option('direction')) as $module) { |
| 52 | - $this->line('Running for module: <info>' . $module->getName() . '</info>'); |
|
| 52 | + $this->line('Running for module: <info>'.$module->getName().'</info>'); |
|
| 53 | 53 | |
| 54 | 54 | $this->reset($module); |
| 55 | 55 | } |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | |
| 70 | 70 | $resourcePath = GenerateConfigReader::read('resource'); |
| 71 | 71 | |
| 72 | - return $path . $resourcePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 72 | + return $path.$resourcePath->getPath().'/'.$this->getFileName().'.php'; |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | /** |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $requestPath = GenerateConfigReader::read('request'); |
| 80 | 80 | |
| 81 | - return $path . $requestPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 81 | + return $path.$requestPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -53,8 +53,8 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | $string = ''; |
| 55 | 55 | foreach ($pieces as $i => $piece) { |
| 56 | - if ($i+1 < count($pieces)) { |
|
| 57 | - $string .= strtolower($piece) . '_'; |
|
| 56 | + if ($i + 1 < count($pieces)) { |
|
| 57 | + $string .= strtolower($piece).'_'; |
|
| 58 | 58 | } else { |
| 59 | 59 | $string .= Str::plural(strtolower($piece)); |
| 60 | 60 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | private function handleOptionalMigrationOption() |
| 96 | 96 | { |
| 97 | 97 | if ($this->option('migration') === true) { |
| 98 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
| 98 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
| 99 | 99 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
| 100 | 100 | } |
| 101 | 101 | } |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | $modelPath = GenerateConfigReader::read('model'); |
| 130 | 130 | |
| 131 | - return $path . $modelPath->getPath() . '/' . $this->getModelName() . '.php'; |
|
| 131 | + return $path.$modelPath->getPath().'/'.$this->getModelName().'.php'; |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | |
| 45 | 45 | $controllerPath = GenerateConfigReader::read('controller'); |
| 46 | 46 | |
| 47 | - return $path . $controllerPath->getPath() . '/' . $this->getControllerName() . '.php'; |
|
| 47 | + return $path.$controllerPath->getPath().'/'.$this->getControllerName().'.php'; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | $jobPath = GenerateConfigReader::read('jobs'); |
| 89 | 89 | |
| 90 | - return $path . $jobPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 90 | + return $path.$jobPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |