1 | <?php |
||
9 | class EventMakeCommand extends GeneratorCommand |
||
10 | { |
||
11 | |||
12 | use ModuleCommandTrait; |
||
13 | |||
14 | protected $argumentName = 'name'; |
||
15 | |||
16 | /** |
||
17 | * The console command name. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $name = 'module:make-event'; |
||
22 | |||
23 | /** |
||
24 | * The console command description. |
||
25 | * |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $description = 'Create a new event class for the specified module'; |
||
29 | |||
30 | |||
31 | 2 | public function getTemplateContents() |
|
40 | |||
41 | |||
42 | 2 | public function getDestinationFilePath() |
|
49 | |||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | 2 | protected function getFileName() |
|
58 | |||
59 | |||
60 | /** |
||
61 | * Get the console command arguments. |
||
62 | * |
||
63 | * @return array |
||
64 | */ |
||
65 | 60 | protected function getArguments() |
|
72 | } |
||
73 |
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.