| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 12 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 35 |     public function getProcess(array $commandLine){ | 
            ||
| 36 | $bin = $this->locate();  | 
            ||
| 37 | |||
| 38 |         $commandLine = implode(' ', array_merge([$bin], $commandLine)); | 
            ||
| 39 | |||
| 40 | //compatibility fix Process >= 5.x  | 
            ||
| 41 |         if(method_exists(Process::class, 'fromShellCommandline')){ | 
            ||
| 42 | return Process::fromShellCommandline($commandLine);  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 43 | }  | 
            ||
| 44 | |||
| 45 | //Process < 5.x  | 
            ||
| 46 | return new Process($commandLine);  | 
            ||
| 47 | }  | 
            ||
| 48 | }  | 
            
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.