| @@ -36,7 +36,7 @@ | ||
| 36 | 36 | 'height' => '250px', | 
| 37 | 37 | 'width' => '100%', | 
| 38 | 38 | 'template' => 'EkinoNewRelicBundle:Block:block_core_new_relic.html.twig', | 
| 39 | - )); | |
| 39 | + )); | |
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | 42 | /** | 
| @@ -32,7 +32,7 @@ | ||
| 32 | 32 | 'height' => '250px', | 
| 33 | 33 | 'width' => '100%', | 
| 34 | 34 | 'template' => 'EkinoNewRelicBundle:Block:block_core_new_relic_tabs.html.twig', | 
| 35 | - )); | |
| 35 | + )); | |
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | 38 | /** | 
| @@ -1,6 +1,6 @@ | ||
| 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. | 
| @@ -28,7 +28,7 @@ | ||
| 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(); | 
| @@ -43,7 +43,7 @@ | ||
| 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')); | 
| @@ -65,7 +65,7 @@ | ||
| 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'); | 
| @@ -57,7 +57,7 @@ discard block | ||
| 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 | ||
| 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'); | 
| @@ -9,7 +9,7 @@ discard block | ||
| 9 | 9 | |
| 10 | 10 | class ConfigurationTest extends TestCase | 
| 11 | 11 |  { | 
| 12 | - public function testIgnoredRoutes () | |
| 12 | + public function testIgnoredRoutes() | |
| 13 | 13 |      { | 
| 14 | 14 | $configuration = new Configuration(); | 
| 15 | 15 | $rootNode = $configuration->getConfigTreeBuilder() | 
| @@ -29,7 +29,7 @@ discard block | ||
| 29 | 29 |          $this->assertEquals(array('ignored_route1', 'ignored_route2'), $ignoredRoutesNode->merge(array('ignored_route1'), array('ignored_route2'))); | 
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | - public function testIgnoredPaths () | |
| 32 | + public function testIgnoredPaths() | |
| 33 | 33 |      { | 
| 34 | 34 | $configuration = new Configuration(); | 
| 35 | 35 | $rootNode = $configuration->getConfigTreeBuilder() | 
| @@ -49,7 +49,7 @@ discard block | ||
| 49 | 49 |          $this->assertEquals(array('/ignored/path1', '/ignored/path2'), $ignoredPathsNode->merge(array('/ignored/path1'), array('/ignored/path2'))); | 
| 50 | 50 | } | 
| 51 | 51 | |
| 52 | - public function testIgnoredCommands () | |
| 52 | + public function testIgnoredCommands() | |
| 53 | 53 |      { | 
| 54 | 54 | $configuration = new Configuration(); | 
| 55 | 55 | $rootNode = $configuration->getConfigTreeBuilder() | 
| @@ -85,7 +85,7 @@ discard block | ||
| 85 | 85 |          $this->assertInternalType('array', $config['deployment_names']); | 
| 86 | 86 | } | 
| 87 | 87 | |
| 88 | - public static function ignoredRoutesProvider () | |
| 88 | + public static function ignoredRoutesProvider() | |
| 89 | 89 |      { | 
| 90 | 90 | return array( | 
| 91 | 91 |              array('single_ignored_route', array('single_ignored_route')), | 
| @@ -94,7 +94,7 @@ discard block | ||
| 94 | 94 | ); | 
| 95 | 95 | } | 
| 96 | 96 | |
| 97 | - public static function ignoredPathsProvider () | |
| 97 | + public static function ignoredPathsProvider() | |
| 98 | 98 |      { | 
| 99 | 99 | return array( | 
| 100 | 100 |              array('/single/ignored/path', array('/single/ignored/path')), | 
| @@ -103,7 +103,7 @@ discard block | ||
| 103 | 103 | ); | 
| 104 | 104 | } | 
| 105 | 105 | |
| 106 | - public static function ignoredCommandsProvider () | |
| 106 | + public static function ignoredCommandsProvider() | |
| 107 | 107 |      { | 
| 108 | 108 | return array( | 
| 109 | 109 |              array('single:ignored:command', array('single:ignored:command')), | 
| @@ -88,7 +88,7 @@ | ||
| 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: | 
| @@ -106,11 +106,11 @@ | ||
| 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) { |