Passed
Push — master ( fbdcce...636973 )
by Pavel
12:08
created
Tests/ConfigurationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                     ],
61 61
             ],
62 62
         ];
63
-        $configs       = $processor->processConfiguration(
63
+        $configs = $processor->processConfiguration(
64 64
             $configuration,
65 65
             $rawConfigs
66 66
         );
Please login to merge, or discard this patch.
DependencyInjection/Compiler/MappingCollectorPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
                     DIRECTORY_SEPARATOR,
46 46
                 ]
47 47
             );
48
-            $driverDef  = new Definition(YmlMetadataDriver::class, [$locatorDef]);
48
+            $driverDef = new Definition(YmlMetadataDriver::class, [$locatorDef]);
49 49
 
50 50
             $driver->addMethodCall('addDriver', [$driverDef, $namespace]);
51 51
         }
Please login to merge, or discard this patch.
DependencyInjection/Compiler/ProfilerDecoratorPass.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -46,27 +46,27 @@
 block discarded – undo
46 46
 
47 47
             $profiledId = $id . '.profiled';
48 48
             $container->register($profiledId, ProfiledClient::class)
49
-                      ->setArguments(
50
-                          [
51
-                              new Reference($profiledId . '.inner'),
52
-                              new Reference($profilerId),
53
-                          ]
54
-                      )
55
-                      ->setPublic(false)
56
-                      ->setDecoratedService($id, null, 255);
49
+                        ->setArguments(
50
+                            [
51
+                                new Reference($profiledId . '.inner'),
52
+                                new Reference($profilerId),
53
+                            ]
54
+                        )
55
+                        ->setPublic(false)
56
+                        ->setDecoratedService($id, null, 255);
57 57
 
58 58
             if ($container->has('debug.stopwatch')) {
59 59
                 $tracedId = $id . '.traced';
60 60
                 $container->register($tracedId, TraceableClient::class)
61
-                          ->setArguments(
62
-                              [
63
-                                  new Reference($tracedId . '.inner'),
64
-                                  new Reference('debug.stopwatch'),
65
-                                  'rpc_client.' . $clientName,
66
-                              ]
67
-                          )
68
-                          ->setPublic(false)
69
-                          ->setDecoratedService($id, null, -255);
61
+                            ->setArguments(
62
+                                [
63
+                                    new Reference($tracedId . '.inner'),
64
+                                    new Reference('debug.stopwatch'),
65
+                                    'rpc_client.' . $clientName,
66
+                                ]
67
+                            )
68
+                            ->setPublic(false)
69
+                            ->setDecoratedService($id, null, -255);
70 70
 
71 71
             }
72 72
 
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -47,19 +47,19 @@
 block discarded – undo
47 47
         $confProto = $configuration->prototype('array');
48 48
         $confProto->children()->scalarNode('ttl')->isRequired();
49 49
         $confProto->beforeNormalization()
50
-                  ->ifTrue(
51
-                      function ($v) {
52
-                          return is_int($v);
53
-                      }
54
-                  )
55
-                  ->then(
56
-                      function ($v) {
57
-                          return ['ttl' => $v];
58
-                      }
59
-                  );
50
+                    ->ifTrue(
51
+                        function ($v) {
52
+                            return is_int($v);
53
+                        }
54
+                    )
55
+                    ->then(
56
+                        function ($v) {
57
+                            return ['ttl' => $v];
58
+                        }
59
+                    );
60 60
         $confProto->children()->variableNode('extra')
61
-                  ->info('Extra data for entity cache configuration')
62
-                  ->defaultValue([]);
61
+                    ->info('Extra data for entity cache configuration')
62
+                    ->defaultValue([]);
63 63
         $confProto->ignoreExtraKeys(false);
64 64
         $confProto->canBeEnabled();
65 65
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
         $logger->canBeEnabled();
20 20
         $logger->addDefaultsIfNotSet();
21 21
         $logger->beforeNormalization()->ifString()->then(
22
-            function ($v) {
22
+            function($v) {
23 23
                 return ['service' => $v, 'enabled' => true];
24 24
             }
25 25
         );
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             Cache::class . ' Implementation service id. Required if enabled'
35 35
         )->defaultNull();
