Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
48 | public function collect() |
||
49 | { |
||
50 | $result = $this->controller->getResponse()->getHeaders(); |
||
51 | |||
52 | foreach ($result as $key => &$value) { |
||
53 | $value = trim(implode(PHP_EOL, explode('; ', (string) $value))); |
||
54 | $value = implode(PHP_EOL . ' - ', explode(' ', $value)); |
||
55 | } |
||
56 | |||
57 | return [ |
||
58 | 'count' => count($result), |
||
59 | 'list' => $result |
||
60 | ]; |
||
76 |