Skip to content

Commit

Permalink
Merge pull request #2264 from coreshop/coding-standard/refactor-3.0
Browse files Browse the repository at this point in the history
[CS] Refactor
  • Loading branch information
dpfaffenbauer committed May 1, 2023
2 parents c14622c + 21361c0 commit b32c68f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/CoreShop/Bundle/OrderBundle/Manager/CartManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function persistCart(OrderInterface $cart): void
);
//$item->setPath($cart->getFullPath());
$item->setPublished(true);
$item->setKey((string)((int)$index + 1));
$item->setKey((string) ((int) $index + 1));
$item->save();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public function load(array $configs, ContainerBuilder $container): void
$sessionSubscriber->addTag('kernel.event_subscriber');

$container->setDefinition('coreshop.storage_list.session_subscriber.' . $name, $sessionSubscriber);

}

$cacheSubscriber = new Definition(CacheListener::class, [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public function onKernelResponse(ResponseEvent $event): void
continue;
}

Cache::addIgnoredTagOnSave('object_'.$item->getId());
Cache::addIgnoredTagOnSave('object_' . $item->getId());
}

Cache::addIgnoredTagOnSave('object_'.$list->getId());
Cache::addIgnoredTagOnSave('object_' . $list->getId());
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ public function applyRule(OrderInterface $cart, array $configuration, PriceRuleI

if (!$result) {
$item->removePriceRule($priceRuleItem);
}
else if (!$existingPriceRule) {
} elseif (!$existingPriceRule) {
$item->addPriceRule($priceRuleItem);
}

Expand Down

0 comments on commit b32c68f

Please sign in to comment.