Skip to content

Commit d4f8fac

Browse files
committed
Fix phpcs
1 parent 7da4666 commit d4f8fac

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

pkg/dbal/DbalProducer.php

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ class DbalProducer implements Producer
3535
*/
3636
private $context;
3737

38-
/**
39-
* @param DbalContext $context
40-
*/
4138
public function __construct(DbalContext $context)
4239
{
4340
$this->context = $context;
@@ -85,10 +82,7 @@ public function send(Destination $destination, Message $message): void
8582
$delay = $message->getDeliveryDelay();
8683
if ($delay) {
8784
if (!is_int($delay)) {
88-
throw new \LogicException(sprintf(
89-
'Delay must be integer but got: "%s"',
90-
is_object($delay) ? get_class($delay) : gettype($delay)
91-
));
85+
throw new \LogicException(sprintf('Delay must be integer but got: "%s"', is_object($delay) ? get_class($delay) : gettype($delay)));
9286
}
9387

9488
if ($delay <= 0) {
@@ -101,10 +95,7 @@ public function send(Destination $destination, Message $message): void
10195
$timeToLive = $message->getTimeToLive();
10296
if ($timeToLive) {
10397
if (!is_int($timeToLive)) {
104-
throw new \LogicException(sprintf(
105-
'TimeToLive must be integer but got: "%s"',
106-
is_object($timeToLive) ? get_class($timeToLive) : gettype($timeToLive)
107-
));
98+
throw new \LogicException(sprintf('TimeToLive must be integer but got: "%s"', is_object($timeToLive) ? get_class($timeToLive) : gettype($timeToLive)));
10899
}
109100

110101
if ($timeToLive <= 0) {

0 commit comments

Comments
 (0)