Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | protected function getHeaderValue($headerName) |
||
55 | { |
||
56 | $header = array_values(array_filter( |
||
57 | $this->headers, |
||
58 | function ($string) use ($headerName) { |
||
59 | return preg_match('/'.$headerName.':(.*)/i', $string) == 1; |
||
60 | } |
||
61 | )); |
||
62 | |||
63 | return count($header) ? $header[0] : null; |
||
64 | } |
||
65 | } |
||
66 |