1 | <?php |
||
12 | class SeedMakeCommand extends Command |
||
13 | { |
||
14 | use ComponentCommandTrait, CanClearComponentsCache; |
||
15 | |||
16 | protected $argumentName = 'name'; |
||
17 | |||
18 | /** |
||
19 | * The console command name. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $name = 'component:make-seed'; |
||
24 | |||
25 | /** |
||
26 | * The console command description. |
||
27 | * |
||
28 | * @var string |
||
29 | */ |
||
30 | protected $description = 'Generate new seeder for the specified component.'; |
||
31 | |||
32 | /** |
||
33 | * Get the console command arguments. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | protected function getArguments() |
||
44 | |||
45 | /** |
||
46 | * Get the console command options. |
||
47 | * |
||
48 | * @return array |
||
49 | */ |
||
50 | protected function getOptions() |
||
61 | |||
62 | /** |
||
63 | * @return mixed |
||
64 | */ |
||
65 | protected function getTemplateContents() |
||
75 | |||
76 | /** |
||
77 | * @return mixed |
||
78 | */ |
||
79 | protected function getDestinationFilePath() |
||
89 | |||
90 | /** |
||
91 | * Get seeder name. |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | private function getSeederName() |
||
101 | } |
||
102 |
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.