@@ -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 | /** |
@@ -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 | /** |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | $factoryPath = GenerateConfigReader::read('factory'); |
| 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::studly($this->argument('name')) . '.php'; |
|
| 74 | + return Str::studly($this->argument('name')).'.php'; |
|
| 75 | 75 | } |
| 76 | 76 | } |
@@ -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 | /** |
@@ -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 | /** |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $middlewarePath = GenerateConfigReader::read('filter'); |
| 80 | 80 | |
| 81 | - return $path . $middlewarePath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 81 | + return $path.$middlewarePath->getPath().'/'.$this->getFileName().'.php'; |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | /** |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | $generatorPath = GenerateConfigReader::read('migration'); |
| 118 | 118 | |
| 119 | - return $path . $generatorPath->getPath() . '/' . $this->getFileName() . '.php'; |
|
| 119 | + return $path.$generatorPath->getPath().'/'.$this->getFileName().'.php'; |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | /** |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | */ |
| 125 | 125 | private function getFileName() |
| 126 | 126 | { |
| 127 | - return date('Y_m_d_His_') . $this->getSchemaName(); |
|
| 127 | + return date('Y_m_d_His_').$this->getSchemaName(); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | /** |
| 69 | 69 | * @throws \InvalidArgumentException |
| 70 | 70 | * |
| 71 | - * @return mixed |
|
| 71 | + * @return MigrationMakeCommand |
|
| 72 | 72 | */ |
| 73 | 73 | protected function getTemplateContents() |
| 74 | 74 | { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | - * @return mixed |
|
| 111 | + * @return string |
|
| 112 | 112 | */ |
| 113 | 113 | protected function getDestinationFilePath() |
| 114 | 114 | { |