@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | - * @return bool |
|
80 | + * @return false|null |
|
81 | 81 | */ |
82 | 82 | protected function generate() |
83 | 83 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | /** |
117 | 117 | * @param string $name |
118 | 118 | * @param string $resource |
119 | - * @return mixed |
|
119 | + * @return string |
|
120 | 120 | */ |
121 | 121 | protected function buildControllerClass($name, $resource) |
122 | 122 | { |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | /** |
137 | 137 | * @param string $name |
138 | - * @return mixed |
|
138 | + * @return string |
|
139 | 139 | */ |
140 | 140 | protected function buildResourceClass($name) |
141 | 141 | { |
@@ -168,9 +168,9 @@ discard block |
||
168 | 168 | */ |
169 | 169 | protected function indentCodes($code) |
170 | 170 | { |
171 | - $indent = str_repeat(' ', 8); |
|
171 | + $indent = str_repeat(' ', 8); |
|
172 | 172 | |
173 | - return $indent. preg_replace("/\r\n/", "\r\n{$indent}", $code); |
|
173 | + return $indent.preg_replace("/\r\n/", "\r\n{$indent}", $code); |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | /** |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | */ |
249 | 249 | protected function makeDirectory($path) |
250 | 250 | { |
251 | - if (! $this->files->isDirectory(dirname($path))) { |
|
251 | + if (!$this->files->isDirectory(dirname($path))) { |
|
252 | 252 | $this->files->makeDirectory(dirname($path), 0777, true, true); |
253 | 253 | } |
254 | 254 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | * Remove the specified resource from storage. |
31 | 31 | * |
32 | 32 | * @param int $id |
33 | - * @return \Illuminate\Http\Response |
|
33 | + * @return \Illuminate\Http\JsonResponse |
|
34 | 34 | */ |
35 | 35 | public function destroy($id) |
36 | 36 | { |
@@ -220,7 +220,7 @@ |
||
220 | 220 | ); |
221 | 221 | } |
222 | 222 | |
223 | - $table = $this->model->getConnection()->getTablePrefix() . $this->model->getTable(); |
|
223 | + $table = $this->model->getConnection()->getTablePrefix().$this->model->getTable(); |
|
224 | 224 | /** @var \Doctrine\DBAL\Schema\MySqlSchemaManager $schema */ |
225 | 225 | $schema = $this->model->getConnection()->getDoctrineSchemaManager($table); |
226 | 226 |