Completed
Pull Request — master (#165)
by Jérémy
03:08 queued 48s
created
NewRelic/NewRelicInteractorInterface.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/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.
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/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.
DependencyInjection/Configuration.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
                     ->prototype('scalar')
40 40
                     ->end()
41 41
                     ->beforeNormalization()
42
-                        ->ifTrue(function ($v) { return !is_array($v); })
43
-                        ->then(function ($v) { return array_values(array_filter(explode(';', $v))); })
42
+                        ->ifTrue(function($v) { return !is_array($v); })
43
+                        ->then(function($v) { return array_values(array_filter(explode(';', $v))); })
44 44
                     ->end()
45 45
                 ->end()
46 46
                 ->scalarNode('xmit')->defaultValue(false)->end()
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
                             ->prototype('scalar')
59 59
                             ->end()
60 60
                             ->beforeNormalization()
61
-                                ->ifTrue(function ($v) { return !is_array($v); })
62
-                                ->then(function ($v) { return (array) $v; })
61
+                                ->ifTrue(function($v) { return !is_array($v); })
62
+                                ->then(function($v) { return (array) $v; })
63 63
                             ->end()
64 64
                         ->end()
65 65
                     ->end()
@@ -82,16 +82,16 @@  discard block
 block discarded – undo
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
                         ->arrayNode('ignored_paths')
90 90
                             ->prototype('scalar')
91 91
                             ->end()
92 92
                             ->beforeNormalization()
93
-                                ->ifTrue(function ($v) { return !is_array($v); })
94
-                                ->then(function ($v) { return (array) $v; })
93
+                                ->ifTrue(function($v) { return !is_array($v); })
94
+                                ->then(function($v) { return (array) $v; })
95 95
                             ->end()
96 96
                         ->end()
97 97
                         ->scalarNode('using_symfony_cache')->defaultFalse()->end()
Please login to merge, or discard this patch.
DependencyInjection/EkinoNewRelicExtension.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
         $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 (!$config['enabled']) {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 
109 109
             $level = $config['monolog']['level'];
110 110
             $container->findDefinition('ekino.new_relic.logs_handler')
111
-                ->replaceArgument(0, is_int($level) ? $level : constant('Monolog\Logger::'.strtoupper($level)))
111
+                ->replaceArgument(0, is_int($level) ? $level : constant('Monolog\Logger::' . strtoupper($level)))
112 112
                 ->replaceArgument(2, $config['application_name']);
113 113
         }
114 114
     }
Please login to merge, or discard this patch.