Skip to content

Commit

Permalink
OP-558 - update plugin to Sylius 2 - fix phpstan + ecs
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusz-rup committed Jan 16, 2025
1 parent 6011bd4 commit 380361c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Resolver/SuspiciousOrderResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function resolve(FraudSuspicionCommonModelInterface $fraudSuspicionCommon
{
$blacklistingRules = $this->blacklistingRuleRepository->findActiveByChannel($this->getChannel());

if (empty($blacklistingRules)) {
if ([] === $blacklistingRules) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function validate(mixed $order, Constraint $constraint): void
/** @var CustomerInterface $customer */
$customer = $order->getCustomer();

if (null === $customer) {
if (null == $customer) {
return;
}

Expand Down

0 comments on commit 380361c

Please sign in to comment.