sanmai/gmopg

View on GitHub

Showing 4 of 5 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
/**
* This code is licensed under the MIT License.
*
* Copyright (c) 2015-2017 Alexey Kopytko
Severity: Major
Found in src/GMO/API/MethodsActual.php and 1 other location - About 3 days to fix
src/GMO/API/MethodsSandbox.php on lines 1..319

Similar blocks of code found in 2 locations. Consider refactoring.
Open

<?php
/**
* This code is licensed under the MIT License.
*
* Copyright (c) 2015-2017 Alexey Kopytko
Severity: Major
Found in src/GMO/API/MethodsSandbox.php and 1 other location - About 3 days to fix
src/GMO/API/MethodsActual.php on lines 1..319

Method execute has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Confirmed

public function execute()
{
$this->checkRequiredVars([
'paymentId',
'amount',
Severity: Minor
Found in src/GMO/ImmediatePayment.php - About 1 hr to fix

    Function execute has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
    Confirmed

    public function execute()
    {
    $this->checkRequiredVars([
    'paymentId',
    'amount',
    Severity: Minor
    Found in src/GMO/ImmediatePayment.php - About 45 mins to fix
    Severity
    Category
    Status
    Source
    Language