brokeyourbike/yogupay-api-client-php

View on GitHub

Showing 1 of 1 total issue

Method payout has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function payout(TransactionInterface $transaction): PayoutResponse
    {
        $network = match ($transaction->getChannel()) {
            ChannelEnum::MOBILE_MONEY => CollectionNetworkEnum::MPESA_DIRECT,
            ChannelEnum::BANK_TRANSFER => match ($transaction->getCurrency()) {
Severity: Minor
Found in src/Client.php - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language