Skip to content

Commit ac98430

Browse files
committed
small reorder
1 parent cc219d0 commit ac98430

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Queue/RabbitMQQueue.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,6 @@ public function reject(RabbitMQJob $job, bool $requeue = false): void
345345
$this->channel->basic_reject($job->getRabbitMQMessage()->getDeliveryTag(), $requeue);
346346
}
347347

348-
/**
349-
* @throws Exception
350-
*/
351-
public function close(): void
352-
{
353-
$this->connection->close();
354-
}
355-
356348
protected function createMessage($payload, int $attempts = 0): array
357349
{
358350
$properties = [
@@ -394,4 +386,12 @@ protected function getRandomId(): string
394386
{
395387
return Str::random(32);
396388
}
389+
390+
/**
391+
* @throws Exception
392+
*/
393+
public function close(): void
394+
{
395+
$this->connection->close();
396+
}
397397
}

0 commit comments

Comments
 (0)