Completed
Branch develop (a11c59)
by
unknown
24:05
created
htdocs/includes/sabre/sabre/vobject/lib/timezonedata/lotuszones.php 1 patch
Indentation   +90 added lines, -90 removed lines patch added patch discarded remove patch
@@ -8,94 +8,94 @@
 block discarded – undo
8 8
  * @license http://sabre.io/license/ Modified BSD License
9 9
  */
10 10
 return [
11
-    'Dateline' => 'Etc/GMT-12',
12
-    'Samoa' => 'Pacific/Apia',
13
-    'Hawaiian' => 'Pacific/Honolulu',
14
-    'Alaskan' => 'America/Anchorage',
15
-    'Pacific' => 'America/Los_Angeles',
16
-    'Pacific Standard Time' => 'America/Los_Angeles',
17
-    'Mexico Standard Time 2' => 'America/Chihuahua',
18
-    'Mountain' => 'America/Denver',
19
-    // 'Mountain Standard Time' => 'America/Chihuahua', // conflict with windows timezones.
20
-    'US Mountain' => 'America/Phoenix',
21
-    'Canada Central' => 'America/Edmonton',
22
-    'Central America' => 'America/Guatemala',
23
-    'Central' => 'America/Chicago',
24
-    // 'Central Standard Time'  => 'America/Mexico_City', // conflict with windows timezones.
25
-    'Mexico' => 'America/Mexico_City',
26
-    'Eastern' => 'America/New_York',
27
-    'SA Pacific' => 'America/Bogota',
28
-    'US Eastern' => 'America/Indiana/Indianapolis',
29
-    'Venezuela' => 'America/Caracas',
30
-    'Atlantic' => 'America/Halifax',
31
-    'Central Brazilian' => 'America/Manaus',
32
-    'Pacific SA' => 'America/Santiago',
33
-    'SA Western' => 'America/La_Paz',
34
-    'Newfoundland' => 'America/St_Johns',
35
-    'Argentina' => 'America/Argentina/Buenos_Aires',
36
-    'E. South America' => 'America/Belem',
37
-    'Greenland' => 'America/Godthab',
38
-    'Montevideo' => 'America/Montevideo',
39
-    'SA Eastern' => 'America/Belem',
40
-    // 'Mid-Atlantic'           => 'Etc/GMT-2', // conflict with windows timezones.
41
-    'Azores' => 'Atlantic/Azores',
42
-    'Cape Verde' => 'Atlantic/Cape_Verde',
43
-    'Greenwich' => 'Atlantic/Reykjavik', // No I'm serious.. Greenwich is not GMT.
44
-    'Morocco' => 'Africa/Casablanca',
45
-    'Central Europe' => 'Europe/Prague',
46
-    'Central European' => 'Europe/Sarajevo',
47
-    'Romance' => 'Europe/Paris',
48
-    'W. Central Africa' => 'Africa/Lagos', // Best guess
49
-    'W. Europe' => 'Europe/Amsterdam',
50
-    'E. Europe' => 'Europe/Minsk',
51
-    'Egypt' => 'Africa/Cairo',
52
-    'FLE' => 'Europe/Helsinki',
53
-    'GTB' => 'Europe/Athens',
54
-    'Israel' => 'Asia/Jerusalem',
55
-    'Jordan' => 'Asia/Amman',
56
-    'Middle East' => 'Asia/Beirut',
57
-    'Namibia' => 'Africa/Windhoek',
58
-    'South Africa' => 'Africa/Harare',
59
-    'Arab' => 'Asia/Kuwait',
60
-    'Arabic' => 'Asia/Baghdad',
61
-    'E. Africa' => 'Africa/Nairobi',
62
-    'Georgian' => 'Asia/Tbilisi',
63
-    'Russian' => 'Europe/Moscow',
64
-    'Iran' => 'Asia/Tehran',
65
-    'Arabian' => 'Asia/Muscat',
66
-    'Armenian' => 'Asia/Yerevan',
67
-    'Azerbijan' => 'Asia/Baku',
68
-    'Caucasus' => 'Asia/Yerevan',
69
-    'Mauritius' => 'Indian/Mauritius',
70
-    'Afghanistan' => 'Asia/Kabul',
71
-    'Ekaterinburg' => 'Asia/Yekaterinburg',
72
-    'Pakistan' => 'Asia/Karachi',
73
-    'West Asia' => 'Asia/Tashkent',
74
-    'India' => 'Asia/Calcutta',
75
-    'Sri Lanka' => 'Asia/Colombo',
76
-    'Nepal' => 'Asia/Kathmandu',
77
-    'Central Asia' => 'Asia/Dhaka',
78
-    'N. Central Asia' => 'Asia/Almaty',
79
-    'Myanmar' => 'Asia/Rangoon',
80
-    'North Asia' => 'Asia/Krasnoyarsk',
81
-    'SE Asia' => 'Asia/Bangkok',
82
-    'China' => 'Asia/Shanghai',
83
-    'North Asia East' => 'Asia/Irkutsk',
84
-    'Singapore' => 'Asia/Singapore',
85
-    'Taipei' => 'Asia/Taipei',
86
-    'W. Australia' => 'Australia/Perth',
87
-    'Korea' => 'Asia/Seoul',
88
-    'Tokyo' => 'Asia/Tokyo',
89
-    'Yakutsk' => 'Asia/Yakutsk',
90
-    'AUS Central' => 'Australia/Darwin',
91
-    'Cen. Australia' => 'Australia/Adelaide',
92
-    'AUS Eastern' => 'Australia/Sydney',
93
-    'E. Australia' => 'Australia/Brisbane',
94
-    'Tasmania' => 'Australia/Hobart',
95
-    'Vladivostok' => 'Asia/Vladivostok',
96
-    'West Pacific' => 'Pacific/Guam',
97
-    'Central Pacific' => 'Asia/Magadan',
98
-    'Fiji' => 'Pacific/Fiji',
99
-    'New Zealand' => 'Pacific/Auckland',
100
-    'Tonga' => 'Pacific/Tongatapu',
11
+	'Dateline' => 'Etc/GMT-12',
12
+	'Samoa' => 'Pacific/Apia',
13
+	'Hawaiian' => 'Pacific/Honolulu',
14
+	'Alaskan' => 'America/Anchorage',
15
+	'Pacific' => 'America/Los_Angeles',
16
+	'Pacific Standard Time' => 'America/Los_Angeles',
17
+	'Mexico Standard Time 2' => 'America/Chihuahua',
18
+	'Mountain' => 'America/Denver',
19
+	// 'Mountain Standard Time' => 'America/Chihuahua', // conflict with windows timezones.
20
+	'US Mountain' => 'America/Phoenix',
21
+	'Canada Central' => 'America/Edmonton',
22
+	'Central America' => 'America/Guatemala',
23
+	'Central' => 'America/Chicago',
24
+	// 'Central Standard Time'  => 'America/Mexico_City', // conflict with windows timezones.
25
+	'Mexico' => 'America/Mexico_City',
26
+	'Eastern' => 'America/New_York',
27
+	'SA Pacific' => 'America/Bogota',
28
+	'US Eastern' => 'America/Indiana/Indianapolis',
29
+	'Venezuela' => 'America/Caracas',
30
+	'Atlantic' => 'America/Halifax',
31
+	'Central Brazilian' => 'America/Manaus',
32
+	'Pacific SA' => 'America/Santiago',
33
+	'SA Western' => 'America/La_Paz',
34
+	'Newfoundland' => 'America/St_Johns',
35
+	'Argentina' => 'America/Argentina/Buenos_Aires',
36
+	'E. South America' => 'America/Belem',
37
+	'Greenland' => 'America/Godthab',
38
+	'Montevideo' => 'America/Montevideo',
39
+	'SA Eastern' => 'America/Belem',
40
+	// 'Mid-Atlantic'           => 'Etc/GMT-2', // conflict with windows timezones.
41
+	'Azores' => 'Atlantic/Azores',
42
+	'Cape Verde' => 'Atlantic/Cape_Verde',
43
+	'Greenwich' => 'Atlantic/Reykjavik', // No I'm serious.. Greenwich is not GMT.
44
+	'Morocco' => 'Africa/Casablanca',
45
+	'Central Europe' => 'Europe/Prague',
46
+	'Central European' => 'Europe/Sarajevo',
47
+	'Romance' => 'Europe/Paris',
48
+	'W. Central Africa' => 'Africa/Lagos', // Best guess
49
+	'W. Europe' => 'Europe/Amsterdam',
50
+	'E. Europe' => 'Europe/Minsk',
51
+	'Egypt' => 'Africa/Cairo',
52
+	'FLE' => 'Europe/Helsinki',
53
+	'GTB' => 'Europe/Athens',
54
+	'Israel' => 'Asia/Jerusalem',
55
+	'Jordan' => 'Asia/Amman',
56
+	'Middle East' => 'Asia/Beirut',
57
+	'Namibia' => 'Africa/Windhoek',
58
+	'South Africa' => 'Africa/Harare',
59
+	'Arab' => 'Asia/Kuwait',
60
+	'Arabic' => 'Asia/Baghdad',
61
+	'E. Africa' => 'Africa/Nairobi',
62
+	'Georgian' => 'Asia/Tbilisi',
63
+	'Russian' => 'Europe/Moscow',
64
+	'Iran' => 'Asia/Tehran',
65
+	'Arabian' => 'Asia/Muscat',
66
+	'Armenian' => 'Asia/Yerevan',
67
+	'Azerbijan' => 'Asia/Baku',
68
+	'Caucasus' => 'Asia/Yerevan',
69
+	'Mauritius' => 'Indian/Mauritius',
70
+	'Afghanistan' => 'Asia/Kabul',
71
+	'Ekaterinburg' => 'Asia/Yekaterinburg',
72
+	'Pakistan' => 'Asia/Karachi',
73
+	'West Asia' => 'Asia/Tashkent',
74
+	'India' => 'Asia/Calcutta',
75
+	'Sri Lanka' => 'Asia/Colombo',
76
+	'Nepal' => 'Asia/Kathmandu',
77
+	'Central Asia' => 'Asia/Dhaka',
78
+	'N. Central Asia' => 'Asia/Almaty',
79
+	'Myanmar' => 'Asia/Rangoon',
80
+	'North Asia' => 'Asia/Krasnoyarsk',
81
+	'SE Asia' => 'Asia/Bangkok',
82
+	'China' => 'Asia/Shanghai',
83
+	'North Asia East' => 'Asia/Irkutsk',
84
+	'Singapore' => 'Asia/Singapore',
85
+	'Taipei' => 'Asia/Taipei',
86
+	'W. Australia' => 'Australia/Perth',
87
+	'Korea' => 'Asia/Seoul',
88
+	'Tokyo' => 'Asia/Tokyo',
89
+	'Yakutsk' => 'Asia/Yakutsk',
90
+	'AUS Central' => 'Australia/Darwin',
91
+	'Cen. Australia' => 'Australia/Adelaide',
92
+	'AUS Eastern' => 'Australia/Sydney',
93
+	'E. Australia' => 'Australia/Brisbane',
94
+	'Tasmania' => 'Australia/Hobart',
95
+	'Vladivostok' => 'Asia/Vladivostok',
96
+	'West Pacific' => 'Pacific/Guam',
97
+	'Central Pacific' => 'Asia/Magadan',
98
+	'Fiji' => 'Pacific/Fiji',
99
+	'New Zealand' => 'Pacific/Auckland',
100
+	'Tonga' => 'Pacific/Tongatapu',
101 101
 ];
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/timezonedata/exchangezones.php 1 patch
Indentation   +79 added lines, -79 removed lines patch added patch discarded remove patch
@@ -12,83 +12,83 @@
 block discarded – undo
