Passed
Pull Request — master (#147)
by Tobias
02:20
created
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.
NewRelic/BlackholeInteractor.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/NewRelic.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/NewRelicInteractor.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/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.
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.
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 = array()) use (&$prevErrorHandler) {
34
+        $prevErrorHandler = set_error_handler(function($type, $msg, $file, $line, $context = array()) 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.
DependencyInjection/Compiler/MonologHandlerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
         $config = $container->getParameter('ekino.new_relic.log_logs');
18 18
         foreach ($config['channels'] as $channel) {
19
-            $def = $container->getDefinition($channel === 'app' ? 'monolog.logger' : 'monolog.logger.'.$channel);
19
+            $def = $container->getDefinition($channel === 'app' ? 'monolog.logger' : 'monolog.logger.' . $channel);
20 20
             $def->addMethodCall('pushHandler', array(new Reference('ekino.new_relic.logs_handler')));
21 21
         }
22 22
     }
Please login to merge, or discard this patch.