1 | <?php |
||
34 | class AllCommand extends AbstractCommand |
||
35 | { |
||
36 | /** |
||
37 | * Names of all the scans |
||
38 | * |
||
39 | * @var array |
||
40 | */ |
||
41 | protected $scanNames = [ |
||
42 | 'scan:version', |
||
43 | 'scan:module', |
||
44 | 'scan:catalog', |
||
45 | 'scan:patch', |
||
46 | 'scan:sitemap', |
||
47 | 'scan:server', |
||
48 | 'scan:unreachable', |
||
49 | ]; |
||
50 | |||
51 | /** |
||
52 | * Configure command |
||
53 | * |
||
54 | * @return void |
||
55 | */ |
||
56 | protected function configure() |
||
69 | |||
70 | /** |
||
71 | * Execute command |
||
72 | * |
||
73 | * @param InputInterface $input |
||
74 | * @param OutputInterface $output |
||
75 | * |
||
76 | * @return void |
||
77 | */ |
||
78 | protected function execute(InputInterface $input, OutputInterface $output) |
||
102 | |||
103 | /** |
||
104 | * Things to output when execusion starts |
||
105 | * |
||
106 | * @param string $format |
||
107 | * @param string $url |
||
108 | * |
||
109 | * @return void |
||
110 | */ |
||
111 | protected function executeStart($format, $url) |
||
121 | |||
122 | /** |
||
123 | * Things to output when execusion ends |
||
124 | * |
||
125 | * @param string $format |
||
126 | * |
||
127 | * @return void |
||
128 | */ |
||
129 | protected function executeEnd($format) |
||
137 | |||
138 | /** |
||
139 | * Things to output after a scan |
||
140 | * |
||
141 | * @param string $format |
||
142 | * |
||
143 | * @return void |
||
144 | */ |
||
145 | protected function afterScan($format) |
||
153 | } |
||
154 |
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.