| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | 1 | private function minify(Response $response): Response |
|
| 39 | { |
||
| 40 | 1 | $oldHtml = $response->getBody()->__toString(); |
|
| 41 | 1 | $minifiedHtml = $this->htmlMin->minify($oldHtml); |
|
| 42 | 1 | $replaceBody = $this->container->get('body'); |
|
| 43 | 1 | $replaceBody->write($minifiedHtml); |
|
| 44 | 1 | return $response->withBody($replaceBody); |
|
| 45 | } |
||
| 47 |