| Conditions | 3 |
| Paths | 3 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | 777 | private function getBinaryPath($binary) { |
|
| 49 | 777 | if (!isset($this->paths[$binary])) { |
|
| 50 | 777 | $result = null; |
|
| 51 | 777 | $output = array(); |
|
| 52 | 777 | exec("which $binary 2>&1", $output, $result); |
|
| 53 | 777 | $this->paths[$binary] = $result === 0 ? trim(implode('', $output)) : false; |
|
| 54 | 259 | } |
|
| 55 | 777 | return $this->paths[$binary]; |
|
| 56 | } |
||
| 57 | } |
||
| 58 |