36 36
         $metadataCache->beforeNormalization()->ifString()->then(
37
-            function ($v) {
37
+            function($v) {
38 38
                 return ['service' => $v, 'enabled' => true];
39 39
             }
40 40
         );
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $cache->children()->scalarNode('service')->info('PSR-6 Cache service. Required if enabled');
45 45
         $cache->children()->scalarNode('logger')->defaultNull()->info('PSR-3 Log service for cache');
46 46
         $cache->beforeNormalization()->ifString()->then(
47
-            function ($v) {
47
+            function($v) {
48 48
                 return ['service' => $v, 'enabled' => true];
49 49
             }
50 50
         );
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
         $confProto->children()->scalarNode('ttl')->isRequired();
56 56
         $confProto->beforeNormalization()
57 57
                   ->ifTrue(
58
-                      function ($v) {
58
+                      function($v) {
59 59
                           return is_int($v);
60 60
                       }
61 61
                   )
62 62
                   ->then(
63
-                      function ($v) {
63
+                      function($v) {
64 64
                           return ['ttl' => $v];
65 65
                       }
66 66
                   );
Please login to merge, or discard this patch.
DependencyInjection/BankiruDoctrineApiExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         if ($this->isConfigEnabled($container, $config['metadata_cache'])) {
44 44
             $container->getDefinition('bankiru_api.metadata_factory')
45
-                      ->addMethodCall('setCacheDriver', [new Reference($config['metadata_cache']['service'])]);
45
+                        ->addMethodCall('setCacheDriver', [new Reference($config['metadata_cache']['service'])]);
46 46
         }
47 47
 
48 48
         $this->processSensioExtraConfig($container, $loader);
Please login to merge, or discard this patch.
Tests/StopwatchTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
                     'sub-payload' => 'sub-payload',
53 53
                 ]
54 54
             ),
55
-            function () {
55
+            function() {
56 56
                 usleep(1000);
57 57
 
58 58
                 return true;
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /** {@inheritdoc} */
98 98
     protected function getCacheDir()
99 99
     {
100
-        return __DIR__.'/../build/cache/';
100
+        return __DIR__ . '/../build/cache/';
101 101
     }
102 102
 
103 103
     private function getSuccessResponseMock($result)
Please login to merge, or discard this patch.
Tests/SensioFrameworkExtraTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,6 @@
 block discarded – undo
55 55
     /** {@inheritdoc} */
56 56
     protected function getCacheDir()
57 57
     {
58
-        return __DIR__.'/../build/cache/';
58
+        return __DIR__ . '/../build/cache/';
59 59
     }
60 60
 }
Please login to merge, or discard this patch.
Tests/BundleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
35 35
     /** {@inheritdoc} */
36 36
     protected function getCacheDir()
37 37
     {
38
-        return __DIR__.'/../build/cache/';
38
+        return __DIR__ . '/../build/cache/';
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
DependencyInjection/Compiler/LoggerDecoratorPass.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
         foreach ($clients as $id => $tags) {
32 32
             $newId = $id . '.loggable';
33 33
             $container->register($newId, LoggableRpcClient::class)
34
-                      ->setArguments(
35
-                          [
36
-                              new Reference($newId . '.inner'),
37
-                              new Reference($container->getParameter(self::LOGGER_SERVICE_PARAMETER)),
38
-                              '%bankiru_api.logger.debug_body%'
39
-                          ]
40
-                      )
41
-                      ->setPublic(false)
42
-                      ->setDecoratedService($id);
34
+                        ->setArguments(
35
+                            [
36
+                                new Reference($newId . '.inner'),
37
+                                new Reference($container->getParameter(self::LOGGER_SERVICE_PARAMETER)),
38
+                                '%bankiru_api.logger.debug_body%'
39
+                            ]
40
+                        )
41
+                        ->setPublic(false)
42
+                        ->setDecoratedService($id);
43 43
         }
44 44
     }
45 45
 }
Please login to merge, or discard this patch.