| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 21 | public static function getHeadersArrayFromGlobals(): array | ||
| 22 |     { | ||
| 23 | $headers = array_filter($_SERVER, ['self', 'isServerKeyAHeader'], ARRAY_FILTER_USE_KEY); | ||
| 24 | $headers = array_map(['self', 'wrapValuesInArray'], $headers); | ||
| 25 |         $headerKeys = array_map('strval', array_keys($headers)); | ||
| 26 | $headerKeys = array_map(['self', 'stripKeyOfLeadingHttpPrefix'], $headerKeys); | ||
| 27 |         $headerKeys = array_map('strval', array_values($headerKeys)); | ||
| 28 | |||
| 29 | return array_combine($headerKeys, $headers); | ||
| 30 | } | ||
| 31 | |||
| 59 |