Conditions | 4 |
Paths | 6 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | 1 | public static function whichPhp() |
|
34 | { |
||
35 | 1 | $phpPath = null; |
|
36 | 1 | if (class_exists('Symfony\Component\Process\PhpExecutableFinder')) { |
|
37 | 1 | $finder = new PhpExecutableFinder(); |
|
38 | 1 | $phpPath = $finder->find(false); |
|
39 | } |
||
40 | 1 | isset($phpPath) || (defined('PHP_BINARY') && $phpPath = constant('PHP_BINARY')); |
|
41 | 1 | echo $phpPath, "\n"; |
|
|
|||
42 | 1 | } |
|
44 |