@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * @throws \InvalidArgumentException |
| 69 | 69 | * |
| 70 | - * @return mixed |
|
| 70 | + * @return Stub |
|
| 71 | 71 | */ |
| 72 | 72 | protected function getTemplateContents() |
| 73 | 73 | { |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * @return mixed |
|
| 110 | + * @return string |
|
| 111 | 111 | */ |
| 112 | 112 | protected function getDestinationFilePath() |
| 113 | 113 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | $generatorPath = $this->laravel['modules']->config('paths.generator.migration'); |
| 115 | 115 | |
| 116 | - return $path . $generatorPath . '/' . $this->getFileName() . '.php'; |
|
| 116 | + return $path.$generatorPath.'/'.$this->getFileName().'.php'; |
|
| 117 | 117 | } |
| 118 | 118 | |
| 119 | 119 | /** |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | private function getFileName() |
| 123 | 123 | { |
| 124 | - return date('Y_m_d_His_') . $this->getSchemaName(); |
|
| 124 | + return date('Y_m_d_His_').$this->getSchemaName(); |
|
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | /** |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return mixed |
|
| 62 | + * @return string |
|
| 63 | 63 | */ |
| 64 | 64 | protected function getTemplateContents() |
| 65 | 65 | { |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | } |
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | - * @return mixed |
|
| 81 | + * @return string |
|
| 82 | 82 | */ |
| 83 | 83 | protected function getDestinationFilePath() |
| 84 | 84 | { |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | - * @return mixed|string |
|
| 93 | + * @return string |
|
| 94 | 94 | */ |
| 95 | 95 | private function getModelName() |
| 96 | 96 | { |
@@ -52,8 +52,8 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | $string = ''; |
| 54 | 54 | foreach ($pieces as $i => $piece) { |
| 55 | - if ($i+1 < count($pieces)) { |
|
| 56 | - $string .= strtolower($piece) . '_'; |
|
| 55 | + if ($i + 1 < count($pieces)) { |
|
| 56 | + $string .= strtolower($piece).'_'; |
|
| 57 | 57 | } else { |
| 58 | 58 | $string .= Str::plural(strtolower($piece)); |
| 59 | 59 | } |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | private function handleOptionalMigrationOption() |
| 95 | 95 | { |
| 96 | 96 | if ($this->option('migration') === true) { |
| 97 | - $migrationName = 'create_' . $this->createMigrationName() . '_table'; |
|
| 97 | + $migrationName = 'create_'.$this->createMigrationName().'_table'; |
|
| 98 | 98 | $this->call('module:make-migration', ['name' => $migrationName, 'module' => $this->argument('module')]); |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | |
| 128 | 128 | $seederPath = $this->laravel['modules']->config('paths.generator.model'); |
| 129 | 129 | |
| 130 | - return $path . $seederPath . '/' . $this->getModelName() . '.php'; |
|
| 130 | + return $path.$seederPath.'/'.$this->getModelName().'.php'; |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |
@@ -71,6 +71,6 @@ |
||
| 71 | 71 | |
| 72 | 72 | $generatorPath = $this->laravel['modules']->config('paths.generator.provider'); |
| 73 | 73 | |
| 74 | - return $path . $generatorPath . '/' . $this->getFileName() . '.php'; |
|
| 74 | + return $path.$generatorPath.'/'.$this->getFileName().'.php'; |
|
| 75 | 75 | } |
| 76 | 76 | } |