| Conditions | 3 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 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.