Completed
Push — master ( 454760...bc93f3 )
by Pavel
03:38
created
src/Bankiru/Api/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.
src/Bankiru/Api/DependencyInjection/Configuration.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
         $cache = $root->children()->arrayNode('cache');
30 30
         $cache->addDefaultsIfNotSet();
31 31
         $cache->children()
32
-              ->booleanNode('enabled')
33
-              ->defaultFalse();
32
+                ->booleanNode('enabled')
33
+                ->defaultFalse();
34 34
         $cache
35 35
             ->addDefaultsIfNotSet()
36 36
             ->treatFalseLike(['enabled' => false])
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
         $confProto = $configuration->prototype('array');
48 48
         $confProto->children()->scalarNode('ttl')->isRequired();
49 49
         $confProto->beforeNormalization()
50
-                  ->ifTrue(function ($v) { return is_int($v); })
51
-                  ->then(function ($v) { return ['ttl' => $v]; });
50
+                    ->ifTrue(function ($v) { return is_int($v); })
51
+                    ->then(function ($v) { return ['ttl' => $v]; });
52 52
         $confProto->ignoreExtraKeys(false);
53 53
         $confProto->canBeEnabled();
54 54
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             ->treatNullLike(['enabled' => true]);
39 39
         $cache->children()->scalarNode('service')->defaultNull()->info('PSR-6 Cache service. Required if enabled');
40 40
         $cache->children()->scalarNode('logger')->defaultNull()->info('PSR-3 Log service for cache');
41
-        $cache->beforeNormalization()->ifString()->then(function ($v) {
41
+        $cache->beforeNormalization()->ifString()->then(function($v) {
42 42
             return ['service' => $v, 'enabled' => true];
43 43
         });
44 44
         $configuration = $cache->children()->arrayNode('configuration');
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
         $confProto = $configuration->prototype('array');
48 48
         $confProto->children()->scalarNode('ttl')->isRequired();
49 49
         $confProto->beforeNormalization()
50
-                  ->ifTrue(function ($v) { return is_int($v); })
51
-                  ->then(function ($v) { return ['ttl' => $v]; });
50
+                  ->ifTrue(function($v) { return is_int($v); })
51
+                  ->then(function($v) { return ['ttl' => $v]; });
52 52
         $confProto->ignoreExtraKeys(false);
53 53
         $confProto->canBeEnabled();
54 54
 
Please login to merge, or discard this patch.
src/Bankiru/Api/DependencyInjection/Compiler/MappingCollectorPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                     DIRECTORY_SEPARATOR
48 48
                 ]
49 49
             );
50
-            $driverDef = new Definition(YmlMetadataDriver::class,[$locatorDef]);
50
+            $driverDef = new Definition(YmlMetadataDriver::class, [$locatorDef]);
51 51
 
52 52
             $driver->addMethodCall('addDriver', [$driverDef, $namespace]);
53 53
         }
Please login to merge, or discard this patch.
src/Bankiru/Api/DependencyInjection/Compiler/LoggerDecoratorPass.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
         foreach ($clients as $id => $tags) {
37 37
             $newId = $id . '.loggable';
38 38
             $container->register($newId, LoggableRpcClient::class)
39
-                      ->setArguments(
40
-                          [
41
-                              new Reference($newId . '.inner'),
42
-                              new Reference($container->getParameter('bankiru_api.logger_id')),
43
-                          ]
44
-                      )
45
-                      ->setPublic(false)
46
-                      ->setDecoratedService($id);
39
+                        ->setArguments(
40
+                            [
41
+                                new Reference($newId . '.inner'),
42
+                                new Reference($container->getParameter('bankiru_api.logger_id')),
43
+                            ]
44
+                        )
45
+                        ->setPublic(false)
46
+                        ->setDecoratedService($id);
47 47
         }
48 48
     }
49 49
 }
Please login to merge, or discard this patch.
src/Bankiru/Api/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.