elisei/pagbank-payment-magento

View on GitHub

Showing 148 of 148 total issues

Possibly zero references to use statement for classlike/namespace InfoInterface (\Magento\Payment\Model\InfoInterface)
Open

use Magento\Payment\Model\InfoInterface;

Declaration of function generatePagBankInterest(string $cartId, \PagBank\PaymentMagento\Api\Data\CreditCardBinInterface $creditCardBin, \PagBank\PaymentMagento\Api\Data\InstallmentSelectedInterface $installmentSelected) : array should be compatible with function generatePagBankInterest(string $cartId, \PagBank\PaymentMagento\Api\Data\CreditCardBinInterface $creditCardBin, \PagBank\PaymentMagento\Api\Data\InstallmentSelectedInterface $installmentSelected) : \Magento\Quote\Api\Data\TotalsInterface defined in /code/Api/GuestInterestManagementInterface.php:31
Open

    public function generatePagBankInterest(
Severity: Minor
Found in Model/Api/GuestInterestManagement.php by phan

When fetching an array index from a value of type string, found an array index of type 'session', but expected the index to be of type int
Open

            $data->setSessionId($session['session']);
Severity: Minor
Found in Model/Api/ThreeDsSession.php by phan

Argument 1 (order) is \PagBank\PaymentMagento\Controller\Notification\OrderRepository but \PagBank\PaymentMagento\Controller\Notification\All::filterInvalidNotification() takes \Magento\Sales\Model\OrderRepository defined at /code/Controller/AbstractNotification.php:195
Open

        $isNotApplicable = $this->filterInvalidNotification($order);
Severity: Minor
Found in Controller/Notification/All.php by phan

Assigning ?\Magento\Payment\Gateway\Response\HandlerInterface to property but \PagBank\PaymentMagento\Gateway\Command\PaymentCommand->handler is \Magento\Payment\Gateway\Response\HandlerInterface
Open

        $this->handler = $handler;
Severity: Minor
Found in Gateway/Command/PaymentCommand.php by phan

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;
Severity: Minor
Found in Gateway/Request/ReferenceIdRequest.php by phan

Call to method getState on non-class type null
Open

            $state = $order->getState();
Severity: Critical
Found in Model/Console/Command/Orders/Update.php by phan

Possibly zero references to use statement for classlike/namespace Phrase (\Magento\Framework\Phrase)
Open

use Magento\Framework\Phrase;
Severity: Minor
Found in Gateway/Config/ConfigDeepLink.php by phan

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Saw an @param annotation for storeId, but the param list of function getInstruction() : \PagBank\PaymentMagento\Block\Sales\Form\Phrase is empty
Open

     * @param int|null $storeId
Severity: Info
Found in Block/Sales/Form/DeepLink.php by phan

Returning type \PagBank\PaymentMagento\Block\Sales\Order\Totals\PagbankInterest but initTotals() is declared to return void
Open

            return $this;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;
Severity: Minor
Found in Gateway/Request/AmountDataRequest.php by phan

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;

Argument 1 (order) is \Magento\Framework\Controller\ResultInterface|\Magento\Sales\Model\OrderRepository but \PagBank\PaymentMagento\Controller\Notification\All::processNotification() takes \PagBank\PaymentMagento\Controller\Notification\OrderRepository defined at /code/Controller/Notification/All.php:161
Open

            $process = $this->processNotification($order);
Severity: Minor
Found in Controller/Notification/All.php by phan

Declaration of function getRegion() : string should be compatible with function getRegion() : null|string[] defined in /code/Api/Data/AddressAdapterInterface.php:22
Open

    public function getRegion()
Severity: Minor
Found in Gateway/Data/Order/AddressAdapter.php by phan

Possibly zero references to use statement for classlike/namespace InfoInterface (\Magento\Payment\Model\InfoInterface)
Open

use Magento\Payment\Model\InfoInterface;

Possibly zero references to use statement for classlike/namespace PaymentDataObject (\Magento\Payment\Gateway\Data\PaymentDataObject)
Open

use Magento\Payment\Gateway\Data\PaymentDataObject;
Severity: Minor
Found in Gateway/Request/MetadataRequest.php by phan

Possibly zero references to use statement for classlike/namespace LocalizedException (\Magento\Framework\Exception\LocalizedException)
Open

use Magento\Framework\Exception\LocalizedException;
Severity
Category
Status
Source
Language