12 12
  * @license http://sabre.io/license/ Modified BSD License
13 13
  */
14 14
 return [
15
-    'Universal Coordinated Time' => 'UTC',
16
-    'Casablanca, Monrovia' => 'Africa/Casablanca',
17
-    'Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London' => 'Europe/Lisbon',
18
-    'Greenwich Mean Time; Dublin, Edinburgh, London' => 'Europe/London',
19
-    'Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna' => 'Europe/Berlin',
20
-    'Belgrade, Pozsony, Budapest, Ljubljana, Prague' => 'Europe/Prague',
21
-    'Brussels, Copenhagen, Madrid, Paris' => 'Europe/Paris',
22
-    'Paris, Madrid, Brussels, Copenhagen' => 'Europe/Paris',
23
-    'Prague, Central Europe' => 'Europe/Prague',
24
-    'Sarajevo, Skopje, Sofija, Vilnius, Warsaw, Zagreb' => 'Europe/Sarajevo',
25
-    'West Central Africa' => 'Africa/Luanda', // This was a best guess
26
-    'Athens, Istanbul, Minsk' => 'Europe/Athens',
27
-    'Bucharest' => 'Europe/Bucharest',
28
-    'Cairo' => 'Africa/Cairo',
29
-    'Harare, Pretoria' => 'Africa/Harare',
30
-    'Helsinki, Riga, Tallinn' => 'Europe/Helsinki',
31
-    'Israel, Jerusalem Standard Time' => 'Asia/Jerusalem',
32
-    'Baghdad' => 'Asia/Baghdad',
33
-    'Arab, Kuwait, Riyadh' => 'Asia/Kuwait',
34
-    'Moscow, St. Petersburg, Volgograd' => 'Europe/Moscow',
35
-    'East Africa, Nairobi' => 'Africa/Nairobi',
36
-    'Tehran' => 'Asia/Tehran',
37
-    'Abu Dhabi, Muscat' => 'Asia/Muscat', // Best guess
38
-    'Baku, Tbilisi, Yerevan' => 'Asia/Baku',
39
-    'Kabul' => 'Asia/Kabul',
40
-    'Ekaterinburg' => 'Asia/Yekaterinburg',
41
-    'Islamabad, Karachi, Tashkent' => 'Asia/Karachi',
42
-    'Kolkata, Chennai, Mumbai, New Delhi, India Standard Time' => 'Asia/Calcutta',
43
-    'Kathmandu, Nepal' => 'Asia/Kathmandu',
44
-    'Almaty, Novosibirsk, North Central Asia' => 'Asia/Almaty',
45
-    'Astana, Dhaka' => 'Asia/Dhaka',
46
-    'Sri Jayawardenepura, Sri Lanka' => 'Asia/Colombo',
47
-    'Rangoon' => 'Asia/Rangoon',
48
-    'Bangkok, Hanoi, Jakarta' => 'Asia/Bangkok',
49
-    'Krasnoyarsk' => 'Asia/Krasnoyarsk',
50
-    'Beijing, Chongqing, Hong Kong SAR, Urumqi' => 'Asia/Shanghai',
51
-    'Irkutsk, Ulaan Bataar' => 'Asia/Irkutsk',
52
-    'Kuala Lumpur, Singapore' => 'Asia/Singapore',
53
-    'Perth, Western Australia' => 'Australia/Perth',
54
-    'Taipei' => 'Asia/Taipei',
55
-    'Osaka, Sapporo, Tokyo' => 'Asia/Tokyo',
56
-    'Seoul, Korea Standard time' => 'Asia/Seoul',
57
-    'Yakutsk' => 'Asia/Yakutsk',
58
-    'Adelaide, Central Australia' => 'Australia/Adelaide',
59
-    'Darwin' => 'Australia/Darwin',
60
-    'Brisbane, East Australia' => 'Australia/Brisbane',
61
-    'Canberra, Melbourne, Sydney, Hobart (year 2000 only)' => 'Australia/Sydney',
62
-    'Guam, Port Moresby' => 'Pacific/Guam',
63
-    'Hobart, Tasmania' => 'Australia/Hobart',
64
-    'Vladivostok' => 'Asia/Vladivostok',
65
-    'Magadan, Solomon Is., New Caledonia' => 'Asia/Magadan',
66
-    'Auckland, Wellington' => 'Pacific/Auckland',
67
-    'Fiji Islands, Kamchatka, Marshall Is.' => 'Pacific/Fiji',
68
-    'Nuku\'alofa, Tonga' => 'Pacific/Tongatapu',
69
-    'Azores' => 'Atlantic/Azores',
70
-    'Cape Verde Is.' => 'Atlantic/Cape_Verde',
71
-    'Mid-Atlantic' => 'America/Noronha',
72
-    'Brasilia' => 'America/Sao_Paulo', // Best guess
73
-    'Buenos Aires' => 'America/Argentina/Buenos_Aires',
74
-    'Greenland' => 'America/Godthab',
75
-    'Newfoundland' => 'America/St_Johns',
76
-    'Atlantic Time (Canada)' => 'America/Halifax',
77
-    'Caracas, La Paz' => 'America/Caracas',
78
-    'Santiago' => 'America/Santiago',
79
-    'Bogota, Lima, Quito' => 'America/Bogota',
80
-    'Eastern Time (US & Canada)' => 'America/New_York',
81
-    'Indiana (East)' => 'America/Indiana/Indianapolis',
82
-    'Central America' => 'America/Guatemala',
83
-    'Central Time (US & Canada)' => 'America/Chicago',
84
-    'Mexico City, Tegucigalpa' => 'America/Mexico_City',
85
-    'Saskatchewan' => 'America/Edmonton',
86
-    'Arizona' => 'America/Phoenix',
87
-    'Mountain Time (US & Canada)' => 'America/Denver', // Best guess
88
-    'Pacific Time (US & Canada)' => 'America/Los_Angeles', // Best guess
89
-    'Pacific Time (US & Canada); Tijuana' => 'America/Los_Angeles', // Best guess
90
-    'Alaska' => 'America/Anchorage',
91
-    'Hawaii' => 'Pacific/Honolulu',
92
-    'Midway Island, Samoa' => 'Pacific/Midway',
93
-    'Eniwetok, Kwajalein, Dateline Time' => 'Pacific/Kwajalein',
15
+	'Universal Coordinated Time' => 'UTC',
16
+	'Casablanca, Monrovia' => 'Africa/Casablanca',
17
+	'Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London' => 'Europe/Lisbon',
18
+	'Greenwich Mean Time; Dublin, Edinburgh, London' => 'Europe/London',
19
+	'Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna' => 'Europe/Berlin',
20
+	'Belgrade, Pozsony, Budapest, Ljubljana, Prague' => 'Europe/Prague',
21
+	'Brussels, Copenhagen, Madrid, Paris' => 'Europe/Paris',
22
+	'Paris, Madrid, Brussels, Copenhagen' => 'Europe/Paris',
23
+	'Prague, Central Europe' => 'Europe/Prague',
24
+	'Sarajevo, Skopje, Sofija, Vilnius, Warsaw, Zagreb' => 'Europe/Sarajevo',
25
+	'West Central Africa' => 'Africa/Luanda', // This was a best guess
26
+	'Athens, Istanbul, Minsk' => 'Europe/Athens',
27
+	'Bucharest' => 'Europe/Bucharest',
28
+	'Cairo' => 'Africa/Cairo',
29
+	'Harare, Pretoria' => 'Africa/Harare',
30
+	'Helsinki, Riga, Tallinn' => 'Europe/Helsinki',
31
+	'Israel, Jerusalem Standard Time' => 'Asia/Jerusalem',
32
+	'Baghdad' => 'Asia/Baghdad',
33
+	'Arab, Kuwait, Riyadh' => 'Asia/Kuwait',
34
+	'Moscow, St. Petersburg, Volgograd' => 'Europe/Moscow',
35
+	'East Africa, Nairobi' => 'Africa/Nairobi',
36
+	'Tehran' => 'Asia/Tehran',
37
+	'Abu Dhabi, Muscat' => 'Asia/Muscat', // Best guess
38
+	'Baku, Tbilisi, Yerevan' => 'Asia/Baku',
39
+	'Kabul' => 'Asia/Kabul',
40
+	'Ekaterinburg' => 'Asia/Yekaterinburg',
41
+	'Islamabad, Karachi, Tashkent' => 'Asia/Karachi',
42
+	'Kolkata, Chennai, Mumbai, New Delhi, India Standard Time' => 'Asia/Calcutta',
43
+	'Kathmandu, Nepal' => 'Asia/Kathmandu',
44
+	'Almaty, Novosibirsk, North Central Asia' => 'Asia/Almaty',
45
+	'Astana, Dhaka' => 'Asia/Dhaka',
46
+	'Sri Jayawardenepura, Sri Lanka' => 'Asia/Colombo',
47
+	'Rangoon' => 'Asia/Rangoon',
48
+	'Bangkok, Hanoi, Jakarta' => 'Asia/Bangkok',
49
+	'Krasnoyarsk' => 'Asia/Krasnoyarsk',
50
+	'Beijing, Chongqing, Hong Kong SAR, Urumqi' => 'Asia/Shanghai',
51
+	'Irkutsk, Ulaan Bataar' => 'Asia/Irkutsk',
52
+	'Kuala Lumpur, Singapore' => 'Asia/Singapore',
53
+	'Perth, Western Australia' => 'Australia/Perth',
54
+	'Taipei' => 'Asia/Taipei',
55
+	'Osaka, Sapporo, Tokyo' => 'Asia/Tokyo',
56
+	'Seoul, Korea Standard time' => 'Asia/Seoul',
57
+	'Yakutsk' => 'Asia/Yakutsk',
58
+	'Adelaide, Central Australia' => 'Australia/Adelaide',
59
+	'Darwin' => 'Australia/Darwin',
60
+	'Brisbane, East Australia' => 'Australia/Brisbane',
61
+	'Canberra, Melbourne, Sydney, Hobart (year 2000 only)' => 'Australia/Sydney',
62
+	'Guam, Port Moresby' => 'Pacific/Guam',
63
+	'Hobart, Tasmania' => 'Australia/Hobart',
64
+	'Vladivostok' => 'Asia/Vladivostok',
65
+	'Magadan, Solomon Is., New Caledonia' => 'Asia/Magadan',
66
+	'Auckland, Wellington' => 'Pacific/Auckland',
67
+	'Fiji Islands, Kamchatka, Marshall Is.' => 'Pacific/Fiji',
68
+	'Nuku\'alofa, Tonga' => 'Pacific/Tongatapu',
69
+	'Azores' => 'Atlantic/Azores',
70
+	'Cape Verde Is.' => 'Atlantic/Cape_Verde',
71
+	'Mid-Atlantic' => 'America/Noronha',
72
+	'Brasilia' => 'America/Sao_Paulo', // Best guess
73
+	'Buenos Aires' => 'America/Argentina/Buenos_Aires',
74
+	'Greenland' => 'America/Godthab',
75
+	'Newfoundland' => 'America/St_Johns',
76
+	'Atlantic Time (Canada)' => 'America/Halifax',
77
+	'Caracas, La Paz' => 'America/Caracas',
78
+	'Santiago' => 'America/Santiago',
79
+	'Bogota, Lima, Quito' => 'America/Bogota',
80
+	'Eastern Time (US & Canada)' => 'America/New_York',
81
+	'Indiana (East)' => 'America/Indiana/Indianapolis',
82
+	'Central America' => 'America/Guatemala',
83
+	'Central Time (US & Canada)' => 'America/Chicago',
84
+	'Mexico City, Tegucigalpa' => 'America/Mexico_City',
85
+	'Saskatchewan' => 'America/Edmonton',
86
+	'Arizona' => 'America/Phoenix',
87
+	'Mountain Time (US & Canada)' => 'America/Denver', // Best guess
88
+	'Pacific Time (US & Canada)' => 'America/Los_Angeles', // Best guess
89
+	'Pacific Time (US & Canada); Tijuana' => 'America/Los_Angeles', // Best guess
90
+	'Alaska' => 'America/Anchorage',
91
+	'Hawaii' => 'Pacific/Honolulu',
92
+	'Midway Island, Samoa' => 'Pacific/Midway',
93
+	'Eniwetok, Kwajalein, Dateline Time' => 'Pacific/Kwajalein',
94 94
 ];
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/timezonedata/php-workaround.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -15,32 +15,32 @@
 block discarded – undo
