lib/Locations/Utility/CountryCodes.php
File CountryCodes.php
has 257 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
<?php
/**
* ISO 3166-1 country codes
* @since Version 3.10.0
* @package Railpage
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
public static function getCountry($code) {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
}
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 8 Open
Open
public static function getCode($country) {
- Exclude checks
Line indented incorrectly; expected 0 spaces, found 4 Open
Open
class CountryCodes {
- Exclude checks
Line indented incorrectly; expected 4 spaces, found 8 Open
Open
private static $codes = array (
- Exclude checks