Skip to content

Commit 0ac92a9

Browse files
author
Argyris Margaritis
committed
Get rid of array_push().
1 parent cd5f6a9 commit 0ac92a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/VladimirYuldashev/LaravelQueueRabbitMQ/Queue/RabbitMQQueue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function declareQueue($name)
149149

150150
// if the current queue has been already declared, skip this
151151
if (!in_array($name, $this->declaredQueues)) {
152-
array_push($this->declaredQueues, $name);
152+
$this->declaredQueues[]= $name;
153153
} else {
154154
return $name;
155155
}
@@ -193,7 +193,7 @@ public function declareDelayedQueue($destination, $delay)
193193

194194
// if the current delayed queue has been already declared, skip this
195195
if (!in_array($name, $this->declaredDelayedQueues)) {
196-
array_push($this->declaredDelayedQueues, $name);
196+
$this->declaredDelayedQueues[]= $name;
197197
} else {
198198
return $name;
199199
}

0 commit comments

Comments
 (0)