@@ -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. |
@@ -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. |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | if (is_object($controller)) { |
37 | 37 | if (method_exists($controller, '__invoke')) { |
38 | - return 'Callback controller: '.get_class($controller).'::__invoke()'; |
|
38 | + return 'Callback controller: ' . get_class($controller) . '::__invoke()'; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $controller = implode('::', $controller); |
49 | 49 | } |
50 | 50 | |
51 | - return 'Callback contoller: '.$controller.'()'; |
|
51 | + return 'Callback contoller: ' . $controller . '()'; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return $controller; |
@@ -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. |