Skip to content

Commit eb9b98f

Browse files
committed
More CS Fixes
1 parent c636012 commit eb9b98f

File tree

4 files changed

+20
-20
lines changed

4 files changed

+20
-20
lines changed

AmqpConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ public function reject(Message $message, bool $requeue = false): void
130130

131131
$this->getExtQueue()->reject(
132132
$message->getDeliveryTag(),
133-
$requeue ? AMQP_REQUEUE : AMQP_NOPARAM
133+
$requeue ? \AMQP_REQUEUE : \AMQP_NOPARAM
134134
);
135135
}
136136

AmqpContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function unbind(InteropAmqpBind $bind): void
177177
public function createTemporaryQueue(): Queue
178178
{
179179
$extQueue = new \AMQPQueue($this->getExtChannel());
180-
$extQueue->setFlags(AMQP_EXCLUSIVE);
180+
$extQueue->setFlags(\AMQP_EXCLUSIVE);
181181

182182
$extQueue->declareQueue();
183183

AmqpProducer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function doSend(AmqpDestination $destination, AmqpMessage $message): voi
146146
} else {
147147
/** @var AmqpQueue $destination */
148148
$amqpExchange = new \AMQPExchange($this->amqpChannel);
149-
$amqpExchange->setType(AMQP_EX_TYPE_DIRECT);
149+
$amqpExchange->setType(\AMQP_EX_TYPE_DIRECT);
150150
$amqpExchange->setName('');
151151

152152
$amqpExchange->publish(

Flags.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,86 +12,86 @@ class Flags
1212
{
1313
public static function convertMessageFlags(int $interop): int
1414
{
15-
$flags = AMQP_NOPARAM;
15+
$flags = \AMQP_NOPARAM;
1616

1717
if ($interop & InteropAmqpMessage::FLAG_MANDATORY) {
18-
$flags |= AMQP_MANDATORY;
18+
$flags |= \AMQP_MANDATORY;
1919
}
2020

2121
if ($interop & InteropAmqpMessage::FLAG_IMMEDIATE) {
22-
$flags |= AMQP_IMMEDIATE;
22+
$flags |= \AMQP_IMMEDIATE;
2323
}
2424

2525
return $flags;
2626
}
2727

2828
public static function convertTopicFlags(int $interop): int
2929
{
30-
$flags = AMQP_NOPARAM;
30+
$flags = \AMQP_NOPARAM;
3131

3232
$flags |= static::convertDestinationFlags($interop);
3333

3434
if ($interop & InteropAmqpTopic::FLAG_INTERNAL) {
35-
$flags |= AMQP_INTERNAL;
35+
$flags |= \AMQP_INTERNAL;
3636
}
3737

3838
return $flags;
3939
}
4040

4141
public static function convertQueueFlags(int $interop): int
4242
{
43-
$flags = AMQP_NOPARAM;
43+
$flags = \AMQP_NOPARAM;
4444

4545
$flags |= static::convertDestinationFlags($interop);
4646

4747
if ($interop & InteropAmqpQueue::FLAG_EXCLUSIVE) {
48-
$flags |= AMQP_EXCLUSIVE;
48+
$flags |= \AMQP_EXCLUSIVE;
4949
}
5050

5151
return $flags;
5252
}
5353

5454
public static function convertDestinationFlags(int $interop): int
5555
{
56-
$flags = AMQP_NOPARAM;
56+
$flags = \AMQP_NOPARAM;
5757

5858
if ($interop & InteropAmqpDestination::FLAG_PASSIVE) {
59-
$flags |= AMQP_PASSIVE;
59+
$flags |= \AMQP_PASSIVE;
6060
}
6161

6262
if ($interop & InteropAmqpDestination::FLAG_DURABLE) {
63-
$flags |= AMQP_DURABLE;
63+
$flags |= \AMQP_DURABLE;
6464
}
6565

6666
if ($interop & InteropAmqpDestination::FLAG_AUTODELETE) {
67-
$flags |= AMQP_AUTODELETE;
67+
$flags |= \AMQP_AUTODELETE;
6868
}
6969

7070
if ($interop & InteropAmqpDestination::FLAG_NOWAIT) {
71-
$flags |= AMQP_NOWAIT;
71+
$flags |= \AMQP_NOWAIT;
7272
}
7373

7474
return $flags;
7575
}
7676

7777
public static function convertConsumerFlags(int $interop): int
7878
{
79-
$flags = AMQP_NOPARAM;
79+
$flags = \AMQP_NOPARAM;
8080

8181
if ($interop & InteropAmqpConsumer::FLAG_NOLOCAL) {
82-
$flags |= AMQP_NOLOCAL;
82+
$flags |= \AMQP_NOLOCAL;
8383
}
8484

8585
if ($interop & InteropAmqpConsumer::FLAG_NOACK) {
86-
$flags |= AMQP_AUTOACK;
86+
$flags |= \AMQP_AUTOACK;
8787
}
8888

8989
if ($interop & InteropAmqpConsumer::FLAG_EXCLUSIVE) {
90-
$flags |= AMQP_EXCLUSIVE;
90+
$flags |= \AMQP_EXCLUSIVE;
9191
}
9292

9393
if ($interop & InteropAmqpConsumer::FLAG_NOWAIT) {
94-
$flags |= AMQP_NOWAIT;
94+
$flags |= \AMQP_NOWAIT;
9595
}
9696

9797
return $flags;

0 commit comments

Comments
 (0)