elisei/pagbank-payment-magento

View on GitHub

Showing 159 of 159 total issues

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

Argument 1 (str) is \Magento\Framework\Phrase but \nl2br() takes string
Open

                    'instruction_checkout' => nl2br($this->getInstruction($storeId)),
Severity: Minor
Found in Model/Ui/ConfigProviderDeepLink.php by phan

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

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 3 (amount) is float but \PagBank\PaymentMagento\Model\Api\ConsultPSInstallments::getPagBankInstallments() takes string defined at /code/Model/Api/ConsultPSInstallments.php:79
Open

            $amount

Assigning ?\Magento\Payment\Gateway\Validator\ValidatorInterface to property but \PagBank\PaymentMagento\Gateway\Command\PaymentCommand->validator is \Magento\Payment\Gateway\Validator\ValidatorInterface
Open

        $this->validator = $validator;
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 LaminasClient (\Magento\Framework\HTTP\LaminasClient)
Open

use Magento\Framework\HTTP\LaminasClient;
Severity: Minor
Found in Model/Api/ConsultPSInstallments.php by phan

Argument 1 (str) is \Magento\Framework\Phrase but \nl2br() takes string
Open

                    'instruction_checkout' => nl2br($this->getInstruction($storeId)),
Severity: Minor
Found in Model/Ui/ConfigProviderPix.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;

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/QrCodeDataRequest.php by phan

Returning type string but setSessionId() is declared to return \PagBank\PaymentMagento\Api\Data\ThreeDsSessionDataInterface|\PagBank\PaymentMagento\Model\Api\Data\Session|static
Open

        return $this->sessionId = $sessionId;
Severity: Minor
Found in Model/Api/Data/Session.php by phan

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

use Magento\Framework\Exception\LocalizedException;
Severity: Minor
Found in Model/Api/ThreeDsSession.php by phan

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

use Magento\Framework\HTTP\LaminasClient;
Severity: Minor
Found in Gateway/Http/Client/ApiClient.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

Assigning null to property but \PagBank\PaymentMagento\Gateway\Response\FetchPaymentHandler->finalStatus is string
Open

        $this->finalStatus = null;
Severity
Category
Status
Source
Language