Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | trait ResponseExtensionTrait |
||
16 | { |
||
17 | use ResponseTrait; |
||
18 | |||
19 | /** |
||
20 | * Sets the provided Content-Type, if none is already present. |
||
21 | * |
||
22 | * @param string $contentType |
||
23 | */ |
||
24 | 130 | private function setContentTypeHeaderIfNotExists(string $contentType): void |
|
29 | } |
||
30 | 130 | } |
|
31 | |||
32 | /** |
||
33 | * Create the message body. |
||
34 | * |
||
35 | * @param string $content |
||
36 | * @return Stream |
||
37 | */ |
||
38 | 130 | private function createBody(string $content = ''): Stream |
|
46 |