| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 19 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 41 | private function runMagentoCommand($command)  | 
            ||
| 42 |     { | 
            ||
| 43 | $processBuilder = new ProcessBuilder([  | 
            ||
| 44 | 'php',  | 
            ||
| 45 | 'bin/magento',  | 
            ||
| 46 | $command,  | 
            ||
| 47 | ]);  | 
            ||
| 48 | |||
| 49 |         if (!OperatingSystem::isWindows()) { | 
            ||
| 50 |             $processBuilder->setPrefix('/usr/bin/env'); | 
            ||
| 51 | }  | 
            ||
| 52 | |||
| 53 | $process = $processBuilder->getProcess();  | 
            ||
| 54 | $process->setTimeout(86400);  | 
            ||
| 55 | $process->start();  | 
            ||
| 56 |         $process->wait(function ($type, $buffer) { | 
            ||
| 57 |             $this->output->write('bin/magento > ' . $buffer, false); | 
            ||
| 58 | });  | 
            ||
| 59 | }  | 
            ||
| 60 | }  | 
            ||
| 61 | 
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.