Completed
Push — master ( 6d867d...10a7e6 )
by Jérémy
11s
created
Listener/DeprecationListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         }
32 32
         $this->isRegistered = true;
33 33
 
34
-        $prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
34
+        $prevErrorHandler = set_error_handler(function($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
35 35
             if (E_USER_DEPRECATED === $type) {
36 36
                 $this->interactor->noticeThrowable(new DeprecationException($msg, 0, $type, $file, $line));
37 37
             }
Please login to merge, or discard this patch.
Listener/CommandListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
 
75 75
         // send parameters to New Relic
76 76
         foreach ($input->getOptions() as $key => $value) {
77
-            $key = '--'.$key;
77
+            $key = '--' . $key;
78 78
             if (is_array($value)) {
79 79
                 foreach ($value as $k => $v) {
80
-                    $this->interactor->addCustomParameter($key.'['.$k.']', $v);
80
+                    $this->interactor->addCustomParameter($key . '[' . $k . ']', $v);
81 81
                 }
82 82
             } else {
83 83
                 $this->interactor->addCustomParameter($key, $value);
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         foreach ($input->getArguments() as $key => $value) {
88 88
             if (is_array($value)) {
89 89
                 foreach ($value as $k => $v) {
90
-                    $this->interactor->addCustomParameter($key.'['.$k.']', $v);
90
+                    $this->interactor->addCustomParameter($key . '[' . $k . ']', $v);
91 91
                 }
92 92
             } else {
93 93
                 $this->interactor->addCustomParameter($key, $value);
Please login to merge, or discard this patch.
TransactionNamingStrategy/ControllerNamingStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
         if (is_object($controller)) {
35 35
             if (method_exists($controller, '__invoke')) {
36
-                return 'Callback controller: '.get_class($controller).'::__invoke()';
36
+                return 'Callback controller: ' . get_class($controller) . '::__invoke()';
37 37
             }
38 38
         }
39 39
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 $controller = implode('::', $controller);
47 47
             }
48 48
 
49
-            return 'Callback contoller: '.$controller.'()';
49
+            return 'Callback contoller: ' . $controller . '()';
50 50
         }
51 51
 
52 52
         return $controller;
Please login to merge, or discard this patch.
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.