dwmsw/sagepay

View on GitHub
src/Utilities.php

Summary

Maintainability
D
2 days
Test Coverage

Method getCountryCodes has 248 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function getCountryCodes()
    {
        return array
        (
            'AF' => 'Afghanistan',
Severity: Major
Found in src/Utilities.php - About 1 day to fix

    File Utilities.php has 361 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    /**
     * Common functions that can be used across all methods
     */
    
    
    Severity: Minor
    Found in src/Utilities.php - About 4 hrs to fix

      Method getCurrencies has 102 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public static function getCurrencies()
          {
              return array(
                  'AFA' => array('Afghan Afghani', '971'),
                  'AWG' => array('Aruban Florin', '533'),
      Severity: Major
      Found in src/Utilities.php - About 4 hrs to fix

        There are no issues that match your filters.

        Category
        Status