Completed
Pull Request — master (#165)
by Jérémy
03:08 queued 48s
created
Tests/Listener/CommandListenerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             new InputOption('foo'),
43 43
             new InputOption('foobar', 'fb', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY),
44 44
             new InputArgument('name', InputArgument::REQUIRED),
45
-         ]);
45
+            ]);
46 46
 
47 47
         $interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock();
48 48
         $interactor->expects($this->once())->method('setTransactionName')->with($this->equalTo('test:newrelic'));
Please login to merge, or discard this patch.
DependencyInjection/Compiler/MonologHandlerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         $channels = $container->getParameter('ekino.new_relic.monolog.channels');
27 27
         foreach ($channels as $channel) {
28
-            $def = $container->getDefinition('app' === $channel ? 'monolog.logger' : 'monolog.logger.'.$channel);
28
+            $def = $container->getDefinition('app' === $channel ? 'monolog.logger' : 'monolog.logger.' . $channel);
29 29
             $def->addMethodCall('pushHandler', [new Reference('ekino.new_relic.logs_handler')]);
30 30
         }
31 31
     }
Please login to merge, or discard this patch.
NewRelic/Config.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.
Listener/RequestListener.php 2 patches
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.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
     {
44 44
         return [
45 45
             KernelEvents::REQUEST => [
46
-                 ['setApplicationName', 255],
47
-                 ['setIgnoreTransaction', 31],
48
-                 ['setTransactionName', -10],
46
+                    ['setApplicationName', 255],
47
+                    ['setIgnoreTransaction', 31],
48
+                    ['setTransactionName', -10],
49 49
             ],
50 50
         ];
51 51
     }
Please login to merge, or discard this patch.
Listener/DeprecationListener.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.
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         }
38 38
         $this->isRegistered = true;
39 39
 
40
-        $prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
40
+        $prevErrorHandler = set_error_handler(function($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
41 41
             if (E_USER_DEPRECATED === $type) {
42 42
                 $this->interactor->noticeThrowable(new DeprecationException($msg, 0, $type, $file, $line));
43 43
             }
Please login to merge, or discard this patch.
Listener/CommandListener.php 1 patch
Spacing   +4 added lines, -4 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.
@@ -82,10 +82,10 @@  discard block
 block discarded – undo
82 82
 
83 83
         // send parameters to New Relic
84 84
         foreach ($input->getOptions() as $key => $value) {
85
-            $key = '--'.$key;
85
+            $key = '--' . $key;
86 86
             if (is_array($value)) {
87 87
                 foreach ($value as $k => $v) {
88
-                    $this->interactor->addCustomParameter($key.'['.$k.']', $v);
88
+                    $this->interactor->addCustomParameter($key . '[' . $k . ']', $v);
89 89
                 }
90 90
             } else {
91 91
                 $this->interactor->addCustomParameter($key, $value);
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         foreach ($input->getArguments() as $key => $value) {
96 96
             if (is_array($value)) {
97 97
                 foreach ($value as $k => $v) {
98
-                    $this->interactor->addCustomParameter($key.'['.$k.']', $v);
98
+                    $this->interactor->addCustomParameter($key . '[' . $k . ']', $v);
99 99
                 }
100 100
             } else {
101 101
                 $this->interactor->addCustomParameter($key, $value);
Please login to merge, or discard this patch.
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.