Skip to content

Commit

Permalink
OP-558 - update plugin to Sylius 2 - fix ecs
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Jan 22, 2025
1 parent 3cfdcec commit 71cdfc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
15 changes: 8 additions & 7 deletions src/Processor/AutomaticBlacklistingRulesProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,15 @@
class AutomaticBlacklistingRulesProcessor implements AutomaticBlacklistingRulesProcessorInterface
{
public function __construct(
private readonly ServiceRegistryInterface $serviceRegistry,
private OrderRepositoryInterface $orderRepository,
private readonly ServiceRegistryInterface $serviceRegistry,
private OrderRepositoryInterface $orderRepository,
private AutomaticBlacklistingConfigurationRepositoryInterface $automaticBlacklistingConfigurationRepository,
private CustomerStateResolverInterface $customerStateResolver,
private FraudSuspicionFactoryInterface $fraudSuspicionFactory,
private FraudSuspicionRepositoryInterface $fraudSuspicionRepository,
private FraudSuspicionActionEligibilityCheckerInterface $fraudSuspicionActionEligibilityChecker
) {}
private CustomerStateResolverInterface $customerStateResolver,
private FraudSuspicionFactoryInterface $fraudSuspicionFactory,
private FraudSuspicionRepositoryInterface $fraudSuspicionRepository,
private FraudSuspicionActionEligibilityCheckerInterface $fraudSuspicionActionEligibilityChecker,
) {
}

public function process(OrderInterface $order): bool
{
Expand Down
10 changes: 5 additions & 5 deletions src/Resolver/SuspiciousOrderResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
class SuspiciousOrderResolver implements SuspiciousOrderResolverInterface
{
public function __construct(
private readonly ServiceRegistryInterface $serviceRegistry,
private FraudSuspicionRepositoryInterface $fraudSuspicionRepository,
private BlacklistingRuleRepositoryInterface $blacklistingRuleRepository,
private ChannelContextInterface $channelContext,
private ObjectManager $customerManager,
private readonly ServiceRegistryInterface $serviceRegistry,
private FraudSuspicionRepositoryInterface $fraudSuspicionRepository,
private BlacklistingRuleRepositoryInterface $blacklistingRuleRepository,
private ChannelContextInterface $channelContext,
private ObjectManager $customerManager,
private BlacklistingRuleEligibilityCheckerInterface $blacklistingRuleEligibilityChecker,
) {
}
Expand Down

0 comments on commit 71cdfc5

Please sign in to comment.