|
@@ -88,11 +88,11 @@ |
|
|
block discarded – undo |
|
88
|
88
|
$response->setContent(''); // free the memory |
|
89
|
89
|
|
|
90
|
90
|
if ((null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isHeaderCalled()) && false !== ($pos = stripos($responseContent, '<head>'))) { |
|
91
|
|
- $responseContent = \preg_replace('|<head>|i', '$0'.$this->interactor->getBrowserTimingHeader(), $responseContent); |
|
|
91
|
+ $responseContent = \preg_replace('|<head>|i', '$0' . $this->interactor->getBrowserTimingHeader(), $responseContent); |
|
92
|
92
|
} |
|
93
|
93
|
|
|
94
|
94
|
if ((null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isFooterCalled()) && false !== ($pos = stripos($responseContent, '</body>'))) { |
|
95
|
|
- $responseContent = \preg_replace('|</body>|i', $this->interactor->getBrowserTimingFooter().'$0', $responseContent); |
|
|
95
|
+ $responseContent = \preg_replace('|</body>|i', $this->interactor->getBrowserTimingFooter() . '$0', $responseContent); |
|
96
|
96
|
} |
|
97
|
97
|
|
|
98
|
98
|
$response->setContent($responseContent); |
Please login to merge, or discard this patch.