Completed
Push — master ( 70c29b...7d604a )
by Tomasz
06:29
created
src/Gendoria/CommandQueueRabbitMqDriverBundle/Worker/RabbitMqWorker.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,18 +124,18 @@
 block discarded – undo
124 124
         $triesNum = 10;
125 125
         $headers = $msg->get('application_headers')->getNativeData();
126 126
         $retryCount = $this->getRetryCount($headers);
127
-        $retry = ($retryCount < $triesNum - 1);
128
-        $resheduleInS = (5 * $retryCount + 10);
127
+        $retry = ($retryCount < $triesNum-1);
128
+        $resheduleInS = (5 * $retryCount+10);
129 129
 
130 130
         $this->logger->error(
131 131
             sprintf(
132
-                'Error while executing processor (retry count: %d - %s): %s', $retryCount + 1, $retry ? 'retry in ' . $resheduleInS . 's' : 'reject', $e->getMessage()
132
+                'Error while executing processor (retry count: %d - %s): %s', $retryCount+1, $retry ? 'retry in '.$resheduleInS.'s' : 'reject', $e->getMessage()
133 133
             ), array($e->getTraceAsString(), $this, $processor)
134 134
         );
135 135
 
136 136
         if ($retry) {
137 137
             $this->rescheduleProducer->publish(
138
-                $msg->body, (string)$msg->delivery_info['routing_key'], array_merge(
138
+                $msg->body, (string) $msg->delivery_info['routing_key'], array_merge(
139 139
                     $msg->get_properties(), array('expiration' => $resheduleInS * 1000)
140 140
                 )
141 141
             );
Please login to merge, or discard this patch.
CommandQueueRabbitMqDriverBundle/Listener/ClearEntityManagersListener.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Gendoria\CommandQueueRabbitMqDriverBundle\Listener;
4 4
 
5 5
 use Doctrine\Common\Persistence\ManagerRegistry;
6
-use Doctrine\ORM\EntityManager;
7 6
 use Gendoria\CommandQueueBundle\Event\QueueBeforeTranslateEvent;
8 7
 use Gendoria\CommandQueueBundle\Event\QueueEvents;
9 8
 use Gendoria\CommandQueueBundle\Event\QueueProcessEvent;
Please login to merge, or discard this patch.