Passed
Push — master ( 8cd72e...2db2f3 )
by Tobias
02:40
created
Tests/TransactionNamingStrategy/ControllerNamingStrategyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function testControllerAsClosure()
29 29
     {
30 30
         $request = new Request();
31
-        $request->attributes->set('_controller', function () {
31
+        $request->attributes->set('_controller', function() {
32 32
         });
33 33
 
34 34
         $strategy = new ControllerNamingStrategy();
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.
Listener/RequestListener.php 1 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.
Tests/Listener/DeprecationListenerTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
         $listener = new DeprecationListener($interactor);
27 27
 
28
-        \set_error_handler(function () { return false; });
28
+        \set_error_handler(function() { return false; });
29 29
         try {
30 30
             $listener->register();
31 31
             @\trigger_error('This is a deprecation', E_USER_DEPRECATED);
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $listener = new DeprecationListener($interactor);
44 44
 
45
-        \set_error_handler(function () { return false; });
45
+        \set_error_handler(function() { return false; });
46 46
         $e = \error_reporting(0);
47 47
         try {
48 48
             $listener->register();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
         $listener = new DeprecationListener($interactor);
63 63
 
64
-        \set_error_handler(function () { return false; });
64
+        \set_error_handler(function() { return false; });
65 65
         try {
66 66
             $listener->register();
67 67
             @\trigger_error('This is a notice', E_USER_NOTICE);
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         $listener = new DeprecationListener($interactor);
100 100
 
101
-        \set_error_handler(function () { return false; });
101
+        \set_error_handler(function() { return false; });
102 102
         try {
103 103
             $listener->register();
104 104
             $listener->unregister();
Please login to merge, or discard this patch.
Tests/NewRelic/LoggingInteractorDecoratorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 continue;
49 49
             }
50 50
 
51
-            $arguments = \array_map(function (\ReflectionParameter $parameter) {
51
+            $arguments = \array_map(function(\ReflectionParameter $parameter) {
52 52
                 return $this->getTypeStub($parameter->getType());
53 53
             }, $method->getParameters());
54 54
 
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
             case 'Throwable':
79 79
                 return new \Exception();
80 80
             case 'callable':
81
-                return function () {};
81
+                return function() {};
82 82
             case 'array':
83 83
                 return \array_fill(0, 2, \uniqid('', true));
84 84
             default:
85
-                throw new \UnexpectedValueException('Unknow type. '.$type->getName());
85
+                throw new \UnexpectedValueException('Unknow type. ' . $type->getName());
86 86
         }
87 87
     }
88 88
 }
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
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
                     ->prototype('scalar')
36 36
                     ->end()
37 37
                     ->beforeNormalization()
38
-                        ->ifTrue(function ($v) { return !\is_array($v); })
39
-                        ->then(function ($v) { return \array_values(\array_filter(\explode(';', $v))); })
38
+                        ->ifTrue(function($v) { return !\is_array($v); })
39
+                        ->then(function($v) { return \array_values(\array_filter(\explode(';', $v))); })
40 40
                     ->end()
41 41
                 ->end()
42 42
                 ->scalarNode('xmit')->defaultValue(false)->end()
@@ -54,8 +54,8 @@  discard block
 block discarded – undo
54 54
                             ->prototype('scalar')
55 55
                             ->end()
56 56
                             ->beforeNormalization()
57
-                                ->ifTrue(function ($v) { return !\is_array($v); })
58
-                                ->then(function ($v) { return (array) $v; })
57
+                                ->ifTrue(function($v) { return !\is_array($v); })
58
+                                ->then(function($v) { return (array) $v; })
59 59
                             ->end()
60 60
                         ->end()
61 61
                     ->end()
@@ -78,16 +78,16 @@  discard block
 block discarded – undo
78 78
                             ->prototype('scalar')
79 79
                             ->end()
80 80
                             ->beforeNormalization()
81
-                                ->ifTrue(function ($v) { return !\is_array($v); })
82
-                                ->then(function ($v) { return (array) $v; })
81
+                                ->ifTrue(function($v) { return !\is_array($v); })
82
+                                ->then(function($v) { return (array) $v; })
83 83
                             ->end()
84 84
                         ->end()
85 85
                         ->arrayNode('ignored_paths')
86 86
                             ->prototype('scalar')
87 87
                             ->end()
88 88
                             ->beforeNormalization()
89
-                                ->ifTrue(function ($v) { return !\is_array($v); })
90
-                                ->then(function ($v) { return (array) $v; })
89
+                                ->ifTrue(function($v) { return !\is_array($v); })
90
+                                ->then(function($v) { return (array) $v; })
91 91
                             ->end()
92 92
                         ->end()
93 93
                         ->scalarNode('using_symfony_cache')->defaultFalse()->end()
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
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
         if (\is_object($controller)) {
34 34
             if (\method_exists($controller, '__invoke')) {
35
-                return 'Callback controller: '.\get_class($controller).'::__invoke()';
35
+                return 'Callback controller: ' . \get_class($controller) . '::__invoke()';
36 36
             }
37 37
         }
38 38
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
                 $controller = \implode('::', $controller);
46 46
             }
47 47
 
48
-            return 'Callback contoller: '.$controller.'()';
48
+            return 'Callback contoller: ' . $controller . '()';
49 49
         }
50 50
 
51 51
         return $controller;
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
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         $configuration = new Configuration();
44 44
         $config = $this->processConfiguration($configuration, $configs);
45 45
 
46
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
46
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
47 47
         $loader->load('services.xml');
48 48
 
49 49
         $container->setAlias(NewRelicInteractorInterface::class, $this->getInteractorServiceId($config))->setPublic(false);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
                 ->setDecoratedService(NewRelicInteractorInterface::class)
55 55
                 ->setArguments(
56 56
                     [
57
-                        '$interactor' => new Reference(LoggingInteractorDecorator::class.'.inner'),
57
+                        '$interactor' => new Reference(LoggingInteractorDecorator::class . '.inner'),
58 58
                         '$logger' => new Reference('logger', ContainerInterface::NULL_ON_INVALID_REFERENCE),
59 59
                     ]
60 60
                 )
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             $container->findDefinition('ekino.new_relic.logs_handler')
133 133
                 ->setArguments(
134 134
                     [
135
-                        '$level' => \is_int($level) ? $level : \constant('Monolog\Logger::'.\strtoupper($level)),
135
+                        '$level' => \is_int($level) ? $level : \constant('Monolog\Logger::' . \strtoupper($level)),
136 136
                         '$appName' => $config['application_name'],
137 137
                     ]
138 138
                 );
Please login to merge, or discard this patch.