| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public static function getPhpBinary(): string |
||
| 32 | { |
||
| 33 | $extensionSettings = GeneralUtility::makeInstance(ExtensionConfigurationProvider::class)->getExtensionConfiguration(); |
||
| 34 | |||
| 35 | if (empty($extensionSettings)) { |
||
| 36 | throw new \Exception('ExtensionSettings are empty'); |
||
| 37 | } |
||
| 38 | |||
| 39 | if (empty($extensionSettings['phpPath'])) { |
||
| 40 | $phpPath = CommandUtility::getCommand($extensionSettings['phpBinary']); |
||
| 41 | } else { |
||
| 42 | $phpPath = $extensionSettings['phpPath']; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $phpPath; |
||
| 46 | } |
||
| 47 | } |
||
| 48 |