Passed
Pull Request — master (#162)
by Jérémy
03:42 queued 01:25
created
Listener/ResponseListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Listener/ExceptionListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
NewRelic/LoggingInteractorDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Twig/NewRelicExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
NewRelic/AdaptiveInteractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
DependencyInjection/Compiler/MonologHandlerPass.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
DependencyInjection/EkinoNewRelicExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.
Exception/DeprecationException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.