@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * Check if route exists. |
147 | 147 | * |
148 | 148 | * @param $link |
149 | - * @return mixed |
|
149 | + * @return boolean |
|
150 | 150 | */ |
151 | 151 | protected function routeExists($link) |
152 | 152 | { |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | * Check if web route exists. |
161 | 161 | * |
162 | 162 | * @param $link |
163 | - * @return mixed |
|
163 | + * @return boolean |
|
164 | 164 | */ |
165 | 165 | protected function webRouteExists($link) |
166 | 166 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Remove duplicated trailing slashes. |
194 | 194 | * |
195 | - * @param $link |
|
195 | + * @param string $link |
|
196 | 196 | * @return mixed |
197 | 197 | */ |
198 | 198 | protected function removeDuplicatedTrailingSlashes($link) |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * Check if api route exists. |
205 | 205 | * |
206 | 206 | * @param $link |
207 | - * @return mixed |
|
207 | + * @return boolean |
|
208 | 208 | */ |
209 | 209 | protected function apiRouteExists($link) |
210 | 210 | { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * Crete tmp file with route to add. |
216 | 216 | * |
217 | - * @return mixed |
|
217 | + * @return resource |
|
218 | 218 | */ |
219 | 219 | protected function createTmpFileWithRoute() |
220 | 220 | { |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | /** |
227 | 227 | * Get path from file resource. |
228 | 228 | * |
229 | - * @param $tmpfile |
|
229 | + * @param resource $tmpfile |
|
230 | 230 | * @return mixed |
231 | 231 | */ |
232 | 232 | protected function getPath($tmpfile) |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | /** |
238 | 238 | * Get route code to insert depending on type. |
239 | 239 | * |
240 | - * @return mixed |
|
240 | + * @return string |
|
241 | 241 | */ |
242 | 242 | protected function getRouteCode() |
243 | 243 | { |
@@ -378,8 +378,8 @@ discard block |
||
378 | 378 | /** |
379 | 379 | * Add method to controller. |
380 | 380 | * |
381 | - * @param $controller |
|
382 | - * @param $controllerMethod * |
|
381 | + * @param string $controller |
|
382 | + * @param string $controllerMethod * |
|
383 | 383 | */ |
384 | 384 | protected function addMethodToController($controller, $controllerMethod) |
385 | 385 | { |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | * Crete tmp file with route to add. |
393 | 393 | * |
394 | 394 | * @param $controllerMethod |
395 | - * @return mixed |
|
395 | + * @return resource |
|
396 | 396 | */ |
397 | 397 | protected function createTmpFileWithMethod($controllerMethod) |
398 | 398 | { |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | * Get method code. |
406 | 406 | * |
407 | 407 | * @param $controllerMethod |
408 | - * @return mixed |
|
408 | + * @return string |
|
409 | 409 | */ |
410 | 410 | protected function getMethodCode($controllerMethod) |
411 | 411 | { |
@@ -278,7 +278,9 @@ discard block |
||
278 | 278 | if ($this->argument('action') != null) { |
279 | 279 | return $this->argument('action'); |
280 | 280 | } |
281 | - if (strtolower($this->option('type')) != 'regular' ) return $this->argument('link') . 'Controller'; |
|
281 | + if (strtolower($this->option('type')) != 'regular' ) { |
|
282 | + return $this->argument('link') . 'Controller'; |
|
283 | + } |
|
282 | 284 | return $this->argument('link'); |
283 | 285 | } |
284 | 286 | |
@@ -342,7 +344,9 @@ discard block |
||
342 | 344 | */ |
343 | 345 | protected function createView($name = null) |
344 | 346 | { |
345 | - if ($name == null) $name = $this->action(); |
|
347 | + if ($name == null) { |
|
348 | + $name = $this->action(); |
|
349 | + } |
|
346 | 350 | Artisan::call('make:view', [ |
347 | 351 | 'name' => $name |
348 | 352 | ]); |