Skip to content

Commit

Permalink
Fix CS (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Jun 20, 2022
1 parent de02424 commit 79496cb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions tests/Behat/Context/Messenger/MessengerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public function iConsumeTheMessages(): void
if (!$message instanceof ItemImport) {
continue;
}

try {
$this->itemImportHandler->__invoke($message);
} catch (Throwable $throwable) {
Expand All @@ -147,6 +148,7 @@ private function getEnvelopesByImporter(string $importer): array
return array_filter($this->transport->get(), static function (Envelope $envelope) use ($importer): bool {
/** @var ItemImport|mixed $message */
$message = $envelope->getMessage();

return $message instanceof ItemImport && $message->getAkeneoEntity() === $importer;
});
}
Expand All @@ -156,6 +158,7 @@ private function getEnvelopeByImporterAndIdentifier(string $importer, string $id
$envelopes = array_filter($this->transport->get(), static function (Envelope $envelope) use ($importer, $identifier): bool {
/** @var ItemImport|mixed $message */
$message = $envelope->getMessage();

return $message instanceof ItemImport && $message->getAkeneoEntity() === $importer && $message->getAkeneoIdentifier() === $identifier;
});
$envelope = reset($envelopes);
Expand Down
1 change: 0 additions & 1 deletion tests/Behat/Context/Setup/QueueContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
use Symfony\Component\Messenger\MessageBusInterface;
use Webgriffe\SyliusAkeneoPlugin\Entity\QueueItemInterface;
use Webgriffe\SyliusAkeneoPlugin\Message\ItemImport;
use Webgriffe\SyliusAkeneoPlugin\Repository\QueueItemRepositoryInterface;

final class QueueContext implements Context
{
Expand Down
1 change: 0 additions & 1 deletion tests/Behat/Context/Transform/QueueItemContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use Behat\Behat\Context\Context;
use Webgriffe\SyliusAkeneoPlugin\Entity\QueueItemInterface;
use Webgriffe\SyliusAkeneoPlugin\Repository\QueueItemRepositoryInterface;
use Webmozart\Assert\Assert;

final class QueueItemContext implements Context
Expand Down

0 comments on commit 79496cb

Please sign in to comment.