src/Traits/CartPay.php
Method refundCart
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function refundCart(CartInterface $cart, bool $force = false, bool $gifts = false): bool
{
return app(AtomicServiceInterface::class)->block($this, function () use ($cart, $force, $gifts) {
$basketDto = $cart->getBasketDto();
app(EagerLoaderServiceInterface::class)->loadWalletsByBasket($this, $basketDto);
Method payCart
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function payCart(CartInterface $cart, bool $force = false): array
{
return app(AtomicServiceInterface::class)->block($this, function () use ($cart, $force) {
$basketDto = $cart->getBasketDto();
$basketService = app(BasketServiceInterface::class);
Method payFreeCart
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function payFreeCart(CartInterface $cart): array
{
return app(AtomicServiceInterface::class)->block($this, function () use ($cart) {
$basketDto = $cart->getBasketDto();
$basketService = app(BasketServiceInterface::class);