Passed
Pull Request — master (#155)
by Tobias
02:31
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.
Tests/Listener/CommandListenerTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             new InputOption('foo'),
44 44
             new InputOption('foobar', 'fb', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY),
45 45
             new InputArgument('name', InputArgument::REQUIRED),
46
-         ));
46
+            ));
47 47
 
48 48
         $interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock();
49 49
         $interactor->expects($this->once())->method('setTransactionName')->with($this->equalTo('test:newrelic'));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         $listener->onConsoleCommand($event);
66 66
     }
67 67
 
68
-    public function testIgnoreBackgroundJob ()
68
+    public function testIgnoreBackgroundJob()
69 69
     {
70 70
         $interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock();
71 71
         $interactor->expects($this->never())->method('startTransaction');
Please login to merge, or discard this patch.
Tests/Listener/RequestListenerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $listener->setTransactionName($event);
58 58
     }
59 59
 
60
-    public function testPathIsIgnored ()
60
+    public function testPathIsIgnored()
61 61
     {
62 62
         $interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock();
63 63
         $interactor->expects($this->once())->method('ignoreTransaction');
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $listener->setIgnoreTransaction($event);
74 74
     }
75 75
 
76
-    public function testRouteIsIgnored ()
76
+    public function testRouteIsIgnored()
77 77
     {
78 78
         $interactor = $this->getMockBuilder(NewRelicInteractorInterface::class)->getMock();
79 79
         $interactor->expects($this->once())->method('ignoreTransaction');
Please login to merge, or discard this patch.
Command/NotifyDeploymentCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         foreach ($appNames as $appName) {
89 89
             $response = $this->performRequest($this->newrelic->getApiKey(), $this->createPayload($appName, $input));
90 90
 
91
-            switch($response['status'])
91
+            switch ($response['status'])
92 92
             {
93 93
                 case 200:
94 94
                 case 201:
Please login to merge, or discard this patch.
Listener/ResponseListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -106,11 +106,11 @@
 block discarded – undo
106 106
                     $responseContent = $response->getContent();
107 107
 
108 108
                     if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isHeaderCalled()) {
109
-                        $responseContent = preg_replace('/<\s*head\s*>/', '$0'.$this->interactor->getBrowserTimingHeader(), $responseContent);
109
+                        $responseContent = preg_replace('/<\s*head\s*>/', '$0' . $this->interactor->getBrowserTimingHeader(), $responseContent);
110 110
                     }
111 111
 
112 112
                     if (null === $this->newRelicTwigExtension || false === $this->newRelicTwigExtension->isFooterCalled()) {
113
-                        $responseContent = preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter().'$0', $responseContent);
113
+                        $responseContent = preg_replace('/<\s*\/\s*body\s*>/', $this->interactor->getBrowserTimingFooter() . '$0', $responseContent);
114 114
                     }
115 115
 
116 116
                     if ($responseContent) {
Please login to merge, or discard this patch.
Listener/RequestListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $this->ignoredRoutes = $ignoreRoutes;
51 51
         $this->ignoredPaths  = $ignoredPaths;
52 52
         $this->transactionNamingStrategy = $transactionNamingStrategy;
53
-        $this->symfonyCache      = $symfonyCache;
53
+        $this->symfonyCache = $symfonyCache;
54 54
     }
55 55
 
56 56
     /**
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.