railpage/railpagecore

View on GitHub
lib/Locations/Utility/CountryCodes.php

Summary

Maintainability
A
2 hrs
Test Coverage

File CountryCodes.php has 257 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php
    /**
     * ISO 3166-1 country codes
     * @since Version 3.10.0
     * @package Railpage
Severity: Minor
Found in lib/Locations/Utility/CountryCodes.php - About 2 hrs to fix

    Function closing brace must go on the next line following the body; found 1 blank lines before brace
    Open

            }

    Function closing brace must go on the next line following the body; found 1 blank lines before brace
    Open

            }

    Line indented incorrectly; expected 0 spaces, found 4
    Open

        }

    Line indented incorrectly; expected 0 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 0 spaces, found 8
    Open

            public static function getCountry($code) {

    Line indented incorrectly; expected 0 spaces, found 8
    Open

            }

    Line indented incorrectly; expected 0 spaces, found 8
    Open

            public static function getCode($country) {

    Line indented incorrectly; expected 0 spaces, found 4
    Open

        class CountryCodes {

    Line indented incorrectly; expected 4 spaces, found 8
    Open

            private static $codes = array (

    There are no issues that match your filters.

    Category
    Status