Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | protected function executeCommand($command, array $options = []) |
||
16 | { |
||
17 | $args = [ |
||
18 | 'command' => $command, |
||
19 | ]; |
||
20 | $args['--quiet'] = true; |
||
21 | $args = array_merge($args, $options); |
||
22 | |||
23 | $application = new Application($this->kernel); |
||
|
|||
24 | $application->setAutoExit(false); |
||
25 | $application->run(new ArrayInput($args)); |
||
26 | } |
||
27 | } |
||
28 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: