File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,6 @@ protected function maybeStopConsumer()
9090
9191 if ($ this ->forceStop || ($ this ->consumed == $ this ->target && $ this ->target > 0 )) {
9292 $ this ->stopConsuming ();
93- } else {
94- return ;
9593 }
9694 }
9795
Original file line number Diff line number Diff line change @@ -121,13 +121,13 @@ public function consume()
121121 $ this ->batchConsume ();
122122 }
123123
124- $ timeoutWanted = ( $ isConsuming) ? $ this ->getTimeoutWait () : $ this ->getIdleTimeout ();
124+ $ timeoutWanted = $ isConsuming ? $ this ->getTimeoutWait () : $ this ->getIdleTimeout ();
125125 }
126126 }
127127
128128 public function batchConsume ()
129129 {
130- if ($ this ->batchCounter == 0 ) {
130+ if ($ this ->batchCounter === 0 ) {
131131 return ;
132132 }
133133
@@ -387,8 +387,6 @@ protected function maybeStopConsumer()
387387
388388 if ($ this ->forceStop ) {
389389 $ this ->stopConsuming ();
390- } else {
391- return ;
392390 }
393391 }
394392
You can’t perform that action at this time.
0 commit comments