@@ -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. |
@@ -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. |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | $channels = $container->getParameter('ekino.new_relic.monolog.channels'); |
29 | 29 | foreach ($channels as $channel) { |
30 | - $def = $container->getDefinition('app' === $channel ? 'monolog.logger' : 'monolog.logger.'.$channel); |
|
30 | + $def = $container->getDefinition('app' === $channel ? 'monolog.logger' : 'monolog.logger.' . $channel); |
|
31 | 31 | $def->addMethodCall('pushHandler', [new Reference('ekino.new_relic.logs_handler')]); |
32 | 32 | } |
33 | 33 | } |
@@ -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. |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $configuration = new Configuration(); |
35 | 35 | $config = $this->processConfiguration($configuration, $configs); |
36 | 36 | |
37 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
37 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
38 | 38 | $loader->load('services.xml'); |
39 | 39 | |
40 | 40 | if (!$config['enabled']) { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | |
111 | 111 | $level = $config['monolog']['level']; |
112 | 112 | $container->findDefinition('ekino.new_relic.logs_handler') |
113 | - ->replaceArgument(0, is_int($level) ? $level : constant('Monolog\Logger::'.strtoupper($level))) |
|
113 | + ->replaceArgument(0, is_int($level) ? $level : constant('Monolog\Logger::' . strtoupper($level))) |
|
114 | 114 | ->replaceArgument(2, $config['application_name']); |
115 | 115 | } |
116 | 116 | } |
@@ -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. |
@@ -40,8 +40,8 @@ discard block |
||
40 | 40 | ->prototype('scalar') |
41 | 41 | ->end() |
42 | 42 | ->beforeNormalization() |
43 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
44 | - ->then(function ($v) { return array_values(array_filter(explode(';', $v))); }) |
|
43 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
44 | + ->then(function($v) { return array_values(array_filter(explode(';', $v))); }) |
|
45 | 45 | ->end() |
46 | 46 | ->end() |
47 | 47 | ->scalarNode('xmit')->defaultValue(false)->end() |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | ->prototype('scalar') |
60 | 60 | ->end() |
61 | 61 | ->beforeNormalization() |
62 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
63 | - ->then(function ($v) { return (array) $v; }) |
|
62 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
63 | + ->then(function($v) { return (array) $v; }) |
|
64 | 64 | ->end() |
65 | 65 | ->end() |
66 | 66 | ->end() |
@@ -83,16 +83,16 @@ discard block |
||
83 | 83 | ->prototype('scalar') |
84 | 84 | ->end() |
85 | 85 | ->beforeNormalization() |
86 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
87 | - ->then(function ($v) { return (array) $v; }) |
|
86 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
87 | + ->then(function($v) { return (array) $v; }) |
|
88 | 88 | ->end() |
89 | 89 | ->end() |
90 | 90 | ->arrayNode('ignored_paths') |
91 | 91 | ->prototype('scalar') |
92 | 92 | ->end() |
93 | 93 | ->beforeNormalization() |
94 | - ->ifTrue(function ($v) { return !is_array($v); }) |
|
95 | - ->then(function ($v) { return (array) $v; }) |
|
94 | + ->ifTrue(function($v) { return !is_array($v); }) |
|
95 | + ->then(function($v) { return (array) $v; }) |
|
96 | 96 | ->end() |
97 | 97 | ->end() |
98 | 98 | ->scalarNode('using_symfony_cache')->defaultFalse()->end() |
@@ -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. |