Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | 2 | protected function execute(InputInterface $input, OutputInterface $output) |
|
32 | { |
||
33 | $arguments = [ |
||
34 | 2 | 'command' => 'fix', |
|
35 | 2 | 'path' => $input->getArgument('path'), |
|
36 | '--dry-run' => true, |
||
37 | ]; |
||
38 | |||
39 | 2 | if ($input->hasOption('prefix')) { |
|
40 | 2 | $arguments['--prefix'] = $input->getOption('prefix'); |
|
41 | } |
||
42 | |||
43 | 2 | if ($input->hasOption('skip-empty')) { |
|
44 | 2 | $arguments['--skip-empty'] = ''; |
|
45 | } |
||
46 | |||
47 | 2 | return $this->getApplication()->find('fix')->run(new ArrayInput($arguments), $output); |
|
48 | } |
||
50 |