Passed
Pull Request — master (#42)
by Nicolas
09:50 queued 06:39
created
features/bootstrap/ConsumeContext.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -103,6 +103,9 @@  discard block
 block discarded – undo
103 103
         $this->theMessageIs(self::JSON_ROUTING_KEY, ContentType::JSON);
104 104
     }
105 105
     
106
+    /**
107
+     * @param string $routingKey
108
+     */
106 109
     private function theMessageIs($routingKey, $contentType)
107 110
     {
108 111
         $firstMessage = $this->consumedMessages[0];
@@ -145,6 +148,9 @@  discard block
 block discarded – undo
145 148
         $this->oneOfTheMessagesIs(ContentType::JSON, self::JSON_ROUTING_KEY);
146 149
     }
147 150
     
151
+    /**
152
+     * @param string $routingKey
153
+     */
148 154
     private function oneOfTheMessagesIs($contentType, $routingKey)
149 155
     {
150 156
         $found = null;
Please login to merge, or discard this patch.
features/bootstrap/SendContext.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -123,6 +123,9 @@  discard block
 block discarded – undo
123 123
         \PHPUnit_Framework_Assert::assertSame(ContentType::TEXT, $headers[Gzip::HEADER_COMPRESSION_CONTENT_TYPE]);
124 124
     }
125 125
     
126
+    /**
127
+     * @param string $routingKey
128
+     */
126 129
     private function theMessageInQueueContains($routingKey, $content, $queueName, $contentType)
127 130
     {
128 131
         $messages = $this->api->getMessagesFromQueue($this->vhost(), $queueName);
@@ -139,6 +142,9 @@  discard block
 block discarded – undo
139 142
         return $message;
140 143
     }
141 144
     
145
+    /**
146
+     * @param integer $expectedNbMessages
147
+     */
142 148
     private function assertMessagesInQueue($queue, $expectedNbMessages, $waitingSeconds = 11)
143 149
     {
144 150
         $nbMessages = $this->nbMessagesInQueue($queue);
Please login to merge, or discard this patch.
src/Clients/Pecl.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@
 block discarded – undo
69 69
         }
70 70
     }
71 71
 
72
+    /**
73
+     * @param string $exchangeName
74
+     */
72 75
     public function publish($exchangeName, WritableMessage $message)
73 76
     {
74 77
         if($message->isChunked())
Please login to merge, or discard this patch.
src/Messages/Bodies/StreamedFile.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-     * @return \Generator|string
46
+     * @return \Generator
47 47
      */
48 48
     public function asTransported()
49 49
     {
Please login to merge, or discard this patch.