src/Traits/CartPay.php
Method payCart
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function payCart(CartInterface $cart, bool $force = false): array
{
$atomicService = app(AtomicServiceInterface::class);
$basketService = app(BasketServiceInterface::class);
$availabilityAssembler = app(AvailabilityDtoAssemblerInterface::class);
Method refundCart
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Wontfix
Wontfix
public function refundCart(CartInterface $cart, bool $force = false, bool $gifts = false): bool
{
// Get the required services.
$atomicService = app(AtomicServiceInterface::class);
$basketDto = $cart->getBasketDto();
File CartPay.php
has 255 lines of code (exceeds 250 allowed). Consider refactoring. Confirmed
Confirmed
<?php
declare(strict_types=1);
namespace Bavix\Wallet\Traits;
Method payFreeCart
has 50 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function payFreeCart(CartInterface $cart): array
{
$atomicService = app(AtomicServiceInterface::class);
$eagerLoaderService = app(EagerLoaderServiceInterface::class);
$basketService = app(BasketServiceInterface::class);