Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
41 | protected function runCommand($command, $arguments = [], $output = null) |
||
|
|||
42 | { |
||
43 | $phinx = new PhinxApplication(); |
||
44 | $command = $phinx->find($command); |
||
45 | |||
46 | var_dump($arguments);die(); |
||
47 | |||
48 | $arguments['command'] = $command; |
||
49 | $arguments['--configuration'] = $this->getCachedConfigPath(); |
||
50 | |||
51 | $input = new ArrayInput($arguments); |
||
52 | /** @noinspection PhpUnhandledExceptionInspection */ |
||
53 | return $command->run(new ArrayInput($arguments), $output); |
||
54 | } |
||
56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.