Completed
Push — master ( 9b3d0e...58bdf2 )
by Pavel
06:42 queued 02:55
created
src/Bankiru/Api/Rpc/Controller/RpcController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-     * @param $name
108
+     * @param string $name
109 109
      *
110 110
      * @return object|null
111 111
      * @throws ServiceNotFoundException
Please login to merge, or discard this patch.
src/Bankiru/Api/Rpc/Command/RouterDebugCommand.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
         $this->setName('debug:rpc_router');
24 24
         $this->setDescription('Display essential info about RPC routing');
25 25
         $this->addOption('endpoint',
26
-                         'p',
27
-                         InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
28
-                         'Filter endpoint',
29
-                         null);
26
+                            'p',
27
+                            InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
28
+                            'Filter endpoint',
29
+                            null);
30 30
     }
31 31
 
32 32
     protected function execute(InputInterface $input, OutputInterface $output)
Please login to merge, or discard this patch.
src/Bankiru/Api/Rpc/Routing/Loader/AnnotationDirectoryLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             )
39 39
         );
40 40
         usort($files,
41
-            function (\SplFileInfo $a, \SplFileInfo $b) {
41
+            function(\SplFileInfo $a, \SplFileInfo $b) {
42 42
                 return (string)$a > (string)$b ? 1 : -1;
43 43
             });
44 44
 
Please login to merge, or discard this patch.
src/Bankiru/Api/Rpc/Routing/Loader/DirectoryLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         foreach (scandir($path) as $dir) {
27 27
             if ('.' !== $dir[0]) {
28 28
                 $this->setCurrentDir($path);
29
-                $subPath = $path.'/'.$dir;
29
+                $subPath = $path . '/' . $dir;
30 30
                 $subType = null;
31 31
 
32 32
                 if (is_dir($subPath)) {
Please login to merge, or discard this patch.
src/Bankiru/Api/Rpc/Controller/RpcControllerNameParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     private function findAlternative($nonExistentBundleName)
109 109
     {
110
-        $bundleNames = array_map(function (BundleInterface $b) {
110
+        $bundleNames = array_map(function(BundleInterface $b) {
111 111
             return $b->getName();
112 112
         }, $this->kernel->getBundles());
113 113
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
      */
136 136
     protected function guessControllerClassName(BundleInterface $bundle, $controller)
137 137
     {
138
-        return $bundle->getNamespace().'\\Controller\\'.$controller.'Controller';
138
+        return $bundle->getNamespace() . '\\Controller\\' . $controller . 'Controller';
139 139
     }
140 140
 
141 141
     /**
@@ -145,6 +145,6 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function guessActionString($controller, $action)
147 147
     {
148
-        return $controller.'::'.$action.'Action';
148
+        return $controller . '::' . $action . 'Action';
149 149
     }
150 150
 }
Please login to merge, or discard this patch.
bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 /**
7 7
  * @var ClassLoader $loader
8 8
  */
9
-$loader = require __DIR__.'/vendor/autoload.php';
9
+$loader = require __DIR__ . '/vendor/autoload.php';
10 10
 
11 11
 AnnotationRegistry::registerLoader([$loader, 'loadClass']);
12 12
 
Please login to merge, or discard this patch.
src/Bankiru/Api/Rpc/Tests/RpcTest.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
             $client->request(
48 48
                 'POST',
49 49
                 '/test/',
50
-                array_replace(['method' => 'test/method',], $args)
50
+                array_replace(['method' => 'test/method', ], $args)
51 51
             );
52 52
         } catch (InvalidMethodParametersException $e) {
53 53
             if ($valid) {
Please login to merge, or discard this patch.
src/Bankiru/Api/Rpc/DependencyInjection/Configuration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
                 ->beforeNormalization()
51 51
                 ->ifNull()
52 52
                 ->then(
53
-                    function () {
53
+                    function() {
54 54
                         return [];
55 55
                     }
56 56
                 )
57 57
                 ->ifString()
58 58
                 ->then(
59
-                    function ($v) {
59
+                    function($v) {
60 60
                         return [$v];
61 61
                     }
62 62
                 )
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                 ->beforeNormalization()
74 74
                 ->ifString()
75 75
                 ->then(
76
-                    function ($v) {
76
+                    function($v) {
77 77
                         return [$v];
78 78
                     }
79 79
                 )
Please login to merge, or discard this patch.