elisei/pagbank-payment-magento

View on GitHub
Block/Adminhtml/System/Config/Oauth.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Oauth has 12 functions (exceeds 10 allowed). Consider refactoring.
Open

class Oauth extends Field
{
/**
* Template oAuth.
*/
Severity: Minor
Found in Block/Adminhtml/System/Config/Oauth.php - About 2 hrs to fix

    Function getUrlToConnect has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
    Open

    public function getUrlToConnect()
    {
    $storeId = $this->getStore(false)->getId();
    $urlConnect = Config::ENDPOINT_CONNECT_PRODUCTION;
    $appId = Config::APP_ID_PRODUCTION;
    Severity: Minor
    Found in Block/Adminhtml/System/Config/Oauth.php - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status