15 15
  * @license http://sabre.io/license/ Modified BSD License
16 16
  */
17 17
 return [
18
-    'CST6CDT' => 'America/Chicago',
19
-    'Cuba' => 'America/Havana',
20
-    'Egypt' => 'Africa/Cairo',
21
-    'Eire' => 'Europe/Dublin',
22
-    'EST5EDT' => 'America/New_York',
23
-    'Factory' => 'UTC',
24
-    'GB-Eire' => 'Europe/London',
25
-    'GMT0' => 'UTC',
26
-    'Greenwich' => 'UTC',
27
-    'Hongkong' => 'Asia/Hong_Kong',
28
-    'Iceland' => 'Atlantic/Reykjavik',
29
-    'Iran' => 'Asia/Tehran',
30
-    'Israel' => 'Asia/Jerusalem',
31
-    'Jamaica' => 'America/Jamaica',
32
-    'Japan' => 'Asia/Tokyo',
33
-    'Kwajalein' => 'Pacific/Kwajalein',
34
-    'Libya' => 'Africa/Tripoli',
35
-    'MST7MDT' => 'America/Denver',
36
-    'Navajo' => 'America/Denver',
37
-    'NZ-CHAT' => 'Pacific/Chatham',
38
-    'Poland' => 'Europe/Warsaw',
39
-    'Portugal' => 'Europe/Lisbon',
40
-    'PST8PDT' => 'America/Los_Angeles',
41
-    'Singapore' => 'Asia/Singapore',
42
-    'Turkey' => 'Europe/Istanbul',
43
-    'Universal' => 'UTC',
44
-    'W-SU' => 'Europe/Moscow',
45
-    'Zulu' => 'UTC',
18
+	'CST6CDT' => 'America/Chicago',
19
+	'Cuba' => 'America/Havana',
20
+	'Egypt' => 'Africa/Cairo',
21
+	'Eire' => 'Europe/Dublin',
22
+	'EST5EDT' => 'America/New_York',
23
+	'Factory' => 'UTC',
24
+	'GB-Eire' => 'Europe/London',
25
+	'GMT0' => 'UTC',
26
+	'Greenwich' => 'UTC',
27
+	'Hongkong' => 'Asia/Hong_Kong',
28
+	'Iceland' => 'Atlantic/Reykjavik',
29
+	'Iran' => 'Asia/Tehran',
30
+	'Israel' => 'Asia/Jerusalem',
31
+	'Jamaica' => 'America/Jamaica',
32
+	'Japan' => 'Asia/Tokyo',
33
+	'Kwajalein' => 'Pacific/Kwajalein',
34
+	'Libya' => 'Africa/Tripoli',
35
+	'MST7MDT' => 'America/Denver',
36
+	'Navajo' => 'America/Denver',
37
+	'NZ-CHAT' => 'Pacific/Chatham',
38
+	'Poland' => 'Europe/Warsaw',
39
+	'Portugal' => 'Europe/Lisbon',
40
+	'PST8PDT' => 'America/Los_Angeles',
41
+	'Singapore' => 'Asia/Singapore',
42
+	'Turkey' => 'Europe/Istanbul',
43
+	'Universal' => 'UTC',
44
+	'W-SU' => 'Europe/Moscow',
45
+	'Zulu' => 'UTC',
46 46
 ];
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/timezonedata/php-bc.php 1 patch
Indentation   +133 added lines, -133 removed lines patch added patch discarded remove patch
@@ -16,137 +16,137 @@
 block discarded – undo
