modules/Users/UserTimeZonesArray.php
Method getTimeZones
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public static function getTimeZones()
{
return [
'Pacific/Midway',
'Pacific/Samoa',
The method getTimeZones() has 101 lines of code. Current threshold is set to 100. Avoid really long methods. Open
Open
public static function getTimeZones()
{
return [
'Pacific/Midway',
'Pacific/Samoa',
- Exclude checks
Remove this commented out code. Open
Open
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
- Read upRead up
- Exclude checks
Programmers should not comment out code as it bloats programs and reduces readability.
Unused code should be deleted and can be retrieved from source control history if required.
See
- MISRA C:2004, 2.4 - Sections of code should not be "commented out".
- MISRA C++:2008, 2-7-2 - Sections of code shall not be "commented out" using C-style comments.
- MISRA C++:2008, 2-7-3 - Sections of code should not be "commented out" using C++ comments.
- MISRA C:2012, Dir. 4.4 - Sections of code should not be "commented out"
Each class must be in a namespace of at least one level (a top-level vendor name) Open
Open
class UserTimeZones
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Tegucigalpa',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Mexico_City',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Caracas',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Halifax',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Africa/Monrovia',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Almaty',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Irkutsk',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Yakutsk',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Monterrey',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Manaus',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Santiago',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Montevideo',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Africa/Cairo',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Katmandu',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Australia/Perth',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Australia/Hobart',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Amman',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Beirut',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Pacific/Samoa',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Tokyo',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/La_Paz',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Sao_Paulo',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Atlantic/South_Georgia',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Tijuana',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Baghdad',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Pacific/Guam',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Africa/Casablanca',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Tehran',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Rangoon',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Ulaanbaatar',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Bogota',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Indiana/Indianapolis',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Cuiaba',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Godthab',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Atlantic/Cape_Verde',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Sarajevo',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Africa/Harare',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Karachi',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public static function getTimeZones()
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
{
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
return [
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Denver',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Chihuahua',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Asuncion',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Tbilisi',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Tashkent',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Novosibirsk',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Brunei',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Seoul',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Australia/Canberra',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Pacific/Honolulu',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Lima',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Minsk',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Vladivostok',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Anchorage',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Chicago',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'UTC',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Helsinki',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Athens',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Moscow',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Colombo',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Rio_Branco',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Atlantic/Azores',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Belgrade',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Yerevan',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/St_Johns',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Amsterdam',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Istanbul',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Jerusalem',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Baku',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Krasnoyarsk',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Los_Angeles',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Africa/Windhoek',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Kuwait',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Muscat',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Taipei',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Australia/Brisbane',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Pacific/Fiji',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Pacific/Midway',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/New_York',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Kolkata',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Kamchatka',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Mazatlan',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Argentina/Buenos_Aires',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Phoenix',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/London',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Europe/Brussels',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'America/Regina',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Africa/Algiers',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Australia/Darwin',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Africa/Nairobi',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Pacific/Tongatapu',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Dhaka',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Yekaterinburg',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Bangkok',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Kuala_Lumpur',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Australia/Adelaide',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Pacific/Auckland',
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
];
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
'Asia/Magadan',
- Exclude checks