Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | 1 | private function extendApplication(Application $application, $defaultConfigFile) |
|
35 | 1 | { |
|
36 | 1 | if (file_exists($defaultConfigFile)) { |
|
37 | 1 | $fixCommand = $application->find('fix'); |
|
38 | /* @var InputOption $configFile */ |
||
39 | 1 | $definition = $fixCommand->getDefinition(); |
|
40 | 1 | $options = $definition->getOptions(); |
|
41 | 1 | $options['config-file']->setDefault(realpath($defaultConfigFile)); |
|
42 | 1 | } |
|
43 | 1 | } |
|
44 | } |
||
45 |