| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | protected function addCookieConsentScriptToResponse(Response $response) |
||
| 40 | { |
||
| 41 | $content = $response->getContent(); |
||
| 42 | |||
| 43 | $closingBodyTagPosition = $this->getLastClosingBodyTagPosition($content); |
||
| 44 | |||
| 45 | $content = '' |
||
| 46 | .substr($content, 0, $closingBodyTagPosition) |
||
| 47 | .view('cookieConsent::index')->render() |
||
| 48 | .substr($content, $closingBodyTagPosition); |
||
| 49 | |||
| 50 | return $response->setContent($content); |
||
| 51 | } |
||
| 52 | |||
| 58 |