Passed
Pull Request — master (#9)
by Pavel
12:36
created
Controller/RpcController.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function setContainer(ContainerInterface $container = null)
38 38
     {
39
-        $this->container  = $container;
39
+        $this->container = $container;
40 40
     }
41 41
 
42 42
     /**
Please login to merge, or discard this patch.
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.
Routing/Router.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
 
162 162
         $cache = $this->getConfigCacheFactory()->cache(
163 163
             $this->options['cache_dir'] . '/rpc/' . $this->options['matcher_cache_class'] . '.php',
164
-            function (ConfigCacheInterface $cache) {
164
+            function(ConfigCacheInterface $cache) {
165 165
                 $dumper = new MatcherDumper();
166 166
 
167 167
                 $options = [
Please login to merge, or discard this patch.
Routing/MatcherDumper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 CONTENT;
29 29
 
30 30
         foreach ($collection->all() as $name => $method) {
31
-            $ret     = var_export(AttributesHelper::getAttributes($method, $name), true);
31
+            $ret = var_export(AttributesHelper::getAttributes($method, $name), true);
32 32
             $content .= PHP_EOL .
33 33
                         <<<CONTENT
34 34
             '{$method->getMethod()}' => {$ret},
Please login to merge, or discard this patch.
Routing/Exception/FileLoaderLoadException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
             // Trim the trailing period of the previous message. We only want 1 period remove so no rtrim...
43 43
             if ('.' === substr($previous->getMessage(), -1)) {
44 44
                 $trimmedMessage = substr($previous->getMessage(), 0, -1);
45
-                $message        .= sprintf('%s', $trimmedMessage) . ' in ';
45
+                $message .= sprintf('%s', $trimmedMessage) . ' in ';
46 46
             } else {
47 47
                 $message .= sprintf('%s', $previous->getMessage()) . ' in ';
48 48
             }
Please login to merge, or discard this patch.
Routing/Loader/AnnotationDirectoryLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         );
42 42
         usort(
43 43
             $files,
44
-            function (\SplFileInfo $a, \SplFileInfo $b) {
44
+            function(\SplFileInfo $a, \SplFileInfo $b) {
45 45
                 return (string)$a > (string)$b ? 1 : -1;
46 46
             }
47 47
         );
Please login to merge, or discard this patch.
Controller/RpcControllerNameParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
     private function findAlternative($nonExistentBundleName)
155 155
     {
156 156
         $bundleNames = array_map(
157
-            function (BundleInterface $b) {
157
+            function(BundleInterface $b) {
158 158
                 return $b->getName();
159 159
             },
160 160
             $this->kernel->getBundles()
Please login to merge, or discard this patch.
Test/Tests/RpcTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $client->request(
45 45
             'POST',
46 46
             '/test/',
47
-            array_replace(['method' => 'test/method',], $args)
47
+            array_replace(['method' => 'test/method', ], $args)
48 48
         );
49 49
 
50 50
         self::assertTrue($client->getResponse()->isSuccessful());
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $client->request(
65 65
             'POST',
66 66
             '/test/',
67
-            array_replace(['method' => 'test/method',], $args)
67
+            array_replace(['method' => 'test/method', ], $args)
68 68
         );
69 69
     }
70 70
 
Please login to merge, or discard this patch.
Listener/SecurityListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@
 block discarded – undo
113 113
             'object'         => $request,
114 114
             'request'        => $request,
115 115
             'roles'          => array_map(
116
-                function ($role) {
116
+                function($role) {
117 117
                     return $role->getRole();
118 118
                 },
119 119
                 $roles
Please login to merge, or discard this patch.