@@ -42,7 +42,7 @@ |
||
42 | 42 | new InputOption('foo'), |
43 | 43 | new InputOption('foobar', 'fb', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY), |
44 | 44 | new InputArgument('name', InputArgument::REQUIRED), |
45 | - ]); |
|
45 | + ]); |
|
46 | 46 | |
47 | 47 | $interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock(); |
48 | 48 | $interactor->expects($this->once())->method('setTransactionName')->with($this->equalTo('test:newrelic')); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | $channels = $container->getParameter('ekino.new_relic.monolog.channels'); |
27 | 27 | foreach ($channels as $channel) { |
28 | - $def = $container->getDefinition('app' === $channel ? 'monolog.logger' : 'monolog.logger.'.$channel); |
|
28 | + $def = $container->getDefinition('app' === $channel ? 'monolog.logger' : 'monolog.logger.' . $channel); |
|
29 | 29 | $def->addMethodCall('pushHandler', [new Reference('ekino.new_relic.logs_handler')]); |
30 | 30 | } |
31 | 31 | } |
@@ -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. |
@@ -43,9 +43,9 @@ |
||
43 | 43 | { |
44 | 44 | return [ |
45 | 45 | KernelEvents::REQUEST => [ |
46 | - ['setApplicationName', 255], |
|
47 | - ['setIgnoreTransaction', 31], |
|
48 | - ['setTransactionName', -10], |
|
46 | + ['setApplicationName', 255], |
|
47 | + ['setIgnoreTransaction', 31], |
|
48 | + ['setTransactionName', -10], |
|
49 | 49 | ], |
50 | 50 | ]; |
51 | 51 | } |
@@ -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. |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | } |
38 | 38 | $this->isRegistered = true; |
39 | 39 | |
40 | - $prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) { |
|
40 | + $prevErrorHandler = set_error_handler(function($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) { |
|
41 | 41 | if (E_USER_DEPRECATED === $type) { |
42 | 42 | $this->interactor->noticeThrowable(new DeprecationException($msg, 0, $type, $file, $line)); |
43 | 43 | } |
@@ -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. |
@@ -82,10 +82,10 @@ discard block |
||
82 | 82 | |
83 | 83 | // send parameters to New Relic |
84 | 84 | foreach ($input->getOptions() as $key => $value) { |
85 | - $key = '--'.$key; |
|
85 | + $key = '--' . $key; |
|
86 | 86 | if (is_array($value)) { |
87 | 87 | foreach ($value as $k => $v) { |
88 | - $this->interactor->addCustomParameter($key.'['.$k.']', $v); |
|
88 | + $this->interactor->addCustomParameter($key . '[' . $k . ']', $v); |
|
89 | 89 | } |
90 | 90 | } else { |
91 | 91 | $this->interactor->addCustomParameter($key, $value); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | foreach ($input->getArguments() as $key => $value) { |
96 | 96 | if (is_array($value)) { |
97 | 97 | foreach ($value as $k => $v) { |
98 | - $this->interactor->addCustomParameter($key.'['.$k.']', $v); |
|
98 | + $this->interactor->addCustomParameter($key . '[' . $k . ']', $v); |
|
99 | 99 | } |
100 | 100 | } else { |
101 | 101 | $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. |
@@ -112,11 +112,11 @@ discard block |
||
112 | 112 | $responseContent = $response->getContent(); |
113 | 113 | |
114 | 114 | if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isHeaderCalled()) { |
115 | - $responseContent = preg_replace('/<\s*head\s*>/', '$0'.$this->interactor->getBrowserTimingHeader(), $responseContent); |
|
115 | + $responseContent = preg_replace('/<\s*head\s*>/', '$0' . $this->interactor->getBrowserTimingHeader(), $responseContent); |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isFooterCalled()) { |
119 | - $responseContent = preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter().'$0', $responseContent); |
|
119 | + $responseContent = preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter() . '$0', $responseContent); |
|
120 | 120 | } |
121 | 121 | |
122 | 122 | if ($responseContent) { |
@@ -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. |