| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function runCommands() |
||
| 31 | { |
||
| 32 | $commands = ['cd '.$this->getPath()]; |
||
| 33 | $commands = array_merge($commands, $this->getCommands()); |
||
| 34 | $commands = implode('; ', $commands); |
||
| 35 | $process = new Process($commands); |
||
| 36 | |||
| 37 | $commandLine = $process->getCommandLine(); |
||
| 38 | $this->logger->info('Running "'.$commandLine.'"'); |
||
| 39 | $output = $this->getSession()->getExec()->run($commandLine); |
||
| 40 | $this->logger->info('Output:'.PHP_EOL.$output); |
||
| 41 | } |
||
| 42 | |||
| 55 |