1 | <?php |
||
10 | class FactoryMakeCommand extends GeneratorCommand |
||
11 | { |
||
12 | |||
13 | use ModuleCommandTrait; |
||
14 | |||
15 | /** |
||
16 | * The name of argument name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $argumentName = 'name'; |
||
21 | |||
22 | /** |
||
23 | * The console command name. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $name = 'module:make-factory'; |
||
28 | |||
29 | /** |
||
30 | * The console command description. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $description = 'Create a new model factory for the specified module.'; |
||
35 | |||
36 | |||
37 | /** |
||
38 | * Get the console command arguments. |
||
39 | * |
||
40 | * @return array |
||
41 | */ |
||
42 | 60 | protected function getArguments() |
|
49 | |||
50 | |||
51 | /** |
||
52 | * @return mixed |
||
53 | */ |
||
54 | 1 | protected function getTemplateContents() |
|
58 | |||
59 | |||
60 | /** |
||
61 | * @return mixed |
||
62 | */ |
||
63 | 1 | protected function getDestinationFilePath() |
|
69 | |||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | 1 | private function getFileName() |
|
78 | } |
||
79 |
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.