Skip to content

Commit b0948f2

Browse files
committed
CS Fixes
1 parent 0d5b9a8 commit b0948f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/bootstrap/ProfilerContext.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public function thereShouldBeAPublishedMercureUpdatePublished(int $count)
8282
if (\count($messageObjects) !== $count) {
8383
throw new ExpectationException(sprintf('%d updates were published but %d were expected', \count($messageObjects), $count), $this->minkContext->getSession()->getDriver());
8484
}
85+
8586
return $messageObjects;
8687
}
8788

src/Mercure/MercureResourcePublisher.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
use Symfony\Component\Mercure\HubRegistry;
3535
use Symfony\Component\Mercure\Update;
3636
use Symfony\Component\Messenger\MessageBusInterface;
37-
use Symfony\Component\Serializer\Encoder\CsvEncoder;
3837
use Symfony\Component\Serializer\SerializerAwareInterface;
3938
use Symfony\Component\Serializer\SerializerAwareTrait;
4039

@@ -245,7 +244,7 @@ private function publishUpdate(object $object, array $objectData, string $type):
245244
$request = new Request();
246245
$attributes = [
247246
'operation' => $this->resourceMetadataFactory->create($resourceClass)->getOperation(),
248-
'resource_class' => $resourceClass
247+
'resource_class' => $resourceClass,
249248
];
250249
$baseContext = $this->serializerContextBuilder->createFromRequest($request, true, $attributes);
251250
$context = array_merge($baseContext, $options['normalization_context'] ?? []);

0 commit comments

Comments
 (0)