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