Passed
Branch master (7cf03b)
by Thomas
03:44
created
Tests/DependencyInjection/EkinoNewRelicExtensionTest.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.
Tests/BundleInitializationTest.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.
Command/NotifyDeploymentCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         foreach ($appNames as $appName) {
89 89
             $response = $this->performRequest($this->newrelic->getApiKey(), $this->createPayload($appName, $input));
90 90
 
91
-            switch($response['status'])
91
+            switch ($response['status'])
92 92
             {
93 93
                 case 200:
94 94
                 case 201:
Please login to merge, or discard this patch.
Listener/ResponseListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,11 +106,11 @@
 block discarded – undo
106 106
                     $responseContent = $response->getContent();
107 107
 
108 108
                     if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isHeaderCalled()) {
109
-                        $responseContent = preg_replace('/<\s*head\s*>/', '$0'.$this->interactor->getBrowserTimingHeader(), $responseContent);
109
+                        $responseContent = preg_replace('/<\s*head\s*>/', '$0' . $this->interactor->getBrowserTimingHeader(), $responseContent);
110 110
                     }
111 111
 
112 112
                     if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isFooterCalled()) {
113
-                        $responseContent = preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter().'$0', $responseContent);
113
+                        $responseContent = preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter() . '$0', $responseContent);
114 114
                     }
115 115
 
116 116
                     if ($responseContent) {
Please login to merge, or discard this patch.
Listener/RequestListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->ignoredRoutes = $ignoreRoutes;
51 51
         $this->ignoredPaths  = $ignoredPaths;
52 52
         $this->transactionNamingStrategy = $transactionNamingStrategy;
53
-        $this->symfonyCache      = $symfonyCache;
53
+        $this->symfonyCache = $symfonyCache;
54 54
     }
55 55
 
56 56
     /**
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
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()
@@ -66,24 +66,24 @@  discard block
 block discarded – undo
66 66
                     ->prototype('scalar')
67 67
                     ->end()
68 68
                     ->beforeNormalization()
69
-                        ->ifTrue(function ($v) { return !is_array($v); })
70
-                        ->then(function ($v) { return (array) $v; })
69
+                        ->ifTrue(function($v) { return !is_array($v); })
70
+                        ->then(function($v) { return (array) $v; })
71 71
                     ->end()
72 72
                 ->end()
73 73
                 ->arrayNode('ignored_paths')
74 74
                     ->prototype('scalar')
75 75
                     ->end()
76 76
                     ->beforeNormalization()
77
-                        ->ifTrue(function ($v) { return !is_array($v); })
78
-                        ->then(function ($v) { return (array) $v; })
77
+                        ->ifTrue(function($v) { return !is_array($v); })
78
+                        ->then(function($v) { return (array) $v; })
79 79
                     ->end()
80 80
                 ->end()
81 81
                 ->arrayNode('ignored_commands')
82 82
                     ->prototype('scalar')
83 83
                     ->end()
84 84
                     ->beforeNormalization()
85
-                        ->ifTrue(function ($v) { return !is_array($v); })
86
-                        ->then(function ($v) { return (array) $v; })
85
+                        ->ifTrue(function($v) { return !is_array($v); })
86
+                        ->then(function($v) { return (array) $v; })
87 87
                     ->end()
88 88
                 ->end()
89 89
                 ->scalarNode('using_symfony_cache')->defaultFalse()->end()
Please login to merge, or discard this patch.
DependencyInjection/EkinoNewRelicExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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 (in_array('Sonata\BlockBundle\SonataBlockBundle', $container->getParameter('kernel.bundles'))) {
Please login to merge, or discard this patch.