elisei/pagbank-payment-magento

View on GitHub
Model/Api/ThreeDsSession.php

Summary

Maintainability
A
35 mins
Test Coverage

Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

        StoreManagerInterface $storeManager,
        ConfigBase $configBase,
        ClientFactory $httpClientFactory,
        Json $json,
        ThreeDsSessionDataInterfaceFactory $sessionData
Severity: Minor
Found in Model/Api/ThreeDsSession.php - About 35 mins to fix

    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

    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 Model/Api/ThreeDsSession.php by phan

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

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

    There are no issues that match your filters.

    Category
    Status