Skip to content

Commit

Permalink
bot: fix cs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
nikophil authored and kbond committed Jan 8, 2024
1 parent 9231c47 commit 71c858e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/EnvelopeCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ final public function assertContains(string $messageClass, ?int $times = null):
Assert::that($messages)->hasCount(
$times,
'Expected to find "{message}" {expected} times but found {actual} times.',
['message' => $messageClass]
['message' => $messageClass],
);

return $this;
Expand All @@ -80,7 +80,7 @@ final public function assertNotContains(string $messageClass): static
{
Assert::that($this->messages($messageClass))->isEmpty(
'Found message "{message}" but should not.',
['message' => $messageClass]
['message' => $messageClass],
);

return $this;
Expand Down
2 changes: 1 addition & 1 deletion src/Stamp/AvailableAtStamp.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(private \DateTimeImmutable $availableAt)
public static function fromDelayStamp(DelayStamp $delayStamp, \DateTimeImmutable $now): self
{
return new self(
$now->modify(\sprintf('+%d seconds', $delayStamp->getDelay() / 1000))
$now->modify(\sprintf('+%d seconds', $delayStamp->getDelay() / 1000)),
);
}

Expand Down
4 changes: 2 additions & 2 deletions src/TestEnvelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function assertHasStamp(string $class): self
{
Assert::that($this->envelope->all($class))->isNotEmpty(
'Expected to find stamp "{stamp}" but did not.',
['stamp' => $class]
['stamp' => $class],
);

return $this;
Expand All @@ -59,7 +59,7 @@ public function assertNotHasStamp(string $class): self
{
Assert::that($this->envelope->all($class))->isEmpty(
'Expected to not find "{stamp}" but did.',
['stamp' => $class]
['stamp' => $class],
);

return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Transport/TestTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function process(int $number = -1): self
}

++$processCount;
}
},
);

if ($number > 0) {
Expand All @@ -182,7 +182,7 @@ public function process(int $number = -1): self
WorkerMessageFailedEvent::class,
$listeners[WorkerMessageFailedEvent::class] = static function(WorkerMessageFailedEvent $event) {
throw $event->getThrowable();
}
},
);
}

Expand Down Expand Up @@ -307,7 +307,7 @@ public function send($what): Envelope
if ($this->shouldTestSerialization()) {
Assert::try(
fn() => $this->serializer->decode($this->serializer->encode($envelope)),
'A problem occurred in the serialization process.'
'A problem occurred in the serialization process.',
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/InteractsWithMessengerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ public function messenger_worker_events_are_dispatched_when_processing(): void
WorkerMessageHandledEvent::class,
static function(WorkerMessageHandledEvent $event) use (&$messages) {
$messages[] = $event->getEnvelope()->getMessage();
}
},
);

self::getContainer()->get(MessageBusInterface::class)->dispatch($message = new MessageA());
Expand Down

0 comments on commit 71c858e

Please sign in to comment.