| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 23 | 
| Code Lines | 14 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 28 | protected function execute(InputInterface $input, OutputInterface $output)  | 
            ||
| 29 |     { | 
            ||
| 30 | $commandName = substr($this->getName(), 3);  | 
            ||
| 31 | $arguments = $this->getDefinition()->getArguments();  | 
            ||
| 32 | |||
| 33 | $phinx = new PhinxApplication();  | 
            ||
| 34 | $command = $phinx->find($commandName);  | 
            ||
| 35 | |||
| 36 | $phinxArguments = [];  | 
            ||
| 37 | |||
| 38 |         foreach ($arguments as $name => $argumentInput) { | 
            ||
| 39 |             if ($input->getArgument($name)) { | 
            ||
| 40 | $phinxArguments[$name] = $input->getArgument($name);  | 
            ||
| 41 | }  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 | $phinxArguments['command'] = $commandName;  | 
            ||
| 45 | $phinxArguments['--configuration'] = PATH_APPLICATION .DS. 'configs' .DS. 'phinx.php';  | 
            ||
| 46 | $phinxArguments['--environment'] = 'default';  | 
            ||
| 47 | |||
| 48 | $phinxInput = new ArrayInput($phinxArguments);  | 
            ||
| 49 | $command->run($phinxInput, $output);  | 
            ||
| 50 | }  | 
            ||
| 51 | }  | 
            ||
| 52 |