| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.2109 |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | 4 | private function getPhpDbgBinLocation(): string |
|
| 45 | { |
||
| 46 | 4 | $checkInPath = new Process('phpdbg --version'); |
|
| 47 | 4 | $checkInPath->run(); |
|
| 48 | 4 | if ($checkInPath->getExitCode() === 0) { |
|
| 49 | 4 | return 'phpdbg'; |
|
| 50 | } |
||
| 51 | |||
| 52 | $locator = new Process('command -v phpdbg'); |
||
| 53 | $locator->run(); |
||
| 54 | |||
| 55 | return (string) preg_replace('/\s/', '', $locator->getOutput()); |
||
| 56 | } |
||
| 57 | } |
||
| 58 |