Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
19 | 2 | protected function headersAndBody(MessageInterface $message) |
|
20 | { |
||
21 | 2 | $string = ''; |
|
22 | |||
23 | 2 | foreach ($message->getHeaders() as $name => $values) { |
|
24 | 2 | foreach ($values as $value) { |
|
25 | 2 | $string .= $name.': '.$value."\n"; |
|
26 | } |
||
27 | } |
||
28 | |||
29 | 2 | $string .= "\n"; |
|
30 | 2 | $string .= (string) $message->getBody(); |
|
31 | |||
32 | 2 | return $string; |
|
33 | } |
||
34 | } |
||
35 |