10000 Fix CS · symfony/symfony@3cdf5c4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3cdf5c4

Browse files
committed
Fix CS
1 parent 66b9fef commit 3cdf5c4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Symfony/Component/Messenger/EventListener/SendFailedMessageForRetryListener.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,24 @@ public function onMessageFailed(WorkerMessageFailedEvent $event)
7979
}
8080

8181
/**
82-
* Adds stamps to the envelope by keeping only the First + Last N stamps
82+
* Adds stamps to the envelope by keeping only the First + Last N stamps.
8383
*/
8484
private function withLimitedHistory(Envelope $envelope, StampInterface ...$stamps): Envelope
8585
{
8686
foreach ($stamps as $stamp) {
87-
$history = $envelope->all(get_class($stamp));
87+
$history = $envelope->all(\get_class($stamp));
8888
if (\count($history) < $this->historySize) {
8989
$envelope = $envelope->with($stamp);
9090
continue;
9191
}
9292

93-
$history = \array_merge(
93+
$history = array_merge(
9494
[$history[0]],
9595
\array_slice($history, -$this->historySize + 2),
9696
[$stamp]
9797
);
9898

99-
$envelope = $envelope->withoutAll(get_class($stamp))->with(...$history);
99+
$envelope = $envelope->withoutAll(\get_class($stamp))->with(...$history);
100100
}
101101

102102
return $envelope;

src/Symfony/Component/Messenger/Tests/EventListener/SendFailedMessageForRetryListenerTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public function testEnvelopeIsSentToTransportOnRetry()
8080
public function testEnvelopeKeepOnlyTheLast10Stamps()
8181
{
8282
$exception = new \Exception('no!');
83-
$stamps = \array_merge(
84-
\array_fill(0, 15, new DelayStamp(1)),
85-
\array_fill(0, 3, new RedeliveryStamp(1))
83+
$stamps = array_merge(
84+
array_fill(0, 15, new DelayStamp(1)),
85+
array_fill(0, 3, new RedeliveryStamp(1))
8686
);
8787
$envelope = new Envelope(new \stdClass(), $stamps);
8888

0 commit comments

Comments
 (0)
0