Completed
Push — master ( f743de...f8a04a )
by Daniel
03:18
created
Amqp/ConnectionFactory.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,10 +62,10 @@
 block discarded – undo
62 62
             $this->parameters['user'],
63 63
             $this->parameters['password'],
64 64
             $this->parameters['vhost'],
65
-            false,      // insist
65
+            false, // insist
66 66
             'AMQPLAIN', // login_method
67
-            null,       // login_response
68
-            'en_US',    // locale
67
+            null, // login_response
68
+            'en_US', // locale
69 69
             $this->parameters['connection_timeout'],
70 70
             $this->parameters['read_write_timeout'],
71 71
             $this->parameters['ssl_context'],
Please login to merge, or discard this patch.
Rpc/RpcServer.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
             if (!$service instanceof RpcServiceInterface) {
67 67
                 throw new InvalidRpcServerClassException(
68
-                    'Failed start RpcServer: %s is not instance of RpcServiceInterface'. $serviceName
68
+                    'Failed start RpcServer: %s is not instance of RpcServiceInterface'.$serviceName
69 69
                 );
70 70
             }
71 71
             list(
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             );
85 85
         }
86 86
 
87
-        while(count($this->getChannel()->callbacks)) {
87
+        while (count($this->getChannel()->callbacks)) {
88 88
             $this->getChannel()->wait();
89 89
         }
90 90
 
Please login to merge, or discard this patch.
DependencyInjection/CmobiRabbitmqExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function load(array $configs, ContainerBuilder $container)
19 19
     {
20
-        $fileLocator = new FileLocator(__DIR__ . '/../Resources/config');
20
+        $fileLocator = new FileLocator(__DIR__.'/../Resources/config');
21 21
         $loader = new YamlFileLoader($container, $fileLocator);
22 22
         $loader->load('rabbitmq.yml');
23 23
 
Please login to merge, or discard this patch.
Rpc/RpcClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function onResponse(AMQPMessage $rep)
32 32
     {
33
-        if($rep->get('correlation_id') == $this->correlationId) {
33
+        if ($rep->get('correlation_id') == $this->correlationId) {
34 34
             $this->response = $rep->body;
35 35
         }
36 36
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     public function call()
42 42
     {
43
-        list($callbackQueue, ,) = $this->getChannel()->queue_declare(
43
+        list($callbackQueue,,) = $this->getChannel()->queue_declare(
44 44
             '', false, false, true, false
45 45
         );
46 46
         $this->callbackQueue = $callbackQueue;
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         );
61 61
         $this->getChannel()->basic_publish($msg, '', $this->getQueueName());
62 62
 
63
-        while(!$this->response) {
63
+        while (!$this->response) {
64 64
             $this->getChannel()->wait();
65 65
         }
66 66
         return $this->response;
Please login to merge, or discard this patch.
Tests/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
 
16 16
     public function registerContainerConfiguration(LoaderInterface $loader)
17 17
     {
18
-        $loader->load(__DIR__ . '/config/config.yml');
18
+        $loader->load(__DIR__.'/config/config.yml');
19 19
     }
20 20
 }
21 21
\ No newline at end of file
Please login to merge, or discard this patch.
Routing/MethodCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function remove($name)
50 50
     {
51
-        foreach ((array) $name as $n) {
51
+        foreach ((array)$name as $n) {
52 52
             unset($this->methods[$n]);
53 53
         }
54 54
     }
Please login to merge, or discard this patch.
Routing/Matcher/MethodMatcher.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.
Routing/Method.php 2 patches
Doc Comments   +6 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])) {
@@ -175,6 +178,9 @@  discard block
 block discarded – undo
175 178
         return array_key_exists($name, $this->defaults);
176 179
     }
177 180
 
181
+    /**
182
+     * @param string $name
183
+     */
178 184
     public function setDefault($name, $default)
179 185
     {
180 186
         $this->defaults[$name] = $default;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         $this->setDefaults($data['defaults']);
42 42
 
43 43
         if (isset($data['compiled'])) {
44
-            $this->compiled =$data['compiled'];
44
+            $this->compiled = $data['compiled'];
45 45
         }
46 46
     }
47 47
 
Please login to merge, or discard this patch.
Routing/MethodRouter.php 2 patches
Doc Comments   +10 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
         $this->loader = $loader;
@@ -54,6 +57,9 @@  discard block
 block discarded – undo
54 57
         }
55 58
     }
56 59
 
60
+    /**
61
+     * @param string $key
62
+     */
57 63
     public function setOption($key, $value)
58 64
     {
59 65
         if (!array_key_exists($key, $this->options)) {
@@ -63,6 +69,9 @@  discard block
 block discarded – undo
63 69
         $this->options[$key] = $value;
64 70
     }
65 71
 
72
+    /**
73
+     * @param string $key
74
+     */
66 75
     public function getOption($key)
67 76
     {
68 77
         if (!array_key_exists($key, $this->options)) {
@@ -122,6 +131,7 @@  discard block
 block discarded – undo
122 131
 
123 132
     /**
124 133
      * {@inheritdoc}
134
+     * @param string $pathinfo
125 135
      */
126 136
     public function match($pathinfo)
127 137
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
         $that = $this;
148 148
 
149 149
         $cache = $this->getConfigCacheFactory()->cache($this->options['cache_dir'].'/'.$class.'.php',
150
-            function (ConfigCacheInterface $cache) use ($that, $class) {
150
+            function(ConfigCacheInterface $cache) use ($that, $class) {
151 151
                 $dumper = $that->getMatcherDumperInstance();
152 152
 
153 153
                 $options = array(
Please login to merge, or discard this patch.