Completed
Push — master ( da3d50...debbc0 )
by Tilita
04:01
created
src/Processor/AbstractMessageProcessor.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,10 +40,10 @@
 block discarded – undo
40 40
             $this->logger->error(
41 41
                 sprintf(
42 42
                     "Could not process message, got %s from %s in %d for message: %s",
43
-                    get_class($e) . '-' . $e->getMessage(),
44
-                    (string)$e->getFile(),
45
-                    (int)$e->getLine(),
46
-                    (string)$message->getBody()
43
+                    get_class($e).'-'.$e->getMessage(),
44
+                    (string) $e->getFile(),
45
+                    (int) $e->getLine(),
46
+                    (string) $message->getBody()
47 47
                 )
48 48
             );
49 49
             $message->delivery_info['channel']->basic_nack($message->delivery_info['delivery_tag'], false, true);
Please login to merge, or discard this patch.
src/Entity/QueueEntity.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -235,9 +235,9 @@  discard block
 block discarded – undo
235 235
                 $this->stopConsuming();
236 236
                 $this->logger->notice(sprintf(
237 237
                     "Stopped consuming: %s in %s:%d",
238
-                    get_class($e) . ' - ' . $e->getMessage(),
239
-                    (string)$e->getFile(),
240
-                    (int)$e->getLine()
238
+                    get_class($e).' - '.$e->getMessage(),
239
+                    (string) $e->getFile(),
240
+                    (int) $e->getLine()
241 241
                 ));
242 242
                 return 1;
243 243
             }
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
                 "Stopped consumer",
266 266
                 [
267 267
                     'limit' => 'memory_limit',
268
-                    'value' => (int)round(memory_get_peak_usage(true) / 1048576, 2)
268
+                    'value' => (int) round(memory_get_peak_usage(true) / 1048576, 2)
269 269
                 ]
270 270
             );
271 271
             return true;
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
         if ($this->getMessageProcessor()->getProcessedMessages() >= $this->limitMessageCount) {
275 275
             $this->logger->debug(
276 276
                 "Stopped consumer",
277
-                ['limit' => 'message_count', 'value' => (int)$this->getMessageProcessor()->getProcessedMessages()]
277
+                ['limit' => 'message_count', 'value' => (int) $this->getMessageProcessor()->getProcessedMessages()]
278 278
             );
279 279
             return true;
280 280
         }
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
         try {
291 291
             $this->getChannel()->basic_cancel($this->getConsumerTag(), false, true);
292 292
         } catch (\Throwable $e) {
293
-            $this->logger->notice("Got " . $e->getMessage() . " of type " . get_class($e));
293
+            $this->logger->notice("Got ".$e->getMessage()." of type ".get_class($e));
294 294
         }
295 295
     }
296 296
 
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
     private function registerShutdownHandler()
342 342
     {
343 343
         $consumer = $this;
344
-        register_shutdown_function(function () use ($consumer) {
344
+        register_shutdown_function(function() use ($consumer) {
345 345
             $consumer->stopConsuming();
346 346
         });
347 347
     }
@@ -411,8 +411,8 @@  discard block
 block discarded – undo
411 411
                 sprintf(
412 412
                     "Got %s from %s in %d",
413 413
                     $e->getMessage(),
414
-                    (string)$e->getFile(),
415
-                    (int)$e->getLine()
414
+                    (string) $e->getFile(),
415
+                    (int) $e->getLine()
416 416
                 )
417 417
             );
418 418
             // let the exception slide, the processor should handle
Please login to merge, or discard this patch.