16 16
  * @license http://sabre.io/license/ Modified BSD License
17 17
  */
18 18
 return [
19
-    'Africa/Asmera',
20
-    'Africa/Timbuktu',
21
-    'America/Argentina/ComodRivadavia',
22
-    'America/Atka',
23
-    'America/Buenos_Aires',
24
-    'America/Catamarca',
25
-    'America/Coral_Harbour',
26
-    'America/Cordoba',
27
-    'America/Ensenada',
28
-    'America/Fort_Wayne',
29
-    'America/Indianapolis',
30
-    'America/Jujuy',
31
-    'America/Knox_IN',
32
-    'America/Louisville',
33
-    'America/Mendoza',
34
-    'America/Montreal',
35
-    'America/Porto_Acre',
36
-    'America/Rosario',
37
-    'America/Shiprock',
38
-    'America/Virgin',
39
-    'Antarctica/South_Pole',
40
-    'Asia/Ashkhabad',
41
-    'Asia/Calcutta',
42
-    'Asia/Chungking',
43
-    'Asia/Dacca',
44
-    'Asia/Istanbul',
45
-    'Asia/Katmandu',
46
-    'Asia/Macao',
47
-    'Asia/Saigon',
48
-    'Asia/Tel_Aviv',
49
-    'Asia/Thimbu',
50
-    'Asia/Ujung_Pandang',
51
-    'Asia/Ulan_Bator',
52
-    'Atlantic/Faeroe',
53
-    'Atlantic/Jan_Mayen',
54
-    'Australia/ACT',
55
-    'Australia/Canberra',
56
-    'Australia/LHI',
57
-    'Australia/North',
58
-    'Australia/NSW',
59
-    'Australia/Queensland',
60
-    'Australia/South',
61
-    'Australia/Tasmania',
62
-    'Australia/Victoria',
63
-    'Australia/West',
64
-    'Australia/Yancowinna',
65
-    'Brazil/Acre',
66
-    'Brazil/DeNoronha',
67
-    'Brazil/East',
68
-    'Brazil/West',
69
-    'Canada/Atlantic',
70
-    'Canada/Central',
71
-    'Canada/Eastern',
72
-    'Canada/Mountain',
73
-    'Canada/Newfoundland',
74
-    'Canada/Pacific',
75
-    'Canada/Saskatchewan',
76
-    'Canada/Yukon',
77
-    'CET',
78
-    'Chile/Continental',
79
-    'Chile/EasterIsland',
80
-    'EET',
81
-    'EST',
82
-    'Etc/GMT',
83
-    'Etc/GMT+0',
84
-    'Etc/GMT+1',
85
-    'Etc/GMT+10',
86
-    'Etc/GMT+11',
87
-    'Etc/GMT+12',
88
-    'Etc/GMT+2',
89
-    'Etc/GMT+3',
90
-    'Etc/GMT+4',
91
-    'Etc/GMT+5',
92
-    'Etc/GMT+6',
93
-    'Etc/GMT+7',
94
-    'Etc/GMT+8',
95
-    'Etc/GMT+9',
96
-    'Etc/GMT-0',
97
-    'Etc/GMT-1',
98
-    'Etc/GMT-10',
99
-    'Etc/GMT-11',
100
-    'Etc/GMT-12',
101
-    'Etc/GMT-13',
102
-    'Etc/GMT-14',
103
-    'Etc/GMT-2',
104
-    'Etc/GMT-3',
105
-    'Etc/GMT-4',
106
-    'Etc/GMT-5',
107
-    'Etc/GMT-6',
108
-    'Etc/GMT-7',
109
-    'Etc/GMT-8',
110
-    'Etc/GMT-9',
111
-    'Etc/GMT0',
112
-    'Etc/Greenwich',
113
-    'Etc/UCT',
114
-    'Etc/Universal',
115
-    'Etc/UTC',
116
-    'Etc/Zulu',
117
-    'Europe/Belfast',
118
-    'Europe/Nicosia',
119
-    'Europe/Tiraspol',
120
-    'GB',
121
-    'GMT',
122
-    'GMT+0',
123
-    'GMT-0',
124
-    'HST',
125
-    'MET',
126
-    'Mexico/BajaNorte',
127
-    'Mexico/BajaSur',
128
-    'Mexico/General',
129
-    'MST',
130
-    'NZ',
131
-    'Pacific/Ponape',
132
-    'Pacific/Samoa',
133
-    'Pacific/Truk',
134
-    'Pacific/Yap',
135
-    'PRC',
136
-    'ROC',
137
-    'ROK',
138
-    'UCT',
139
-    'US/Alaska',
140
-    'US/Aleutian',
141
-    'US/Arizona',
142
-    'US/Central',
143
-    'US/East-Indiana',
144
-    'US/Eastern',
145
-    'US/Hawaii',
146
-    'US/Indiana-Starke',
147
-    'US/Michigan',
148
-    'US/Mountain',
149
-    'US/Pacific',
150
-    'US/Samoa',
151
-    'WET',
19
+	'Africa/Asmera',
20
+	'Africa/Timbuktu',
21
+	'America/Argentina/ComodRivadavia',
22
+	'America/Atka',
23
+	'America/Buenos_Aires',
24
+	'America/Catamarca',
25
+	'America/Coral_Harbour',
26
+	'America/Cordoba',
27
+	'America/Ensenada',
28
+	'America/Fort_Wayne',
29
+	'America/Indianapolis',
30
+	'America/Jujuy',
31
+	'America/Knox_IN',
32
+	'America/Louisville',
33
+	'America/Mendoza',
34
+	'America/Montreal',
35
+	'America/Porto_Acre',
36
+	'America/Rosario',
37
+	'America/Shiprock',
38
+	'America/Virgin',
39
+	'Antarctica/South_Pole',
40
+	'Asia/Ashkhabad',
41
+	'Asia/Calcutta',
42
+	'Asia/Chungking',
43
+	'Asia/Dacca',
44
+	'Asia/Istanbul',
45
+	'Asia/Katmandu',
46
+	'Asia/Macao',
47
+	'Asia/Saigon',
48
+	'Asia/Tel_Aviv',
49
+	'Asia/Thimbu',
50
+	'Asia/Ujung_Pandang',
51
+	'Asia/Ulan_Bator',
52
+	'Atlantic/Faeroe',
53
+	'Atlantic/Jan_Mayen',
54
+	'Australia/ACT',
55
+	'Australia/Canberra',
56
+	'Australia/LHI',
57
+	'Australia/North',
58
+	'Australia/NSW',
59
+	'Australia/Queensland',
60
+	'Australia/South',
61
+	'Australia/Tasmania',
62
+	'Australia/Victoria',
63
+	'Australia/West',
64
+	'Australia/Yancowinna',
65
+	'Brazil/Acre',
66
+	'Brazil/DeNoronha',
67
+	'Brazil/East',
68
+	'Brazil/West',
69
+	'Canada/Atlantic',
70
+	'Canada/Central',
71
+	'Canada/Eastern',
72
+	'Canada/Mountain',
73
+	'Canada/Newfoundland',
74
+	'Canada/Pacific',
75
+	'Canada/Saskatchewan',
76
+	'Canada/Yukon',
77
+	'CET',
78
+	'Chile/Continental',
79
+	'Chile/EasterIsland',
80
+	'EET',
81
+	'EST',
82
+	'Etc/GMT',
83
+	'Etc/GMT+0',
84
+	'Etc/GMT+1',
85
+	'Etc/GMT+10',
86
+	'Etc/GMT+11',
87
+	'Etc/GMT+12',
88
+	'Etc/GMT+2',
89
+	'Etc/GMT+3',
90
+	'Etc/GMT+4',
91
+	'Etc/GMT+5',
92
+	'Etc/GMT+6',
93
+	'Etc/GMT+7',
94
+	'Etc/GMT+8',
95
+	'Etc/GMT+9',
96
+	'Etc/GMT-0',
97
+	'Etc/GMT-1',
98
+	'Etc/GMT-10',
99
+	'Etc/GMT-11',
100
+	'Etc/GMT-12',
101
+	'Etc/GMT-13',
102
+	'Etc/GMT-14',
103
+	'Etc/GMT-2',
104
+	'Etc/GMT-3',
105
+	'Etc/GMT-4',
106
+	'Etc/GMT-5',
107
+	'Etc/GMT-6',
108
+	'Etc/GMT-7',
109
+	'Etc/GMT-8',
110
+	'Etc/GMT-9',
111
+	'Etc/GMT0',
112
+	'Etc/Greenwich',
113
+	'Etc/UCT',
114
+	'Etc/Universal',
115
+	'Etc/UTC',
116
+	'Etc/Zulu',
117
+	'Europe/Belfast',
118
+	'Europe/Nicosia',
119
+	'Europe/Tiraspol',
120
+	'GB',
121
+	'GMT',
122
+	'GMT+0',
123
+	'GMT-0',
124
+	'HST',
125
+	'MET',
126
+	'Mexico/BajaNorte',
127
+	'Mexico/BajaSur',
128
+	'Mexico/General',
129
+	'MST',
130
+	'NZ',
131
+	'Pacific/Ponape',
132
+	'Pacific/Samoa',
133
+	'Pacific/Truk',
134
+	'Pacific/Yap',
135
+	'PRC',
136
+	'ROC',
137
+	'ROK',
138
+	'UCT',
139
+	'US/Alaska',
140
+	'US/Aleutian',
141
+	'US/Arizona',
142
+	'US/Central',
143
+	'US/East-Indiana',
144
+	'US/Eastern',
145
+	'US/Hawaii',
146
+	'US/Indiana-Starke',
147
+	'US/Michigan',
148
+	'US/Mountain',
149
+	'US/Pacific',
150
+	'US/Samoa',
151
+	'WET',
152 152
 ];
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/PHPUnitAssertions.php 2 patches
Indentation   +53 added lines, -53 removed lines patch added patch discarded remove patch
@@ -14,62 +14,62 @@
 block discarded – undo
