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