| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public static function getPhpBinary(array $extensionSettings): string |
||
| 29 | { |
||
| 30 | if (empty($extensionSettings)) { |
||
| 31 | throwException('ExtensionSettings are empty'); |
||
| 32 | } |
||
| 33 | |||
| 34 | if (empty($extensionSettings['phpPath'])) { |
||
| 35 | $phpPath = CommandUtility::getCommand($extensionSettings['phpBinary']); |
||
| 36 | } else { |
||
| 37 | $phpPath = $extensionSettings['phpPath']; |
||
| 38 | } |
||
| 39 | |||
| 40 | return $phpPath; |
||
| 41 | } |
||
| 42 | } |
||
| 43 |