Passed
Pull Request — master (#26)
by
unknown
08:05
created
Tests/BundleRedisTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     protected static function getKernelClass(): string
14 14
     {
15
-        require_once __DIR__ . '/Fixtures/App/AppKernel.php';
15
+        require_once __DIR__.'/Fixtures/App/AppKernel.php';
16 16
 
17 17
         return AppKernel::class;
18 18
     }
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         $class = self::getKernelClass();
23 23
 
24
-        if (! isset($options['test_case'])) {
24
+        if (!isset($options['test_case'])) {
25 25
             throw new \InvalidArgumentException('The option "test_case" must be set.');
26 26
         }
27 27
 
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
             self::getVarDir(),
30 30
             $options['test_case'],
31 31
             $options['root_config'] ?? 'config.yml',
32
-            $options['environment'] ?? strtolower(static::getVarDir() . $options['test_case']),
32
+            $options['environment'] ?? strtolower(static::getVarDir().$options['test_case']),
33 33
             $options['debug'] ?? true
34 34
         );
35 35
     }
36 36
 
37 37
     private static function getVarDir(): string
38 38
     {
39
-        return 'FB' . substr(strrchr(static::class, '\\'), 1);
39
+        return 'FB'.substr(strrchr(static::class, '\\'), 1);
40 40
     }
41 41
 
42 42
     public function testBundle(): void
Please login to merge, or discard this patch.
Tests/Fixtures/App/AppKernel.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,14 +21,14 @@  discard block
 block discarded – undo
21 21
 
22 22
     public function __construct($varDir, $testCase, $rootConfig, $environment, $debug)
23 23
     {
24
-        if (! is_dir(__DIR__ . '/' . $testCase)) {
24
+        if (!is_dir(__DIR__.'/'.$testCase)) {
25 25
             throw new \InvalidArgumentException(sprintf('The test case "%s" does not exist.', $testCase));
26 26
         }
27 27
         $this->varDir = $varDir;
28 28
         $this->testCase = $testCase;
29 29
 
30 30
         $fs = new Filesystem();
31
-        if (! $fs->isAbsolutePath($rootConfig) && ! file_exists($rootConfig = __DIR__ . '/' . $testCase . '/' . $rootConfig)) {
31
+        if (!$fs->isAbsolutePath($rootConfig) && !file_exists($rootConfig = __DIR__.'/'.$testCase.'/'.$rootConfig)) {
32 32
             throw new \InvalidArgumentException(sprintf('The root config "%s" does not exist.', $rootConfig));
33 33
         }
34 34
         $this->rootConfig = $rootConfig;
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     public function registerBundles()
40 40
     {
41
-        if (! file_exists($filename = $this->getRootDir() . '/' . $this->testCase . '/bundles.php')) {
41
+        if (!file_exists($filename = $this->getRootDir().'/'.$this->testCase.'/bundles.php')) {
42 42
             throw new \RuntimeException(sprintf('The bundles file "%s" does not exist.', $filename));
43 43
         }
44 44
 
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function getCacheDir()
54 54
     {
55
-        return sys_get_temp_dir() . '/' . $this->varDir . '/' . $this->testCase . '/cache/' . $this->environment;
55
+        return sys_get_temp_dir().'/'.$this->varDir.'/'.$this->testCase.'/cache/'.$this->environment;
56 56
     }
57 57
 
58 58
     public function getLogDir()
59 59
     {
60
-        return sys_get_temp_dir() . '/' . $this->varDir . '/' . $this->testCase . '/logs';
60
+        return sys_get_temp_dir().'/'.$this->varDir.'/'.$this->testCase.'/logs';
61 61
     }
62 62
 
63 63
     public function registerContainerConfiguration(LoaderInterface $loader)
Please login to merge, or discard this patch.
Tests/BundleInMemoryTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 {
13 13
     protected static function getKernelClass(): string
14 14
     {
15
-        require_once __DIR__ . '/Fixtures/App/AppKernel.php';
15
+        require_once __DIR__.'/Fixtures/App/AppKernel.php';
16 16
 
17 17
         return AppKernel::class;
18 18
     }
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     {
22 22
         $class = self::getKernelClass();
23 23
 
24
-        if (! isset($options['test_case'])) {
24
+        if (!isset($options['test_case'])) {
25 25
             throw new \InvalidArgumentException('The option "test_case" must be set.');
26 26
         }
27 27
 
@@ -29,14 +29,14 @@  discard block
 block discarded – undo
29 29
             self::getVarDir(),
30 30
             $options['test_case'],
31 31
             $options['root_config'] ?? 'config.yml',
32
-            $options['environment'] ?? strtolower(static::getVarDir() . $options['test_case']),
32
+            $options['environment'] ?? strtolower(static::getVarDir().$options['test_case']),
33 33
             $options['debug'] ?? true
34 34
         );
35 35
     }
36 36
 
37 37
     private static function getVarDir(): string
38 38
     {
39
-        return 'FB' . substr(strrchr(static::class, '\\'), 1);
39
+        return 'FB'.substr(strrchr(static::class, '\\'), 1);
40 40
     }
41 41
 
42 42
     public function testBundle(): void
Please login to merge, or discard this patch.
EventListener/RequestCounterListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     public function onKernelRequestPre(RequestEvent $event): void
37 37
     {
38
-        if (! $event->isMasterRequest()) {
38
+        if (!$event->isMasterRequest()) {
39 39
             return;
40 40
         }
41 41
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     public function onKernelRequest(RequestEvent $event): void
57 57
     {
58
-        if (! $event->isMasterRequest()) {
58
+        if (!$event->isMasterRequest()) {
59 59
             return;
60 60
         }
61 61
 
Please login to merge, or discard this patch.
DependencyInjection/ArtprimaPrometheusMetricsExtension.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
         $container->setParameter('prometheus_metrics_bundle.ignored_routes', $config['ignored_routes']);
33 33
 
34
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
34
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
35 35
         $loader->load('services.xml');
36 36
     }
37 37
 }
Please login to merge, or discard this patch.
DependencyInjection/Compiler/ResolveAdapterDefinitionPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
 {
15 15
     public function process(ContainerBuilder $container)
16 16
     {
17
-        if (! $container->hasDefinition('prometheus_metrics_bundle.adapter')) {
17
+        if (!$container->hasDefinition('prometheus_metrics_bundle.adapter')) {
18 18
             return;
19 19
         }
20 20
 
Please login to merge, or discard this patch.
DependencyInjection/Compiler/IgnoredRoutesPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 {
13 13
     public function process(ContainerBuilder $container)
14 14
     {
15
-        if (! $container->hasDefinition(RequestCounterListener::class)) {
15
+        if (!$container->hasDefinition(RequestCounterListener::class)) {
16 16
             return;
17 17
         }
18 18
 
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
                 ->scalarNode('type')
34 34
                     ->validate()
35 35
                         ->ifNotInArray($supportedTypes)
36
-                        ->thenInvalid('The type %s is not supported. Please choose one of ' . json_encode($supportedTypes))
36
+                        ->thenInvalid('The type %s is not supported. Please choose one of '.json_encode($supportedTypes))
37 37
                     ->end()
38 38
                     ->defaultValue('in_memory')
39 39
                     ->cannotBeEmpty()
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                                 ->always()
51 51
                                 // here we force casting `float` to `string` to avoid TypeError when working with Redis
52 52
                                 // see for more details: https://github.com/phpredis/phpredis/issues/1538
53
-                                ->then(function ($v) {
53
+                                ->then(function($v) {
54 54
                                     return (string) $v;
55 55
                                 })
56 56
                             ->end()
Please login to merge, or discard this patch.