1 | <?php |
||
11 | class InstallCommand extends ComponentCommand |
||
12 | { |
||
13 | /** |
||
14 | * The console command name. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $name = 'component:install'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Install the specified component by given package name (vendor/name).'; |
||
26 | |||
27 | /** |
||
28 | * Create a new command instance. |
||
29 | */ |
||
30 | public function __construct() |
||
34 | |||
35 | /** |
||
36 | * Execute the console command. |
||
37 | * |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function fire() |
||
55 | |||
56 | /** |
||
57 | * Install components from components.json file. |
||
58 | */ |
||
59 | protected function installFromFile() |
||
81 | |||
82 | /** |
||
83 | * Install the specified component. |
||
84 | * |
||
85 | * @param string $name |
||
86 | * @param string $version |
||
87 | * @param string $type |
||
88 | * @param bool $tree |
||
89 | */ |
||
90 | protected function install($name, $version = 'dev-master', $type = 'composer', $tree = false) |
||
119 | |||
120 | /** |
||
121 | * Get the console command arguments. |
||
122 | * |
||
123 | * @return array |
||
124 | */ |
||
125 | protected function getArguments() |
||
132 | |||
133 | /** |
||
134 | * Get the console command options. |
||
135 | * |
||
136 | * @return array |
||
137 | */ |
||
138 | protected function getOptions() |
||
148 | } |
||
149 |
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.