Completed
Push — master ( 10cc19...1f73a4 )
by Daniel
09:07 queued 06:28
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/RpcClient.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     }
107 107
 
108 108
     /**
109
-     * @return ConnectionManagerInterface
109
+     * @return \PhpAmqpLib\Connection\AMQPStreamConnection
110 110
      */
111 111
     public function getConnection()
112 112
     {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         $this->queue = $queueName;
23 23
         $this->connection = $manager->getConnection();
24 24
         $this->channel = $this->connection->channel();
25
-        list($callbackQueue, ,) = $this->channel->queue_declare(
25
+        list($callbackQueue,,) = $this->channel->queue_declare(
26 26
             '', false, false, true, false
27 27
         );
28 28
         $this->callbackQueue = $callbackQueue;
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function onResponse(AMQPMessage $rep)
39 39
     {
40
-        if($rep->get('correlation_id') == $this->correlationId) {
40
+        if ($rep->get('correlation_id') == $this->correlationId) {
41 41
             $this->response = $rep->body;
42 42
         }
43 43
     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         );
60 60
         $this->getChannel()->basic_publish($msg, '', $this->getQueueName());
61 61
 
62
-        while(!$this->response) {
62
+        while (!$this->response) {
63 63
             $this->getChannel()->wait();
64 64
         }
65 65
         return $this->response;
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.
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.yml');
18
+        $loader->load(__DIR__.'/config.yml');
19 19
     }
20 20
 }
21 21
\ No newline at end of file
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.
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.
Rpc/RpcBaseService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function createCallback()
36 36
     {
37
-        $callback = function (AMQPMessage $request) {
37
+        $callback = function(AMQPMessage $request) {
38 38
             $this->content = new AMQPMessage(
39 39
                 $request->body,
40 40
                 ['correlation_id' => $request->get('correlation_id')]
Please login to merge, or discard this patch.