Completed
Pull Request — master (#283)
by Maksim
01:44
created
src/Command/ConsumerHandlerCommand.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     }
131 131
 
132 132
     /**
133
-     * @param $memory
133
+     * @param integer $memory
134 134
      *
135 135
      * @return string
136 136
      */
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
     }
183 183
 
184 184
     /**
185
-     * @return EventDispatcherInterface
185
+     * @return \Symfony\Component\EventDispatcher\EventDispatcherInterface
186 186
      */
187 187
     private function getNotificationDispatcher()
188 188
     {
Please login to merge, or discard this patch.
src/Iterator/MessageManagerMessageIterator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
      *
148 148
      * @param array $types
149 149
      *
150
-     * @return mixed
150
+     * @return MessageInterface[]
151 151
      */
152 152
     protected function findNextMessages($types)
153 153
     {
Please login to merge, or discard this patch.
tests/Entity/Message.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -16,6 +16,9 @@
 block discarded – undo
16 16
 
17 17
 class Message extends BaseMessage
18 18
 {
19
+    /**
20
+     * @param integer $id
21
+     */
19 22
     public function setId($id)
20 23
     {
21 24
         $this->id = $id;
Please login to merge, or discard this patch.
tests/Entity/MessageManagerTest.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -58,6 +58,7 @@
 block discarded – undo
58 58
     }
59 59
 
60 60
     /**
61
+     * @param \Closure $qbCallback
61 62
      * @return \Sonata\NotificationBundle\Entity\MessageManager
62 63
      */
63 64
     protected function getMessageManager($qbCallback)
Please login to merge, or discard this patch.
tests/Backend/AMQPBackendTest.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -298,6 +298,10 @@
 block discarded – undo
298 298
     }
299 299
 
300 300
     /**
301
+     * @param string $deadLetterExchange
302
+     * @param string $deadLetterRoutingKey
303
+     * @param integer $ttl
304
+     * @param integer $prefetchCount
301 305
      * @return AMQPBackend
302 306
      */
303 307
     protected function buildBackend($recover = false, $deadLetterExchange = null, $deadLetterRoutingKey = null, $ttl = null, $prefetchCount = null)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
 use Interop\Amqp\Impl\AmqpBind as ImplAmqpBind;
21 21
 use Interop\Amqp\Impl\AmqpQueue as ImplAmqpQueue;
22 22
 use Interop\Amqp\Impl\AmqpTopic as ImplAmqpTopic;
23
-use PhpAmqpLib\Channel\AMQPChannel;
24 23
 use PHPUnit\Framework\TestCase;
25 24
 use Sonata\NotificationBundle\Backend\AMQPBackend;
26 25
 use Sonata\NotificationBundle\Backend\AMQPBackendDispatcher;
Please login to merge, or discard this patch.