| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 19 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 39 | private function runMagentoCommand($command)  | 
            ||
| 40 |     { | 
            ||
| 41 | $processBuilder = new ProcessBuilder([  | 
            ||
| 42 | 'php',  | 
            ||
| 43 | 'bin/magento',  | 
            ||
| 44 | $command,  | 
            ||
| 45 | ]);  | 
            ||
| 46 | |||
| 47 |         if (!OperatingSystem::isWindows()) { | 
            ||
| 48 |             $processBuilder->setPrefix('/usr/bin/env'); | 
            ||
| 49 | }  | 
            ||
| 50 | |||
| 51 | $process = $processBuilder->getProcess();  | 
            ||
| 52 | $process->setTimeout(86400);  | 
            ||
| 53 | $process->start();  | 
            ||
| 54 |         $process->wait(function ($type, $buffer) { | 
            ||
| 55 |             $this->output->write('bin/magento > ' . $buffer, false); | 
            ||
| 56 | });  | 
            ||
| 57 | }  | 
            ||
| 58 | }  | 
            ||
| 59 |