14 14
  */
15 15
 trait PHPUnitAssertions
16 16
 {
17
-    /**
18
-     * This method tests whether two vcards or icalendar objects are
19
-     * semantically identical.
20
-     *
21
-     * It supports objects being supplied as strings, streams or
22
-     * Sabre\VObject\Component instances.
23
-     *
24
-     * PRODID is removed from both objects as this is often changes and would
25
-     * just get in the way.
26
-     *
27
-     * CALSCALE will automatically get removed if it's set to GREGORIAN.
28
-     *
29
-     * Any property that has the value **ANY** will be treated as a wildcard.
30
-     *
31
-     * @param resource|string|Component $expected
32
-     * @param resource|string|Component $actual
33
-     * @param string                    $message
34
-     */
35
-    public function assertVObjectEqualsVObject($expected, $actual, $message = '')
36
-    {
37
-        $getObj = function ($input) {
38
-            if (is_resource($input)) {
39
-                $input = stream_get_contents($input);
40
-            }
41
-            if (is_string($input)) {
42
-                $input = Reader::read($input);
43
-            }
44
-            if (!$input instanceof Component) {
45
-                $this->fail('Input must be a string, stream or VObject component');
46
-            }
47
-            unset($input->PRODID);
48
-            if ($input instanceof Component\VCalendar && 'GREGORIAN' === (string) $input->CALSCALE) {
49
-                unset($input->CALSCALE);
50
-            }
17
+	/**
18
+	 * This method tests whether two vcards or icalendar objects are
19
+	 * semantically identical.
20
+	 *
21
+	 * It supports objects being supplied as strings, streams or
22
+	 * Sabre\VObject\Component instances.
23
+	 *
24
+	 * PRODID is removed from both objects as this is often changes and would
25
+	 * just get in the way.
26
+	 *
27
+	 * CALSCALE will automatically get removed if it's set to GREGORIAN.
28
+	 *
29
+	 * Any property that has the value **ANY** will be treated as a wildcard.
30
+	 *
31
+	 * @param resource|string|Component $expected
32
+	 * @param resource|string|Component $actual
33
+	 * @param string                    $message
34
+	 */
35
+	public function assertVObjectEqualsVObject($expected, $actual, $message = '')
36
+	{
37
+		$getObj = function ($input) {
38
+			if (is_resource($input)) {
39
+				$input = stream_get_contents($input);
40
+			}
41
+			if (is_string($input)) {
42
+				$input = Reader::read($input);
43
+			}
44
+			if (!$input instanceof Component) {
45
+				$this->fail('Input must be a string, stream or VObject component');
46
+			}
47
+			unset($input->PRODID);
48
+			if ($input instanceof Component\VCalendar && 'GREGORIAN' === (string) $input->CALSCALE) {
49
+				unset($input->CALSCALE);
50
+			}
51 51
 
52
-            return $input;
53
-        };
52
+			return $input;
53
+		};
54 54
 
55
-        $expected = $getObj($expected)->serialize();
56
-        $actual = $getObj($actual)->serialize();
55
+		$expected = $getObj($expected)->serialize();
56
+		$actual = $getObj($actual)->serialize();
57 57
 
58
-        // Finding wildcards in expected.
59
-        preg_match_all('|^([A-Z]+):\\*\\*ANY\\*\\*\r$|m', $expected, $matches, PREG_SET_ORDER);
58
+		// Finding wildcards in expected.
59
+		preg_match_all('|^([A-Z]+):\\*\\*ANY\\*\\*\r$|m', $expected, $matches, PREG_SET_ORDER);
60 60
 
61
-        foreach ($matches as $match) {
62
-            $actual = preg_replace(
63
-                '|^'.preg_quote($match[1], '|').':(.*)\r$|m',
64
-                $match[1].':**ANY**'."\r",
65
-                $actual
66
-            );
67
-        }
61
+		foreach ($matches as $match) {
62
+			$actual = preg_replace(
63
+				'|^'.preg_quote($match[1], '|').':(.*)\r$|m',
64
+				$match[1].':**ANY**'."\r",
65
+				$actual
66
+			);
67
+		}
68 68
 
69
-        $this->assertEquals(
70
-            $expected,
71
-            $actual,
72
-            $message
73
-        );
74
-    }
69
+		$this->assertEquals(
70
+			$expected,
71
+			$actual,
72
+			$message
73
+		);
74
+	}
75 75
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function assertVObjectEqualsVObject($expected, $actual, $message = '')
36 36
     {
37
-        $getObj = function ($input) {
37
+        $getObj = function($input) {
38 38
             if (is_resource($input)) {
39 39
                 $input = stream_get_contents($input);
40 40
             }
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/Splitter/VCard.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -21,54 +21,54 @@
 block discarded – undo
21 21
  */
22 22
 class VCard implements SplitterInterface
23 23
 {
24
-    /**
25
-     * File handle.
26
-     *
27
-     * @var resource
28
-     */
29
-    protected $input;
24
+	/**
25
+	 * File handle.
26
+	 *
27
+	 * @var resource
28
+	 */
29
+	protected $input;
30 30
 
31
-    /**
32
-     * Persistent parser.
33
-     *
34
-     * @var MimeDir
35
-     */
36
-    protected $parser;
31
+	/**
32
+	 * Persistent parser.
33
+	 *
34
+	 * @var MimeDir
35
+	 */
36
+	protected $parser;
37 37
 
38
-    /**
39
-     * Constructor.
40
-     *
41
-     * The splitter should receive an readable file stream as its input.
42
-     *
43
-     * @param resource $input
44
-     * @param int      $options parser options, see the OPTIONS constants
45
-     */
46
-    public function __construct($input, $options = 0)
47
-    {
48
-        $this->input = $input;
49
-        $this->parser = new MimeDir($input, $options);
50
-    }
38
+	/**
39
+	 * Constructor.
40
+	 *
41
+	 * The splitter should receive an readable file stream as its input.
42
+	 *
43
+	 * @param resource $input
44
+	 * @param int      $options parser options, see the OPTIONS constants
45
+	 */
46
+	public function __construct($input, $options = 0)
47
+	{
48
+		$this->input = $input;
49
+		$this->parser = new MimeDir($input, $options);
50
+	}
51 51
 
52
-    /**
53
-     * Every time getNext() is called, a new object will be parsed, until we
54
-     * hit the end of the stream.
55
-     *
56
-     * When the end is reached, null will be returned.
57
-     *
58
-     * @return \Sabre\VObject\Component|null
59
-     */
60
-    public function getNext()
61
-    {
62
-        try {
63
-            $object = $this->parser->parse();
52
+	/**
53
+	 * Every time getNext() is called, a new object will be parsed, until we
54
+	 * hit the end of the stream.
55
+	 *
56
+	 * When the end is reached, null will be returned.
57
+	 *
58
+	 * @return \Sabre\VObject\Component|null
59
+	 */
60
+	public function getNext()
61
+	{
62
+		try {
63
+			$object = $this->parser->parse();
64 64
 
65
-            if (!$object instanceof VObject\Component\VCard) {
66
-                throw new VObject\ParseException('The supplied input contained non-VCARD data.');
67
-            }
68
-        } catch (VObject\EofException $e) {
69
-            return;
70
-        }
65
+			if (!$object instanceof VObject\Component\VCard) {
66
+				throw new VObject\ParseException('The supplied input contained non-VCARD data.');
67
+			}
68
+		} catch (VObject\EofException $e) {
69
+			return;
70
+		}
71 71
 
72
-        return $object;
73
-    }
72
+		return $object;
73
+	}
74 74
 }
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/Splitter/ICalendar.php 1 patch
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -21,86 +21,86 @@
 block discarded – undo
21 21
  */
22 22
 class ICalendar implements SplitterInterface
23 23
 {
24
-    /**
25
-     * Timezones.
26
-     *
27
-     * @var array
28
-     */
29
-    protected $vtimezones = [];
24
+	/**
25
+	 * Timezones.
26
+	 *
27
+	 * @var array
28
+	 */
29
+	protected $vtimezones = [];
30 30
 
31
-    /**
32
-     * iCalendar objects.
33
-     *
34
-     * @var array
35
-     */
36
-    protected $objects = [];
31
+	/**
32
+	 * iCalendar objects.
33
+	 *
34
+	 * @var array
35
+	 */
36
+	protected $objects = [];
37 37
 
38
-    /**
39
-     * Constructor.
40
-     *
41
-     * The splitter should receive an readable file stream as its input.
42
-     *
43
-     * @param resource $input
44
-     * @param int      $options parser options, see the OPTIONS constants
45
-     */
46
-    public function __construct($input, $options = 0)
47
-    {
48
-        $data = VObject\Reader::read($input, $options);
38
+	/**
39
+	 * Constructor.
40
+	 *
41
+	 * The splitter should receive an readable file stream as its input.
42
+	 *
43
+	 * @param resource $input
44
+	 * @param int      $options parser options, see the OPTIONS constants
45
+	 */
46
+	public function __construct($input, $options = 0)
47
+	{
48
+		$data = VObject\Reader::read($input, $options);
49 49
 
50
-        if (!$data instanceof VObject\Component\VCalendar) {
51
-            throw new VObject\ParseException('Supplied input could not be parsed as VCALENDAR.');
52
-        }
50
+		if (!$data instanceof VObject\Component\VCalendar) {
51
+			throw new VObject\ParseException('Supplied input could not be parsed as VCALENDAR.');
52
+		}
53 53
 
54
-        foreach ($data->children() as $component) {
55
-            if (!$component instanceof VObject\Component) {
56
-                continue;
57
-            }
54
+		foreach ($data->children() as $component) {
55
+			if (!$component instanceof VObject\Component) {
56
+				continue;
57
+			}
58 58
 
59
-            // Get all timezones
60
-            if ('VTIMEZONE' === $component->name) {
61
-                $this->vtimezones[(string) $component->TZID] = $component;
62
-                continue;
63
-            }
59
+			// Get all timezones
60
+			if ('VTIMEZONE' === $component->name) {
61
+				$this->vtimezones[(string) $component->TZID] = $component;
62
+				continue;
63
+			}
64 64
 
65
-            // Get component UID for recurring Events search
66
-            if (!$component->UID) {
67
-                $component->UID = sha1(microtime()).'-vobjectimport';
68
-            }
69
-            $uid = (string) $component->UID;
65
+			// Get component UID for recurring Events search
66
+			if (!$component->UID) {
67
+				$component->UID = sha1(microtime()).'-vobjectimport';
68
+			}
69
+			$uid = (string) $component->UID;
70 70
 
71
-            // Take care of recurring events
72
-            if (!array_key_exists($uid, $this->objects)) {
73
-                $this->objects[$uid] = new VCalendar();
74
-            }
71
+			// Take care of recurring events
72
+			if (!array_key_exists($uid, $this->objects)) {
73
+				$this->objects[$uid] = new VCalendar();
74
+			}
75 75
 
76
-            $this->objects[$uid]->add(clone $component);
77
-        }
78
-    }
76
+			$this->objects[$uid]->add(clone $component);
77
+		}
78
+	}
79 79
 
80
-    /**
81
-     * Every time getNext() is called, a new object will be parsed, until we
82
-     * hit the end of the stream.
83
-     *
84
-     * When the end is reached, null will be returned.
85
-     *
86
-     * @return \Sabre\VObject\Component|null
87
-     */
88
-    public function getNext()
89
-    {
90
-        if ($object = array_shift($this->objects)) {
91
-            // create our baseobject
92
-            $object->version = '2.0';
93
-            $object->prodid = '-//Sabre//Sabre VObject '.VObject\Version::VERSION.'//EN';
94
-            $object->calscale = 'GREGORIAN';
80
+	/**
81
+	 * Every time getNext() is called, a new object will be parsed, until we
82
+	 * hit the end of the stream.
83
+	 *
84
+	 * When the end is reached, null will be returned.
85
+	 *
86
+	 * @return \Sabre\VObject\Component|null
87
+	 */
88
+	public function getNext()
89
+	{
90
+		if ($object = array_shift($this->objects)) {
91
+			// create our baseobject
92
+			$object->version = '2.0';
93
+			$object->prodid = '-//Sabre//Sabre VObject '.VObject\Version::VERSION.'//EN';
94
+			$object->calscale = 'GREGORIAN';
95 95
 
96
-            // add vtimezone information to obj (if we have it)
97
-            foreach ($this->vtimezones as $vtimezone) {
98
-                $object->add($vtimezone);
99
-            }
96
+			// add vtimezone information to obj (if we have it)
97
+			foreach ($this->vtimezones as $vtimezone) {
98
+				$object->add($vtimezone);
99
+			}
100 100
 
101
-            return $object;
102
-        } else {
103
-            return;
104
-        }
105
-    }
101
+			return $object;
102
+		} else {
103
+			return;
104
+		}
105
+	}
106 106
 }
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/Splitter/SplitterInterface.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -17,22 +17,22 @@
 block discarded – undo
17 17
  */
18 18
 interface SplitterInterface
19 19
 {
20
-    /**
21
-     * Constructor.
22
-     *
23
-     * The splitter should receive an readable file stream as its input.
24
-     *
25
-     * @param resource $input
26
-     */
27
-    public function __construct($input);
20
+	/**
21
+	 * Constructor.
22
+	 *
23
+	 * The splitter should receive an readable file stream as its input.
24
+	 *
25
+	 * @param resource $input
26
+	 */
27
+	public function __construct($input);
28 28
 
29
-    /**
30
-     * Every time getNext() is called, a new object will be parsed, until we
31
-     * hit the end of the stream.
32
-     *
33
-     * When the end is reached, null will be returned.
34
-     *
35
-     * @return \Sabre\VObject\Component|null
36
-     */
37
-    public function getNext();
29
+	/**
30
+	 * Every time getNext() is called, a new object will be parsed, until we
31
+	 * hit the end of the stream.
32
+	 *
33
+	 * When the end is reached, null will be returned.
34
+	 *
35
+	 * @return \Sabre\VObject\Component|null
36
+	 */
37
+	public function getNext();
38 38
 }
Please login to merge, or discard this patch.
htdocs/includes/sabre/sabre/vobject/lib/FreeBusyData.php 1 patch
Indentation   +171 added lines, -171 removed lines patch added patch discarded remove patch
@@ -11,175 +11,175 @@
 block discarded – undo
11 11
  */
12 12
 class FreeBusyData
13 13
 {
14
-    /**
15
-     * Start timestamp.
16
-     *
17
-     * @var int
18
-     */
19
-    protected $start;
20
-
21
-    /**
22
-     * End timestamp.
23
-     *
24
-     * @var int
25
-     */
26
-    protected $end;
27
-
28
-    /**
29
-     * A list of free-busy times.
30
-     *
31
-     * @var array
32
-     */
33
-    protected $data;
34
-
35
-    public function __construct($start, $end)
36
-    {
37
-        $this->start = $start;
38
-        $this->end = $end;
39
-        $this->data = [];
40
-
41
-        $this->data[] = [
42
-            'start' => $this->start,
43
-            'end' => $this->end,
44
-            'type' => 'FREE',
45
-        ];
46
-    }
47
-
48
-    /**
49
-     * Adds free or busytime to the data.
50
-     *
51
-     * @param int    $start
52
-     * @param int    $end
53
-     * @param string $type  FREE, BUSY, BUSY-UNAVAILABLE or BUSY-TENTATIVE
54
-     */
55
-    public function add($start, $end, $type)
56
-    {
57
-        if ($start > $this->end || $end < $this->start) {
58
-            // This new data is outside our timerange.
59
-            return;
60
-        }
61
-
62
-        if ($start < $this->start) {
63
-            // The item starts before our requested time range
64
-            $start = $this->start;
65
-        }
66
-        if ($end > $this->end) {
67
-            // The item ends after our requested time range
68
-            $end = $this->end;
69
-        }
70
-
71
-        // Finding out where we need to insert the new item.
72
-        $currentIndex = 0;
73
-        while ($start > $this->data[$currentIndex]['end']) {
74
-            ++$currentIndex;
75
-        }
76
-
77
-        // The standard insertion point will be one _after_ the first
78
-        // overlapping item.
79
-        $insertStartIndex = $currentIndex + 1;
80
-
81
-        $newItem = [
82
-            'start' => $start,
83
-            'end' => $end,
84
-            'type' => $type,
85
-        ];
86
-
87
-        $precedingItem = $this->data[$insertStartIndex - 1];
88
-        if ($this->data[$insertStartIndex - 1]['start'] === $start) {
89
-            // The old item starts at the exact same point as the new item.
90
-            --$insertStartIndex;
91
-        }
92
-
93
-        // Now we know where to insert the item, we need to know where it
94
-        // starts overlapping with items on the tail end. We need to start
95
-        // looking one item before the insertStartIndex, because it's possible
96
-        // that the new item 'sits inside' the previous old item.
97
-        if ($insertStartIndex > 0) {
98
-            $currentIndex = $insertStartIndex - 1;
99
-        } else {
100
-            $currentIndex = 0;
101
-        }
102
-
103
-        while ($end > $this->data[$currentIndex]['end']) {
104
-            ++$currentIndex;
105
-        }
106
-
107
-        // What we are about to insert into the array
108
-        $newItems = [
109
-            $newItem,
110
-        ];
111
-
112
-        // This is the amount of items that are completely overwritten by the
113
-        // new item.
114
-        $itemsToDelete = $currentIndex - $insertStartIndex;
115
-        if ($this->data[$currentIndex]['end'] <= $end) {
116
-            ++$itemsToDelete;
117
-        }
118
-
119
-        // If itemsToDelete was -1, it means that the newly inserted item is
120
-        // actually sitting inside an existing one. This means we need to split
121
-        // the item at the current position in two and insert the new item in
122
-        // between.
123
-        if (-1 === $itemsToDelete) {
124
-            $itemsToDelete = 0;
125
-            if ($newItem['end'] < $precedingItem['end']) {
126
-                $newItems[] = [
127
-                    'start' => $newItem['end'] + 1,
128
-                    'end' => $precedingItem['end'],
129
-                    'type' => $precedingItem['type'],
130
-                ];
131
-            }
132
-        }
133
-
134
-        array_splice(
135
-            $this->data,
136
-            $insertStartIndex,
137
-            $itemsToDelete,
138
-            $newItems
139
-        );
140
-
141
-        $doMerge = false;
142
-        $mergeOffset = $insertStartIndex;
143
-        $mergeItem = $newItem;
144
-        $mergeDelete = 1;
145
-
146
-        if (isset($this->data[$insertStartIndex - 1])) {
147
-            // Updating the start time of the previous item.
148
-            $this->data[$insertStartIndex - 1]['end'] = $start;
149
-
150
-            // If the previous and the current are of the same type, we can
151
-            // merge them into one item.
152
-            if ($this->data[$insertStartIndex - 1]['type'] === $this->data[$insertStartIndex]['type']) {
153
-                $doMerge = true;
154
-                --$mergeOffset;
155
-                ++$mergeDelete;
156
-                $mergeItem['start'] = $this->data[$insertStartIndex - 1]['start'];
157
-            }
158
-        }
159
-        if (isset($this->data[$insertStartIndex + 1])) {
160
-            // Updating the start time of the next item.
161
-            $this->data[$insertStartIndex + 1]['start'] = $end;
162
-
163
-            // If the next and the current are of the same type, we can
164
-            // merge them into one item.
165
-            if ($this->data[$insertStartIndex + 1]['type'] === $this->data[$insertStartIndex]['type']) {
166
-                $doMerge = true;
167
-                ++$mergeDelete;
168
-                $mergeItem['end'] = $this->data[$insertStartIndex + 1]['end'];
169
-            }
170
-        }
171
-        if ($doMerge) {
172
-            array_splice(
173
-                $this->data,
174
-                $mergeOffset,
175
-                $mergeDelete,
176
-                [$mergeItem]
177
-            );
178
-        }
179
-    }
180
-
181
-    public function getData()
182
-    {
183
-        return $this->data;
184
-    }
14
+	/**
15
+	 * Start timestamp.
16
+	 *
17
+	 * @var int
18
+	 */
19
+	protected $start;
20
+
21
+	/**
22
+	 * End timestamp.
23
+	 *
24
+	 * @var int
25
+	 */
26
+	protected $end;
27
+
28
+	/**
29
+	 * A list of free-busy times.
30
+	 *
31
+	 * @var array
32
+	 */
33
+	protected $data;
34
+
35
+	public function __construct($start, $end)
36
+	{
37
+		$this->start = $start;
38
+		$this->end = $end;
39
+		$this->data = [];
40
+
41
+		$this->data[] = [
42
+			'start' => $this->start,
43
+			'end' => $this->end,
44
+			'type' => 'FREE',
45
+		];
46
+	}
47
+
48
+	/**
49
+	 * Adds free or busytime to the data.
50
+	 *
51
+	 * @param int    $start
52
+	 * @param int    $end
53
+	 * @param string $type  FREE, BUSY, BUSY-UNAVAILABLE or BUSY-TENTATIVE
54
+	 */
55
+	public function add($start, $end, $type)
56
+	{
57
+		if ($start > $this->end || $end < $this->start) {
58
+			// This new data is outside our timerange.
59
+			return;
60
+		}
61
+
62
+		if ($start < $this->start) {
63
+			// The item starts before our requested time range
64
+			$start = $this->start;
65
+		}
66
+		if ($end > $this->end) {
67
+			// The item ends after our requested time range
68
+			$end = $this->end;
69
+		}
70
+
71
+		// Finding out where we need to insert the new item.
72
+		$currentIndex = 0;
73
+		while ($start > $this->data[$currentIndex]['end']) {
74
+			++$currentIndex;
75
+		}
76
+
77
+		// The standard insertion point will be one _after_ the first
78
+		// overlapping item.
79
+		$insertStartIndex = $currentIndex + 1;
80
+
81
+		$newItem = [
82
+			'start' => $start,
83
+			'end' => $end,
84
+			'type' => $type,
85
+		];
86
+
87
+		$precedingItem = $this->data[$insertStartIndex - 1];
88
+		if ($this->data[$insertStartIndex - 1]['start'] === $start) {
89
+			// The old item starts at the exact same point as the new item.
90
+			--$insertStartIndex;
91
+		}
92
+
93
+		// Now we know where to insert the item, we need to know where it
94
+		// starts overlapping with items on the tail end. We need to start
95
+		// looking one item before the insertStartIndex, because it's possible
96
+		// that the new item 'sits inside' the previous old item.
97
+		if ($insertStartIndex > 0) {
98
+			$currentIndex = $insertStartIndex - 1;
99
+		} else {
100
+			$currentIndex = 0;
101
+		}
102
+
103
+		while ($end > $this->data[$currentIndex]['end']) {
104
+			++$currentIndex;
105
+		}
106
+
107
+		// What we are about to insert into the array
108
+		$newItems = [
109
+			$newItem,
110
+		];
111
+
112
+		// This is the amount of items that are completely overwritten by the
113
+		// new item.
114
+		$itemsToDelete = $currentIndex - $insertStartIndex;
115
+		if ($this->data[$currentIndex]['end'] <= $end) {
116
+			++$itemsToDelete;
117
+		}
118
+
119
+		// If itemsToDelete was -1, it means that the newly inserted item is
120
+		// actually sitting inside an existing one. This means we need to split
121
+		// the item at the current position in two and insert the new item in
122
+		// between.
123
+		if (-1 === $itemsToDelete) {
124
+			$itemsToDelete = 0;
125
+			if ($newItem['end'] < $precedingItem['end']) {
126
+				$newItems[] = [
127
+					'start' => $newItem['end'] + 1,
128
+					'end' => $precedingItem['end'],
129
+					'type' => $precedingItem['type'],
130
+				];
131
+			}
132
+		}
133
+
134
+		array_splice(
135
+			$this->data,
136
+			$insertStartIndex,
137
+			$itemsToDelete,
138
+			$newItems
139
+		);
140
+
141
+		$doMerge = false;
142
+		$mergeOffset = $insertStartIndex;
143
+		$mergeItem = $newItem;
144
+		$mergeDelete = 1;
145
+
146
+		if (isset($this->data[$insertStartIndex - 1])) {
147
+			// Updating the start time of the previous item.
148
+			$this->data[$insertStartIndex - 1]['end'] = $start;
149
+
150
+			// If the previous and the current are of the same type, we can
151
+			// merge them into one item.
152
+			if ($this->data[$insertStartIndex - 1]['type'] === $this->data[$insertStartIndex]['type']) {
153
+				$doMerge = true;
154
+				--$mergeOffset;
155
+				++$mergeDelete;
156
+				$mergeItem['start'] = $this->data[$insertStartIndex - 1]['start'];
157
+			}
158
+		}
159
+		if (isset($this->data[$insertStartIndex + 1])) {
160
+			// Updating the start time of the next item.
161
+			$this->data[$insertStartIndex + 1]['start'] = $end;
162
+
163
+			// If the next and the current are of the same type, we can
164
+			// merge them into one item.
165
+			if ($this->data[$insertStartIndex + 1]['type'] === $this->data[$insertStartIndex]['type']) {
166
+				$doMerge = true;
167
+				++$mergeDelete;
168
+				$mergeItem['end'] = $this->data[$insertStartIndex + 1]['end'];
169
+			}
170
+		}
171
+		if ($doMerge) {
172
+			array_splice(
173
+				$this->data,
174
+				$mergeOffset,
175
+				$mergeDelete,
176
+				[$mergeItem]
177
+			);
178
+		}
179
+	}
180
+
181
+	public function getData()
182
+	{
183
+		return $this->data;
184
+	}
185 185
 }
Please login to merge, or discard this patch.