| Conditions | 3 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function getConfiguration(SiteInterface $site): SiteConfiguration |
||
| 14 | { |
||
| 15 | $config = $site instanceof Site ? $site->getConfiguration() : []; |
||
| 16 | |||
| 17 | return new SiteConfiguration( |
||
| 18 | !\array_key_exists('enableLanguageDetection', $config) || (bool)$config['enableLanguageDetection'], |
||
| 19 | $config['disableRedirectWithBackendSession'] ?? false, |
||
| 20 | $config['addIpLocationToBrowserLanguage'] ?? '', |
||
| 21 | $config['allowAllPaths'] ?? '', |
||
| 22 | $config['redirectHttpStatusCode'] ?? 307, |
||
| 23 | $config['forwardRedirectParameters'] ?? '', |
||
| 24 | $config['fallbackDetectionLanguage'] ?? 0, |
||
| 25 | ); |
||
| 28 |