Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zales0123 committed Dec 14, 2024
1 parent 29013a1 commit 567bc0c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 68 deletions.
3 changes: 2 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ parameters:
parallel:
processTimeout: 300.0
reportUnmatchedIgnoredErrors: false
checkMissingIterableValueType: false

excludePaths:
- %currentWorkingDirectory%/DependencyInjection/Configuration.php
Expand All @@ -17,3 +16,5 @@ parameters:
- '/Call to an undefined method Sylius\\Component\\User\\Model\\UserInterface\:\:isAccountNonExpired\(\)\./'
- '/Call to an undefined method Sylius\\Component\\User\\Model\\UserInterface\:\:isAccountNonLocked\(\)\./'
- '/Call to an undefined method Sylius\\Component\\User\\Model\\UserInterface\:\:isCredentialsNonExpired\(\)\./'
-
identifier: missingType.iterableValue
26 changes: 4 additions & 22 deletions src/Command/SynchronizeProductVariantsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,13 @@

class SynchronizeProductVariantsCommand extends BaseSynchronizeCommand
{
/**
* @var EntityManagerInterface
*/
private $entityManager;

/**
* @var ProductVariantMessageProducerInterface
*/
private $productVariantMessageProducer;

/**
* @var ProductVariantRepositoryInterface
*/
private $productVariantRepository;

/** @param ProductVariantRepositoryInterface<ProductVariantInterface> $productVariantRepository */
public function __construct(
EntityManagerInterface $entityManager,
ProductVariantMessageProducerInterface $productVariantMessageProducer,
ProductVariantRepositoryInterface $productVariantRepository
private EntityManagerInterface $entityManager,
private ProductVariantMessageProducerInterface $productVariantMessageProducer,
private ProductVariantRepositoryInterface $productVariantRepository,
) {
parent::__construct($entityManager);

$this->entityManager = $entityManager;
$this->productVariantMessageProducer = $productVariantMessageProducer;
$this->productVariantRepository = $productVariantRepository;
}

protected function configure(): void
Expand Down
26 changes: 4 additions & 22 deletions src/Command/SynchronizeProductsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,13 @@

class SynchronizeProductsCommand extends BaseSynchronizeCommand
{
/**
* @var EntityManagerInterface
*/
private $entityManager;

/**
* @var ProductMessageProducerInterface
*/
private $productMessageProducer;

/**
* @var ProductRepositoryInterface
*/
private $productRepository;

/** @param ProductRepositoryInterface<ProductInterface> $productRepository */
public function __construct(
EntityManagerInterface $entityManager,
ProductMessageProducerInterface $productMessageProducer,
ProductRepositoryInterface $productRepository
private EntityManagerInterface $entityManager,
private ProductMessageProducerInterface $productMessageProducer,
private ProductRepositoryInterface $productRepository,
) {
parent::__construct($entityManager);

$this->entityManager = $entityManager;
$this->productMessageProducer = $productMessageProducer;
$this->productRepository = $productRepository;
}

protected function configure(): void
Expand Down
26 changes: 4 additions & 22 deletions src/Command/SynchronizeTaxonCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,13 @@

class SynchronizeTaxonCommand extends BaseSynchronizeCommand
{
/**
* @var EntityManagerInterface
*/
private $entityManager;

/**
* @var TaxonMessageProducerInterface
*/
private $taxonMessageProducer;

/**
* @var TaxonRepositoryInterface
*/
private $taxonRepository;

/** @param TaxonRepositoryInterface<TaxonInterface> $taxonRepository */
public function __construct(
EntityManagerInterface $entityManager,
TaxonMessageProducerInterface $taxonMessageProducer,
TaxonRepositoryInterface $taxonRepository
private EntityManagerInterface $entityManager,
private TaxonMessageProducerInterface $taxonMessageProducer,
private TaxonRepositoryInterface $taxonRepository,
) {
parent::__construct($entityManager);

$this->entityManager = $entityManager;
$this->taxonMessageProducer = $taxonMessageProducer;
$this->taxonRepository = $taxonRepository;
}

protected function configure(): void
Expand Down
2 changes: 1 addition & 1 deletion src/Producer/ProductMessageProducer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ProductMessageProducer implements ProductMessageProducerInterface

public function __construct(
ProductSerializerInterface $productSerializer,
MessageBusInterface $messageBus
MessageBusInterface $messageBus,
) {
$this->productSerializer = $productSerializer;
$this->messageBus = $messageBus;
Expand Down

0 comments on commit 567bc0c

Please sign in to comment.