Skip to content

Commit

Permalink
Fix CS (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Aug 29, 2022
1 parent 8657432 commit 8128916
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Command/EnqueueCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
foreach ($identifiers as $identifier) {
$itemImport = new ItemImport(
$importer->getAkeneoEntity(),
$identifier
$identifier,
);
$this->messageBus->dispatch($itemImport);
$output->writeln(
Expand Down
2 changes: 1 addition & 1 deletion src/Controller/ProductEnqueueController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function enqueueAction(int $productId): Response

$queueItem = new ItemImport(
'Product',
$productVariantCode
$productVariantCode,
);
$this->messageBus->dispatch($queueItem);

Expand Down
2 changes: 1 addition & 1 deletion src/Message/ItemImport.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ final class ItemImport
{
public function __construct(
private string $akeneoEntity,
private string $akeneoIdentifier
private string $akeneoIdentifier,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Cli/EnqueueCommandContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class EnqueueCommandContext implements Context
public function __construct(
private KernelInterface $kernel,
private EnqueueCommand $enqueueCommand,
private SharedStorageInterface $sharedStorage
private SharedStorageInterface $sharedStorage,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Cli/ReconcileCommandContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class ReconcileCommandContext implements Context
{
public function __construct(
private KernelInterface $kernel,
private ReconcileCommand $reconcileCommand
private ReconcileCommand $reconcileCommand,
) {
}

Expand Down
5 changes: 3 additions & 2 deletions tests/Behat/Context/Messenger/MessengerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function theQueueItemHasAnErrorMessageContaining(string $identifier, stri
*/
public function theQueueItemWithIdentifierForTheImporterShouldNotBeInTheAkeneoQueue(string $identifier, string $importer): void
{
Assert::null($this->getEnvelopeByImporterAndIdentifier($importer, $identifier),
Assert::null(
$this->getEnvelopeByImporterAndIdentifier($importer, $identifier),
);
}

Expand All @@ -48,7 +49,7 @@ public function theQueueItemWithIdentifierForTheImporterShouldBeInTheAkeneoQueue
{
Assert::isInstanceOf(
$this->getEnvelopeByImporterAndIdentifier($importer, $identifier)->getMessage(),
ItemImport::class
ItemImport::class,
);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Ui/Admin/ManagingProductsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class ManagingProductsContext implements Context
public function __construct(
private IndexPageInterface $indexPage,
private JavaScriptTestHelperInterface $testHelper,
private NotificationCheckerInterface $notificationChecker
private NotificationCheckerInterface $notificationChecker,
) {
}

Expand Down

0 comments on commit 8128916

Please sign in to comment.