Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 2 | ||
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 | $arguments['command'] = $command; |
||
47 | $arguments['--configuration'] = $this->getCachedConfigPath(); |
||
|
|||
48 | |||
49 | $input = new ArrayInput($arguments); |
||
50 | /** @noinspection PhpUnhandledExceptionInspection */ |
||
51 | return $command->run(new ArrayInput($arguments), $output); |
||
52 | } |
||
54 |