@@ -235,8 +235,8 @@ discard block |
||
235 | 235 | $this->logger->critical(sprintf( |
236 | 236 | "Stopped consuming: %s in %s:%d", |
237 | 237 | $e->getMessage(), |
238 | - (string)$e->getFile(), |
|
239 | - (int)$e->getLine() |
|
238 | + (string) $e->getFile(), |
|
239 | + (int) $e->getLine() |
|
240 | 240 | )); |
241 | 241 | return 1; |
242 | 242 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | "Stopped consumer", |
265 | 265 | [ |
266 | 266 | 'limit' => 'memory_limit', |
267 | - 'value' => (int)round(memory_get_peak_usage(true) / 1048576, 2) |
|
267 | + 'value' => (int) round(memory_get_peak_usage(true) / 1048576, 2) |
|
268 | 268 | ] |
269 | 269 | ); |
270 | 270 | return true; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | if ($this->getMessageProcessor()->getProcessedMessages() >= $this->limitMessageCount) { |
274 | 274 | $this->logger->debug( |
275 | 275 | "Stopped consumer", |
276 | - ['limit' => 'message_count', 'value' => (int)$this->getMessageProcessor()->getProcessedMessages()] |
|
276 | + ['limit' => 'message_count', 'value' => (int) $this->getMessageProcessor()->getProcessedMessages()] |
|
277 | 277 | ); |
278 | 278 | return true; |
279 | 279 | } |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | try { |
290 | 290 | $this->getChannel()->basic_cancel($this->getConsumerTag(), false, true); |
291 | 291 | } catch (\Throwable $e) { |
292 | - $this->logger->notice("Got " . $e->getMessage() . " of type " . get_class($e)); |
|
292 | + $this->logger->notice("Got ".$e->getMessage()." of type ".get_class($e)); |
|
293 | 293 | } |
294 | 294 | } |
295 | 295 | |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | private function registerShutdownHandler() |
341 | 341 | { |
342 | 342 | $consumer = $this; |
343 | - register_shutdown_function(function () use ($consumer) { |
|
343 | + register_shutdown_function(function() use ($consumer) { |
|
344 | 344 | $consumer->stopConsuming(); |
345 | 345 | }); |
346 | 346 | } |
@@ -410,8 +410,8 @@ discard block |
||
410 | 410 | sprintf( |
411 | 411 | "Got %s from %s in %d", |
412 | 412 | $e->getMessage(), |
413 | - (string)$e->getFile(), |
|
414 | - (int)$e->getLine() |
|
413 | + (string) $e->getFile(), |
|
414 | + (int) $e->getLine() |
|
415 | 415 | ) |
416 | 416 | ); |
417 | 417 | // let the exception slide, the processor should handle |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | 'lazy' => true, |
29 | 29 | |
30 | 30 | # More info about timeouts can be found on https://www.rabbitmq.com/networking.html |
31 | - 'read_write_timeout' => 16, // default timeout for writing/reading (in seconds) |
|
31 | + 'read_write_timeout' => 16, // default timeout for writing/reading (in seconds) |
|
32 | 32 | 'connect_timeout' => 10, |
33 | 33 | 'heartbeat' => 8 |
34 | 34 | ]; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | throw new \InvalidArgumentException( |
65 | 65 | sprintf( |
66 | 66 | "Cannot create connection %s, received unknown arguments: %s!", |
67 | - (string)$aliasName, |
|
67 | + (string) $aliasName, |
|
68 | 68 | implode(', ', $diff) |
69 | 69 | ) |
70 | 70 | ); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | { |
87 | 87 | $this->aliasName = $aliasName; |
88 | 88 | $this->connectionDetails = $connectionDetails; |
89 | - if (isset($connectionDetails['lazy']) && $connectionDetails['lazy'] === false) { |
|
89 | + if (isset($connectionDetails['lazy']) && $connectionDetails['lazy'] === false) { |
|
90 | 90 | // dummy call |
91 | 91 | $this->getConnection(); |
92 | 92 | } |