@@ -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. |
@@ -37,8 +37,8 @@ discard block |
||
| 37 | 37 | ->prototype('scalar') |
| 38 | 38 | ->end() |
| 39 | 39 | ->beforeNormalization() |
| 40 | - ->ifTrue(function ($v) { return !\is_array($v); }) |
|
| 41 | - ->then(function ($v) { return \array_values(\array_filter(\explode(';', $v))); }) |
|
| 40 | + ->ifTrue(function($v) { return !\is_array($v); }) |
|
| 41 | + ->then(function($v) { return \array_values(\array_filter(\explode(';', $v))); }) |
|
| 42 | 42 | ->end() |
| 43 | 43 | ->end() |
| 44 | 44 | ->scalarNode('xmit')->defaultValue(false)->end() |
@@ -56,8 +56,8 @@ discard block |
||
| 56 | 56 | ->prototype('scalar') |
| 57 | 57 | ->end() |
| 58 | 58 | ->beforeNormalization() |
| 59 | - ->ifTrue(function ($v) { return !\is_array($v); }) |
|
| 60 | - ->then(function ($v) { return (array) $v; }) |
|
| 59 | + ->ifTrue(function($v) { return !\is_array($v); }) |
|
| 60 | + ->then(function($v) { return (array) $v; }) |
|
| 61 | 61 | ->end() |
| 62 | 62 | ->end() |
| 63 | 63 | ->end() |
@@ -80,16 +80,16 @@ discard block |
||
| 80 | 80 | ->prototype('scalar') |
| 81 | 81 | ->end() |
| 82 | 82 | ->beforeNormalization() |
| 83 | - ->ifTrue(function ($v) { return !\is_array($v); }) |
|
| 84 | - ->then(function ($v) { return (array) $v; }) |
|
| 83 | + ->ifTrue(function($v) { return !\is_array($v); }) |
|
| 84 | + ->then(function($v) { return (array) $v; }) |
|
| 85 | 85 | ->end() |
| 86 | 86 | ->end() |
| 87 | 87 | ->arrayNode('ignored_paths') |
| 88 | 88 | ->prototype('scalar') |
| 89 | 89 | ->end() |
| 90 | 90 | ->beforeNormalization() |
| 91 | - ->ifTrue(function ($v) { return !\is_array($v); }) |
|
| 92 | - ->then(function ($v) { return (array) $v; }) |
|
| 91 | + ->ifTrue(function($v) { return !\is_array($v); }) |
|
| 92 | + ->then(function($v) { return (array) $v; }) |
|
| 93 | 93 | ->end() |
| 94 | 94 | ->end() |
| 95 | 95 | ->scalarNode('using_symfony_cache')->defaultFalse()->end() |
@@ -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. |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $configuration = new Configuration(); |
| 33 | 33 | $config = $this->processConfiguration($configuration, $configs); |
| 34 | 34 | |
| 35 | - $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 35 | + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 36 | 36 | $loader->load('services.xml'); |
| 37 | 37 | |
| 38 | 38 | if (!$config['enabled']) { |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $level = $config['monolog']['level']; |
| 110 | 110 | $container->findDefinition('ekino.new_relic.logs_handler') |
| 111 | - ->replaceArgument(0, \is_int($level) ? $level : \constant('Monolog\Logger::'.\strtoupper($level))) |
|
| 111 | + ->replaceArgument(0, \is_int($level) ? $level : \constant('Monolog\Logger::' . \strtoupper($level))) |
|
| 112 | 112 | ->replaceArgument(2, $config['application_name']); |
| 113 | 113 | } |
| 114 | 114 | } |
@@ -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 | |
| 35 | 35 | if (\is_object($controller)) { |
| 36 | 36 | if (\method_exists($controller, '__invoke')) { |
| 37 | - return 'Callback controller: '.\get_class($controller).'::__invoke()'; |
|
| 37 | + return 'Callback controller: ' . \get_class($controller) . '::__invoke()'; |
|
| 38 | 38 | } |
| 39 | 39 | } |
| 40 | 40 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $controller = \implode('::', $controller); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - return 'Callback contoller: '.$controller.'()'; |
|
| 50 | + return 'Callback contoller: ' . $controller . '()'; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | return $controller; |