| Total Complexity | 6 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 8 | class BinLocator  | 
            ||
| 9 | { | 
            ||
| 10 | protected $binToLocate;  | 
            ||
| 11 | protected $whichCommand = 'which';  | 
            ||
| 12 | |||
| 13 | public function __construct($binToLocate)  | 
            ||
| 16 | }  | 
            ||
| 17 | |||
| 18 |     public function locate(){ | 
            ||
| 19 | $process = new Process([$this->whichCommand,$this->binToLocate]);  | 
            ||
| 20 | $process->run();  | 
            ||
| 21 | |||
| 22 |         if($process->getErrorOutput()){ | 
            ||
| 23 | throw BinLocatorException::processFailed($process);  | 
            ||
| 24 | }  | 
            ||
| 25 | |||
| 26 | $path = trim($process->getOutput());  | 
            ||
| 27 | |||
| 28 |         if(!$path){ | 
            ||
| 29 | throw BinLocatorException::notFound($this->binToLocate);  | 
            ||
| 30 | }  | 
            ||
| 31 | |||
| 32 | return $path;  | 
            ||
| 33 | }  | 
            ||
| 34 | |||
| 35 |     public function getProcess(array $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.