Completed
Pull Request — master (#1)
by Daniel
12:19
created
Transport/Rpc/RpcQueueCallback.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function toClosure()
31 31
     {
32
-        return function (AMQPMessage $message) {
32
+        return function(AMQPMessage $message) {
33 33
             $response = $this->getQueueService()->handle($message);
34 34
 
35 35
             $amqpResponse = new CmobiAMQPMessage(
Please login to merge, or discard this patch.
Transport/PubSub/SubscriberQueueCallback.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
      */
29 29
     public function toClosure()
30 30
     {
31
-        return function (AMQPMessage $message) {
31
+        return function(AMQPMessage $message) {
32 32
             $this->getQueueService()->handle($message);
33 33
         };
34 34
     }
Please login to merge, or discard this patch.
Transport/PubSub/ExchangeType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,6 +5,6 @@
 block discarded – undo
5 5
 class ExchangeType
6 6
 {
7 7
     const FANOUT = 'fanout';
8
-    const DIRECT  = 'direct';
8
+    const DIRECT = 'direct';
9 9
     const TOPIC = 'topic';
10 10
 }
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
Transport/Worker/WorkerQueueCallback.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
      */
29 29
     public function toClosure()
30 30
     {
31
-        return function (AMQPMessage $message) {
31
+        return function(AMQPMessage $message) {
32 32
             $this->getQueueService()->handle($message);
33 33
 
34 34
             $message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag']);
Please login to merge, or discard this patch.
Tests/Transport/Rpc/RpcServerBuilderTest.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
             ->disableOriginalConstructor()
49 49
             ->getMock();
50 50
 
51
-        $channelMock =  $this->getMockBuilder(CmobiAMQPChannel::class)
51
+        $channelMock = $this->getMockBuilder(CmobiAMQPChannel::class)
52 52
             ->disableOriginalConstructor()
53 53
             ->getMock();
54 54
         $channelMock->expects($this->any())
Please login to merge, or discard this patch.
Tests/Transport/PubSub/SubscriberBuilderTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     {
46 46
         $subscriberBuilder = new SubscriberBuilder(
47 47
             'test_exchange',
48
-             ExchangeType::FANOUT,
48
+                ExchangeType::FANOUT,
49 49
             $this->getConnectionManagerMock(),
50 50
             $this->getLoggerMock(),
51 51
             []
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             ->disableOriginalConstructor()
77 77
             ->getMock();
78 78
 
79
-        $channelMock =  $this->getMockBuilder(CmobiAMQPChannel::class)
79
+        $channelMock = $this->getMockBuilder(CmobiAMQPChannel::class)
80 80
             ->disableOriginalConstructor()
81 81
             ->getMock();
82 82
         $channelMock->expects($this->any())
Please login to merge, or discard this patch.
Tests/Transport/Worker/WorkerBuilderTest.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
             ->disableOriginalConstructor()
39 39
             ->getMock();
40 40
 
41
-        $channelMock =  $this->getMockBuilder(CmobiAMQPChannel::class)
41
+        $channelMock = $this->getMockBuilder(CmobiAMQPChannel::class)
42 42
             ->disableOriginalConstructor()
43 43
             ->getMock();
44 44
         $channelMock->expects($this->any())
Please login to merge, or discard this patch.
Tests/Queue/QueueTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     protected function getCmobiAMQPChannelMock()
47 47
     {
48
-        $channelMock =  $this->getMockBuilder(CmobiAMQPChannel::class)
48
+        $channelMock = $this->getMockBuilder(CmobiAMQPChannel::class)
49 49
             ->disableOriginalConstructor()
50 50
             ->getMock();
51 51
         $channelMock->expects($this->any())
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             ->disableOriginalConstructor()
77 77
             ->getMock();
78 78
         $callbackMock->method('toClosure')
79
-            ->willReturn(function () {});
79
+            ->willReturn(function() {});
80 80
 
81 81
         return $callbackMock;
82 82
     }
Please login to merge, or discard this patch.
Connection/ConnectionManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
     {
21 21
         $factory = $this->getContainer()->get($this->factories['default']);
22 22
 
23
-        if (! is_null($name) && array_key_exists($name, $this->factories)) {
23
+        if (!is_null($name) && array_key_exists($name, $this->factories)) {
24 24
             $factory = $this->getContainer()->get(
25 25
                 $this->factories[$name]
26 26
             );
27 27
         }
28 28
 
29
-        if (! $factory instanceof ConnectionFactory) {
29
+        if (!$factory instanceof ConnectionFactory) {
30 30
             throw new NotFoundAMQPConnectionFactoryException(sprintf('%s: connection not found.', $name));
31 31
         }
32 32
 
Please login to merge, or discard this patch.