@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function testControllerAsClosure() |
| 31 | 31 | { |
| 32 | 32 | $request = new Request(); |
| 33 | - $request->attributes->set('_controller', function () { |
|
| 33 | + $request->attributes->set('_controller', function() { |
|
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | 36 | $strategy = new ControllerNamingStrategy(); |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | } |
| 34 | 34 | $this->isRegistered = true; |
| 35 | 35 | |
| 36 | - $prevErrorHandler = \set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) { |
|
| 36 | + $prevErrorHandler = \set_error_handler(function($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) { |
|
| 37 | 37 | if (E_USER_DEPRECATED === $type) { |
| 38 | 38 | $this->interactor->noticeThrowable(new DeprecationException($msg, 0, $type, $file, $line)); |
| 39 | 39 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -61,10 +61,10 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | // send parameters to New Relic |
| 63 | 63 | foreach ($input->getOptions() as $key => $value) { |
| 64 | - $key = '--'.$key; |
|
| 64 | + $key = '--' . $key; |
|
| 65 | 65 | if (\is_array($value)) { |
| 66 | 66 | foreach ($value as $k => $v) { |
| 67 | - $this->interactor->addCustomParameter($key.'['.$k.']', $v); |
|
| 67 | + $this->interactor->addCustomParameter($key . '[' . $k . ']', $v); |
|
| 68 | 68 | } |
| 69 | 69 | } else { |
| 70 | 70 | $this->interactor->addCustomParameter($key, $value); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | foreach ($input->getArguments() as $key => $value) { |
| 75 | 75 | if (\is_array($value)) { |
| 76 | 76 | foreach ($value as $k => $v) { |
| 77 | - $this->interactor->addCustomParameter($key.'['.$k.']', $v); |
|
| 77 | + $this->interactor->addCustomParameter($key . '[' . $k . ']', $v); |
|
| 78 | 78 | } |
| 79 | 79 | } else { |
| 80 | 80 | $this->interactor->addCustomParameter($key, $value); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of Ekino New Relic bundle. |
@@ -87,11 +87,11 @@ discard block |
||
| 87 | 87 | $responseContent = $response->getContent(); |
| 88 | 88 | |
| 89 | 89 | if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isHeaderCalled()) { |
| 90 | - $responseContent = \preg_replace('/<\s*head\s*>/', '$0'.$this->interactor->getBrowserTimingHeader(), $responseContent); |
|
| 90 | + $responseContent = \preg_replace('/<\s*head\s*>/', '$0' . $this->interactor->getBrowserTimingHeader(), $responseContent); |
|
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isFooterCalled()) { |
| 94 | - $responseContent = \preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter().'$0', $responseContent); |
|
| 94 | + $responseContent = \preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter() . '$0', $responseContent); |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | if ($responseContent) { |