Completed
Push — master ( 7c1ddd...27b3bc )
by Daniel
04:56
created
Amqp/ConnectionFactory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     ];
31 31
 
32 32
     /**
33
-     * @param $class string FQCN of AMQPConnection class to instantiate.
33
+     * @param string $class string FQCN of AMQPConnection class to instantiate.
34 34
      * @param array $parameters
35 35
      * @throws InvalidAMQPConnectionClassException
36 36
      */
Please login to merge, or discard this patch.
Rpc/RpcServer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     }
30 30
 
31 31
     /**
32
-     * @param $queue
32
+     * @param string $queue
33 33
      * @param RpcServiceInterface $serviceCallback
34 34
      * @param bool|false $passive
35 35
      * @param bool|false $durable
Please login to merge, or discard this patch.
DependencyInjection/Configuration.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -44,19 +44,19 @@
 block discarded – undo
44 44
                     ->prototype('array')
45 45
                         ->children()
46 46
                             ->arrayNode('queue')
47
-                                     ->children()
48
-                                         ->scalarNode('name')->end()
49
-                                         ->booleanNode('passive')->defaultFalse()->end()
50
-                                         ->booleanNode('durable')->defaultTrue()->end()
51
-                                         ->booleanNode('exclusive')->defaultFalse()->end()
52
-                                         ->booleanNode('auto_delete')->defaultFalse()->end()
53
-                                         ->booleanNode('nowait')->defaultFalse()->end()
54
-                                         ->variableNode('arguments')->defaultNull()->end()
55
-                                         ->scalarNode('ticket')->defaultNull()->end()
56
-                                         ->arrayNode('routing_keys')
47
+                                        ->children()
48
+                                            ->scalarNode('name')->end()
49
+                                            ->booleanNode('passive')->defaultFalse()->end()
50
+                                            ->booleanNode('durable')->defaultTrue()->end()
51
+                                            ->booleanNode('exclusive')->defaultFalse()->end()
52
+                                            ->booleanNode('auto_delete')->defaultFalse()->end()
53
+                                            ->booleanNode('nowait')->defaultFalse()->end()
54
+                                            ->variableNode('arguments')->defaultNull()->end()
55
+                                            ->scalarNode('ticket')->defaultNull()->end()
56
+                                            ->arrayNode('routing_keys')
57 57
                                             ->prototype('scalar')->end()
58
-                                         ->end()
59
-                                     ->end()
58
+                                            ->end()
59
+                                        ->end()
60 60
                             ->end()
61 61
                             ->scalarNode('class')->end()
62 62
                             ->arrayNode('arguments')->end()
Please login to merge, or discard this patch.
Routing/Method.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function serialize()
25 25
     {
26 26
         return serialize([
27
-           'id' => $this->id,
27
+            'id' => $this->id,
28 28
             'name' => $this->name,
29 29
             'params' => $this->params,
30 30
             'defaults' => $this->defaults,
Please login to merge, or discard this patch.
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
         return $this;
126 126
     }
127 127
 
128
+    /**
129
+     * @param string $name
130
+     */
128 131
     public function getOption($name)
129 132
     {
130 133
         if (isset($this->options[$name])) {
@@ -161,6 +164,9 @@  discard block
 block discarded – undo
161 164
         return $this;
162 165
     }
163 166
 
167
+    /**
168
+     * @param string $name
169
+     */
164 170
     public function getDefault($name)
165 171
     {
166 172
         if (isset($this->defaults[$name])) {
@@ -175,6 +181,9 @@  discard block
 block discarded – undo
175 181
         return array_key_exists($name, $this->defaults);
176 182
     }
177 183
 
184
+    /**
185
+     * @param string $name
186
+     */
178 187
     public function setDefault($name, $default)
179 188
     {
180 189
         $this->defaults[$name] = $default;
Please login to merge, or discard this patch.
Tests/Rpc/HandlerTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         /**
20 20
          * @var JsonRpcResponseCollection $responses
21 21
          */
22
-       // $responses = $this->getMockBuilder('Cmobi\RabbitmqBundle\Rpc\Response\JsonRpcResponseCollection')->getMock();
22
+        // $responses = $this->getMockBuilder('Cmobi\RabbitmqBundle\Rpc\Response\JsonRpcResponseCollection')->getMock();
23 23
         /**
24 24
          * @var AMQPMessage
25 25
          */
Please login to merge, or discard this patch.
Routing/Loader/YamlRpcLoader.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -34,6 +34,9 @@
 block discarded – undo
34 34
         throw new ResourceNotFoundException(sprintf('No routes found for "%s".', $path));
35 35
     }
36 36
 
37
+    /**
38
+     * @param string $path
39
+     */
37 40
     public function matchCollection($path, MethodCollection $methods)
38 41
     {
39 42
         foreach ($methods as $name => $method) {
Please login to merge, or discard this patch.
Tests/Routing/Loader/YamlRpcLoaderTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -61,6 +61,10 @@
 block discarded – undo
61 61
         return new ControllerNameParser($kernel);
62 62
     }
63 63
 
64
+    /**
65
+     * @param string $namespace
66
+     * @param string $name
67
+     */
64 68
     private function getBundle($namespace, $name)
65 69
     {
66 70
         $bundle = $this->getMock('Symfony\Component\HttpKernel\Bundle\BundleInterface');
Please login to merge, or discard this patch.
Routing/MethodRouter.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
     protected $options = [];
20 20
     private $configCacheFactory;
21 21
 
22
+    /**
23
+     * @param string $resource
24
+     */
22 25
     public function __construct(ContainerInterface $loader, $resource, array $options = [])
23 26
     {
24 27
         if (is_array($resource)) {
@@ -57,6 +60,9 @@  discard block
 block discarded – undo
57 60
         }
58 61
     }
59 62
 
63
+    /**
64
+     * @param string $key
65
+     */
60 66
     public function setOption($key, $value)
61 67
     {
62 68
         if (!array_key_exists($key, $this->options)) {
@@ -66,6 +72,9 @@  discard block
 block discarded – undo
66 72
         $this->options[$key] = $value;
67 73
     }
68 74
 
75
+    /**
76
+     * @param string $key
77
+     */
69 78
     public function getOption($key)
70 79
     {
71 80
         if (!array_key_exists($key, $this->options)) {
Please login to merge, or discard this patch.
Rpc/RpcClient.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     }
165 165
 
166 166
     /**
167
-     * @param $body
167
+     * @param string $body
168 168
      */
169 169
     private function handleRequest($body)
170 170
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         }
83 83
         /* Send to Message Broker */
84 84
         $this->handleRequest($body);
85
-       $rpcResponse = $this->buildRpcResponseCollection();
85
+        $rpcResponse = $this->buildRpcResponseCollection();
86 86
 
87 87
         return $rpcResponse;
88 88
     }
Please login to merge, or discard this patch.