Passed
Push — master ( 068fe9...0fc7d4 )
by
unknown
05:57 queued 02:39
created
lib/wbxml/wbxmldefs.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 0x3E => 'CompleteTime', // Since 12.0
211 211
                 0x3F => 'DisallowNewTimeProposal', // Since 14.0
212 212
             ],
213
-            3 => [ // Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501
213
+            3 => [// Code page 3 is no longer in use, however, tokens 05 through 17 have been defined. 20100501
214 214
                 0x05 => 'Notify',
215 215
                 0x06 => 'Notification',
216 216
                 0x07 => 'Version',
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
                 0x11 => 'Status', // Since 14.1
544 544
                 0x12 => 'Data', // Since 14.1
545 545
             ],
546
-            0x11 => [ // Since 12.0
546
+            0x11 => [// Since 12.0
547 547
                 0x05 => 'BodyPreference',
548 548
                 0x06 => 'Type',
549 549
                 0x07 => 'TruncationSize',
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
                 0x1A => 'BodyPart', // Since 14.1
568 568
                 0x1B => 'Status', // Since 14.1
569 569
             ],
570
-            0x12 => [ // Since 12.0
570
+            0x12 => [// Since 12.0
571 571
                 0x05 => 'Settings',
572 572
                 0x06 => 'Status',
573 573
                 0x07 => 'Get',
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
                 0x29 => 'SendDisabled', // Since 14.1
608 608
                 0x2B => 'RightsManagementInformation', // Since 14.1
609 609
             ],
610
-            0x13 => [ // Since 12.0
610
+            0x13 => [// Since 12.0
611 611
                 0x05 => 'LinkId',
612 612
                 0x06 => 'DisplayName',
613 613
                 0x07 => 'IsFolder',
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
                 0x0B => 'ContentLength',
618 618
                 0x0C => 'ContentType',
619 619
             ],
620
-            0x14 => [ // Since 12.0
620
+            0x14 => [// Since 12.0
621 621
                 0x05 => 'ItemOperations',
622 622
                 0x06 => 'Fetch',
623 623
                 0x07 => 'Store',
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
                 0x18 => 'ConversationId', // Since 14.0
641 641
                 0x19 => 'MoveAlways', // Since 14.0
642 642
             ],
643
-            0x15 => [ // Since 14.0
643
+            0x15 => [// Since 14.0
644 644
                 0x05 => 'SendMail',
645 645
                 0x06 => 'SmartForward',
646 646
                 0x07 => 'SmartReply',
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
                 0x12 => 'Status',
658 658
                 0x13 => 'AccountId', // Since 14.1
659 659
             ],
660
-            0x16 => [ // Since 14.0
660
+            0x16 => [// Since 14.0
661 661
                 0x05 => 'UmCallerId',
662 662
                 0x06 => 'UmUserNotes',
663 663
                 0x07 => 'UmAttDuration',
@@ -674,14 +674,14 @@  discard block
 block discarded – undo
674 674
                 0x12 => 'FirstDayOfWeek', // Since 14.1
675 675
                 0x13 => 'MeetingMessageType', // Since 14.1
676 676
             ],
677
-            0x17 => [ // Since 14.0
677
+            0x17 => [// Since 14.0
678 678
                 0x05 => 'Subject',
679 679
                 0x06 => 'MessageClass',
680 680
                 0x07 => 'LastModifiedDate',
681 681
                 0x08 => 'Categories',
682 682
                 0x09 => 'Category',
683 683
             ],
684
-            0x18 => [ // Since 14.1
684
+            0x18 => [// Since 14.1
685 685
                 0x05 => 'RightsManagementSupport',
686 686
                 0x06 => 'RightsManagementTemplates',
687 687
                 0x07 => 'RightsManagementTemplate',
Please login to merge, or discard this patch.
lib/utils/stringstreamwrapper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     public function stream_write($data) {
72 72
         $l = strlen($data);
73
-        $this->stringstream = substr($this->stringstream, 0, $this->position) . $data . substr($this->stringstream, $this->position += $l);
73
+        $this->stringstream = substr($this->stringstream, 0, $this->position).$data.substr($this->stringstream, $this->position += $l);
74 74
         $this->stringlength = strlen($this->stringstream);
75 75
 
76 76
         return $l;
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     public static function Open($string, $truncatehtmlsafe = false) {
158 158
         $context = stream_context_create([self::PROTOCOL => ['string' => &$string, 'truncatehtmlsafe' => $truncatehtmlsafe]]);
159 159
 
160
-        return fopen(self::PROTOCOL . '://', 'r', false, $context);
160
+        return fopen(self::PROTOCOL.'://', 'r', false, $context);
161 161
     }
162 162
 }
163 163
 
Please login to merge, or discard this patch.
lib/utils/g_RFC822.php 2 patches
Switch Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -550,22 +550,22 @@
 block discarded – undo
550 550
 
551 551
         for (; $i < $iMax; ++$i) {
552 552
             switch ($string[$i]) {
553
-            case '\\':
554
-                ++$slashes;
553
+                case '\\':
554
+                    ++$slashes;
555 555
 
556
-                break;
556
+                    break;
557 557
 
558
-            case '"':
559
-                if (0 == $slashes % 2) {
560
-                    $in_quote = !$in_quote;
561
-                }
562
-                // Fall through to default action below.
558
+                case '"':
559
+                    if (0 == $slashes % 2) {
560
+                        $in_quote = !$in_quote;
561
+                    }
562
+                    // Fall through to default action below.
563 563
 
564
-                // no break
565
-            default:
566
-                $slashes = 0;
564
+                    // no break
565
+                default:
566
+                    $slashes = 0;
567 567
 
568
-                break;
568
+                    break;
569 569
             }
570 570
         }
571 571
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
                 $comments[] = $comment;
287 287
 
288 288
                 // +2 is for the brackets
289
-                $_mailbox = substr($_mailbox, strpos($_mailbox, '(' . $comment) + strlen($comment) + 2);
289
+                $_mailbox = substr($_mailbox, strpos($_mailbox, '('.$comment) + strlen($comment) + 2);
290 290
             } else {
291 291
                 break;
292 292
             }
@@ -304,11 +304,11 @@  discard block
 block discarded – undo
304 304
             $name = $this->_splitCheck($parts, '<');
305 305
 
306 306
             $phrase = trim($name);
307
-            $route_addr = trim(substr($mailbox, strlen($name . '<'), -1));
307
+            $route_addr = trim(substr($mailbox, strlen($name.'<'), -1));
308 308
 
309 309
             // grommunio-sync fix for umlauts and other special chars
310 310
             if ('"' != substr($phrase, 0, 1) && '"' != substr($phrase, -1)) {
311
-                $phrase = '"' . $phrase . '"';
311
+                $phrase = '"'.$phrase.'"';
312 312
             }
313 313
 
314 314
             if (false === $this->_validatePhrase($phrase) || ($route_addr = $this->_validateRouteAddr($route_addr)) === false) {
@@ -398,7 +398,7 @@  discard block
 block discarded – undo
398 398
      * @return bool always false as there was an error
399 399
      */
400 400
     public function raiseError($message) {
401
-        SLog::Write(LOGLEVEL_ERROR, 'z_RFC822 error: ' . $message);
401
+        SLog::Write(LOGLEVEL_ERROR, 'z_RFC822 error: '.$message);
402 402
 
403 403
         return false;
404 404
     }
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 
437 437
             // First check there's a colon at all:
438 438
             if (false === strpos($string, ':')) {
439
-                $this->error = 'Invalid address: ' . $string;
439
+                $this->error = 'Invalid address: '.$string;
440 440
 
441 441
                 return false;
442 442
             }
@@ -518,7 +518,7 @@  discard block
 block discarded – undo
518 518
                 || $this->_hasUnclosedBrackets($string, '()')
519 519
                 || '\\' == substr($string, -1)) {
520 520
                 if (isset($parts[$i + 1])) {
521
-                    $string = $string . $char . $parts[$i + 1];
521
+                    $string = $string.$char.$parts[$i + 1];
522 522
                 } else {
523 523
                     $this->error = 'Invalid address spec. Unclosed bracket or quotes';
524 524
 
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
         $this->_hasUnclosedBracketsSub($string, $num_angle_end, $chars[1]);
590 590
 
591 591
         if ($num_angle_start < $num_angle_end) {
592
-            $this->error = 'Invalid address spec. Unmatched quote or bracket (' . $chars . ')';
592
+            $this->error = 'Invalid address spec. Unmatched quote or bracket ('.$chars.')';
593 593
 
594 594
             return false;
595 595
         }
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
                 --$num;
614 614
             }
615 615
             if (isset($parts[$i + 1])) {
616
-                $parts[$i + 1] = $parts[$i] . $char . $parts[$i + 1];
616
+                $parts[$i + 1] = $parts[$i].$char.$parts[$i + 1];
617 617
             }
618 618
         }
619 619
 
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
                 $structure->groupname = $groupname;
653 653
             }
654 654
 
655
-            $address['address'] = ltrim(substr($address['address'], strlen($groupname . ':')));
655
+            $address['address'] = ltrim(substr($address['address'], strlen($groupname.':')));
656 656
         }
657 657
 
658 658
         // If a group then split on comma and put into an array.
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
             while (strlen($address['address']) > 0) {
662 662
                 $parts = explode(',', $address['address']);
663 663
                 $addresses[] = $this->_splitCheck($parts, ',');
664
-                $address['address'] = trim(substr($address['address'], strlen(end($addresses) . ',')));
664
+                $address['address'] = trim(substr($address['address'], strlen(end($addresses).',')));
665 665
             }
666 666
         } else {
667 667
             $addresses[] = $address['address'];
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
         for ($i = 0; $i < count($addresses); ++$i) {
679 679
             if (!$this->validateMailbox($addresses[$i])) {
680 680
                 if (empty($this->error)) {
681
-                    $this->error = 'Validation failed for: ' . $addresses[$i];
681
+                    $this->error = 'Validation failed for: '.$addresses[$i];
682 682
                 }
683 683
 
684 684
                 return false;
@@ -830,7 +830,7 @@  discard block
 block discarded – undo
830 830
                 return false;
831 831
             }
832 832
 
833
-            $addr_spec = substr($route_addr, strlen($route . ':'));
833
+            $addr_spec = substr($route_addr, strlen($route.':'));
834 834
 
835 835
             // Validate addr-spec part.
836 836
             if (($addr_spec = $this->_validateAddrSpec($addr_spec)) === false) {
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
         if (false !== strpos($addr_spec, '@')) {
952 952
             $parts = explode('@', $addr_spec);
953 953
             $local_part = $this->_splitCheck($parts, '@');
954
-            $domain = substr($addr_spec, strlen($local_part . '@'));
954
+            $domain = substr($addr_spec, strlen($local_part.'@'));
955 955
 
956 956
         // No @ sign so assume the default domain.
957 957
         } else {
Please login to merge, or discard this patch.
lib/utils/compat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -199,13 +199,13 @@
 block discarded – undo
199 199
 break;
200 200
 
201 201
                 default:
202
-                    exit('Unknown http status code "' . htmlentities($code) . '"');
202
+                    exit('Unknown http status code "'.htmlentities($code).'"');
203 203
 
204 204
                     break;
205 205
             }
206 206
 
207 207
             $protocol = (isset($_SERVER['SERVER_PROTOCOL']) ? $_SERVER['SERVER_PROTOCOL'] : 'HTTP/1.0');
208
-            header($protocol . ' ' . $code . ' ' . $text);
208
+            header($protocol.' '.$code.' '.$text);
209 209
 
210 210
             $GLOBALS['http_response_code'] = $code;
211 211
         } else {
Please login to merge, or discard this patch.
lib/utils/utils.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -64,17 +64,17 @@  discard block
 block discarded – undo
64 64
             $zcs = $zip;
65 65
         }
66 66
         if (isset($city) && '' != $city) {
67
-            $zcs .= (($zcs) ? ' ' : '') . $city;
67
+            $zcs .= (($zcs) ? ' ' : '').$city;
68 68
         }
69 69
         if (isset($state) && '' != $state) {
70
-            $zcs .= (($zcs) ? ' ' : '') . $state;
70
+            $zcs .= (($zcs) ? ' ' : '').$state;
71 71
         }
72 72
         if ($zcs) {
73
-            $out = $zcs . "\r\n" . $out;
73
+            $out = $zcs."\r\n".$out;
74 74
         }
75 75
 
76 76
         if (isset($street) && '' != $street) {
77
-            $out = $street . (($out) ? "\r\n\r\n" . $out : '');
77
+            $out = $street.(($out) ? "\r\n\r\n".$out : '');
78 78
         }
79 79
 
80 80
         return ($out) ? $out : null;
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     public static function BuildFileAs($lastname = '', $firstname = '', $middlename = '', $company = '') {
94 94
         if (defined('FILEAS_ORDER')) {
95 95
             $fileas = $lastfirst = $firstlast = '';
96
-            $names = trim($firstname . ' ' . $middlename);
96
+            $names = trim($firstname.' '.$middlename);
97 97
             $lastname = trim($lastname);
98 98
             $company = trim($company);
99 99
 
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
             $OLUid .= pack('V', 1);
257 257
             $OLUid .= $icalUid;
258 258
 
259
-            return hex2bin('040000008200E00074C5B7101A82E0080000000000000000000000000000000000000000' . bin2hex($OLUid) . '00');
259
+            return hex2bin('040000008200E00074C5B7101A82E0080000000000000000000000000000000000000000'.bin2hex($OLUid).'00');
260 260
         }
261 261
 
262 262
         return hex2bin($icalUid);
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
      */
416 416
     public static function Utf8_truncate($string, $length, $htmlsafe = false) {
417 417
         // make sure length is always an integer
418
-        $length = (int) $length;
418
+        $length = (int)$length;
419 419
 
420 420
         // if the input string is shorter then the trunction, make sure it's valid UTF-8!
421 421
         if (strlen($string) <= $length) {
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      * @return bool
477 477
      */
478 478
     public static function IsBase64String($string) {
479
-        return (bool) preg_match('#^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+\\/]{3}=|[A-Za-z0-9+/]{4})?$#', $string);
479
+        return (bool)preg_match('#^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+\\/]{3}=|[A-Za-z0-9+/]{4})?$#', $string);
480 480
     }
481 481
 
482 482
     /**
@@ -972,7 +972,7 @@  discard block
 block discarded – undo
972 972
     }
973 973
 
974 974
     if (function_exists('iconv')) {
975
-        return @iconv('UTF-8', 'Windows-1252' . $option, $string);
975
+        return @iconv('UTF-8', 'Windows-1252'.$option, $string);
976 976
     }
977 977
 
978 978
     return utf8_decode($string); // no euro support here
@@ -985,7 +985,7 @@  discard block
 block discarded – undo
985 985
     }
986 986
 
987 987
     if (function_exists('iconv')) {
988
-        return @iconv('Windows-1252', 'UTF-8' . $option, $string);
988
+        return @iconv('Windows-1252', 'UTF-8'.$option, $string);
989 989
     }
990 990
 
991 991
     return utf8_encode($string); // no euro support here
Please login to merge, or discard this patch.
lib/utils/timezoneutil.php 1 patch
Spacing   +160 added lines, -160 removed lines patch added patch discarded remove patch
@@ -17,83 +17,83 @@  discard block
 block discarded – undo
17 17
      * Updated at: 01.06.2012
18 18
      */
19 19
     private static $mstzones = [
20
-        '000' => ['Dateline Standard Time',                    '(GMT-12:00) International Date Line West'],
21
-        '001' => ['Samoa Standard Time',                       '(GMT-11:00) Midway Island, Samoa'],
22
-        '002' => ['Hawaiian Standard Time',                    '(GMT-10:00) Hawaii'],
23
-        '003' => ['Alaskan Standard Time',                     '(GMT-09:00) Alaska'],
24
-        '004' => ['Pacific Standard Time',                     '(GMT-08:00) Pacific Time (US and Canada); Tijuana'],
25
-        '010' => ['Mountain Standard Time',                    '(GMT-07:00) Mountain Time (US and Canada)'],
26
-        '013' => ['Mexico Standard Time 2',                    '(GMT-07:00) Chihuahua, La Paz, Mazatlan'],
27
-        '015' => ['US Mountain Standard Time',                 '(GMT-07:00) Arizona'],
28
-        '020' => ['Central Standard Time',                     '(GMT-06:00) Central Time (US and Canada'],
29
-        '025' => ['Canada Central Standard Time',              '(GMT-06:00) Saskatchewan'],
30
-        '030' => ['Mexico Standard Time',                      '(GMT-06:00) Guadalajara, Mexico City, Monterrey'],
31
-        '033' => ['Central America Standard Time',             '(GMT-06:00) Central America'],
32
-        '035' => ['Eastern Standard Time',                     '(GMT-05:00) Eastern Time (US and Canada)'],
33
-        '040' => ['US Eastern Standard Time',                  '(GMT-05:00) Indiana (East)'],
34
-        '045' => ['SA Pacific Standard Time',                  '(GMT-05:00) Bogota, Lima, Quito'],
35
-        'uk1' => ['Venezuela Standard Time',                   '(GMT-04:30) Caracas'],                     // added
36
-        '050' => ['Atlantic Standard Time',                    '(GMT-04:00) Atlantic Time (Canada)'],
37
-        '055' => ['SA Western Standard Time',                  '(GMT-04:00) Caracas, La Paz'],
38
-        '056' => ['Pacific SA Standard Time',                  '(GMT-04:00) Santiago'],
39
-        '060' => ['Newfoundland and Labrador Standard Time',   '(GMT-03:30) Newfoundland and Labrador'],
40
-        '065' => ['E South America Standard Time',            '(GMT-03:00) Brasilia'],
41
-        '070' => ['SA Eastern Standard Time',                  '(GMT-03:00) Buenos Aires, Georgetown'],
42
-        '073' => ['Greenland Standard Time',                   '(GMT-03:00) Greenland'],
43
-        '075' => ['Mid-Atlantic Standard Time',                '(GMT-02:00) Mid-Atlantic'],
44
-        '080' => ['Azores Standard Time',                      '(GMT-01:00) Azores'],
45
-        '083' => ['Cape Verde Standard Time',                  '(GMT-01:00) Cape Verde Islands'],
46
-        '085' => ['GMT Standard Time',                         '(GMT) Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London'],
47
-        '090' => ['Greenwich Standard Time',                   '(GMT) Casablanca, Monrovia'],
48
-        '095' => ['Central Europe Standard Time',              '(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'],
49
-        '100' => ['Central European Standard Time',            '(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb'],
50
-        '105' => ['Romance Standard Time',                     '(GMT+01:00) Brussels, Copenhagen, Madrid, Paris'],
51
-        '110' => ['W Europe Standard Time',                    '(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'],
52
-        '111' => ['W. Europe Standard Time',                   '(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'],
53
-        '113' => ['W Central Africa Standard Time',            '(GMT+01:00) West Central Africa'],
54
-        '115' => ['E Europe Standard Time',                    '(GMT+02:00) Bucharest'],
55
-        '120' => ['Egypt Standard Time',                       '(GMT+02:00) Cairo'],
56
-        '125' => ['FLE Standard Time',                         '(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius'],
57
-        '130' => ['GTB Standard Time',                         '(GMT+02:00) Athens, Istanbul, Minsk'],
58
-        '135' => ['Israel Standard Time',                      '(GMT+02:00) Jerusalem'],
59
-        '140' => ['South Africa Standard Time',                '(GMT+02:00) Harare, Pretoria'],
60
-        '145' => ['Russian Standard Time',                     '(GMT+03:00) Moscow, St. Petersburg, Volgograd'],
61
-        '150' => ['Arab Standard Time',                        '(GMT+03:00) Kuwait, Riyadh'],
62
-        '155' => ['E Africa Standard Time',                    '(GMT+03:00) Nairobi'],
63
-        '158' => ['Arabic Standard Time',                      '(GMT+03:00) Baghdad'],
64
-        '160' => ['Iran Standard Time',                        '(GMT+03:30) Tehran'],
65
-        '165' => ['Arabian Standard Time',                     '(GMT+04:00) Abu Dhabi, Muscat'],
66
-        '170' => ['Caucasus Standard Time',                    '(GMT+04:00) Baku, Tbilisi, Yerevan'],
20
+        '000' => ['Dateline Standard Time', '(GMT-12:00) International Date Line West'],
21
+        '001' => ['Samoa Standard Time', '(GMT-11:00) Midway Island, Samoa'],
22
+        '002' => ['Hawaiian Standard Time', '(GMT-10:00) Hawaii'],
23
+        '003' => ['Alaskan Standard Time', '(GMT-09:00) Alaska'],
24
+        '004' => ['Pacific Standard Time', '(GMT-08:00) Pacific Time (US and Canada); Tijuana'],
25
+        '010' => ['Mountain Standard Time', '(GMT-07:00) Mountain Time (US and Canada)'],
26
+        '013' => ['Mexico Standard Time 2', '(GMT-07:00) Chihuahua, La Paz, Mazatlan'],
27
+        '015' => ['US Mountain Standard Time', '(GMT-07:00) Arizona'],
28
+        '020' => ['Central Standard Time', '(GMT-06:00) Central Time (US and Canada'],
29
+        '025' => ['Canada Central Standard Time', '(GMT-06:00) Saskatchewan'],
30
+        '030' => ['Mexico Standard Time', '(GMT-06:00) Guadalajara, Mexico City, Monterrey'],
31
+        '033' => ['Central America Standard Time', '(GMT-06:00) Central America'],
32
+        '035' => ['Eastern Standard Time', '(GMT-05:00) Eastern Time (US and Canada)'],
33
+        '040' => ['US Eastern Standard Time', '(GMT-05:00) Indiana (East)'],
34
+        '045' => ['SA Pacific Standard Time', '(GMT-05:00) Bogota, Lima, Quito'],
35
+        'uk1' => ['Venezuela Standard Time', '(GMT-04:30) Caracas'], // added
36
+        '050' => ['Atlantic Standard Time', '(GMT-04:00) Atlantic Time (Canada)'],
37
+        '055' => ['SA Western Standard Time', '(GMT-04:00) Caracas, La Paz'],
38
+        '056' => ['Pacific SA Standard Time', '(GMT-04:00) Santiago'],
39
+        '060' => ['Newfoundland and Labrador Standard Time', '(GMT-03:30) Newfoundland and Labrador'],
40
+        '065' => ['E South America Standard Time', '(GMT-03:00) Brasilia'],
41
+        '070' => ['SA Eastern Standard Time', '(GMT-03:00) Buenos Aires, Georgetown'],
42
+        '073' => ['Greenland Standard Time', '(GMT-03:00) Greenland'],
43
+        '075' => ['Mid-Atlantic Standard Time', '(GMT-02:00) Mid-Atlantic'],
44
+        '080' => ['Azores Standard Time', '(GMT-01:00) Azores'],
45
+        '083' => ['Cape Verde Standard Time', '(GMT-01:00) Cape Verde Islands'],
46
+        '085' => ['GMT Standard Time', '(GMT) Greenwich Mean Time: Dublin, Edinburgh, Lisbon, London'],
47
+        '090' => ['Greenwich Standard Time', '(GMT) Casablanca, Monrovia'],
48
+        '095' => ['Central Europe Standard Time', '(GMT+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague'],
49
+        '100' => ['Central European Standard Time', '(GMT+01:00) Sarajevo, Skopje, Warsaw, Zagreb'],
50
+        '105' => ['Romance Standard Time', '(GMT+01:00) Brussels, Copenhagen, Madrid, Paris'],
51
+        '110' => ['W Europe Standard Time', '(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'],
52
+        '111' => ['W. Europe Standard Time', '(GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna'],
53
+        '113' => ['W Central Africa Standard Time', '(GMT+01:00) West Central Africa'],
54
+        '115' => ['E Europe Standard Time', '(GMT+02:00) Bucharest'],
55
+        '120' => ['Egypt Standard Time', '(GMT+02:00) Cairo'],
56
+        '125' => ['FLE Standard Time', '(GMT+02:00) Helsinki, Kiev, Riga, Sofia, Tallinn, Vilnius'],
57
+        '130' => ['GTB Standard Time', '(GMT+02:00) Athens, Istanbul, Minsk'],
58
+        '135' => ['Israel Standard Time', '(GMT+02:00) Jerusalem'],
59
+        '140' => ['South Africa Standard Time', '(GMT+02:00) Harare, Pretoria'],
60
+        '145' => ['Russian Standard Time', '(GMT+03:00) Moscow, St. Petersburg, Volgograd'],
61
+        '150' => ['Arab Standard Time', '(GMT+03:00) Kuwait, Riyadh'],
62
+        '155' => ['E Africa Standard Time', '(GMT+03:00) Nairobi'],
63
+        '158' => ['Arabic Standard Time', '(GMT+03:00) Baghdad'],
64
+        '160' => ['Iran Standard Time', '(GMT+03:30) Tehran'],
65
+        '165' => ['Arabian Standard Time', '(GMT+04:00) Abu Dhabi, Muscat'],
66
+        '170' => ['Caucasus Standard Time', '(GMT+04:00) Baku, Tbilisi, Yerevan'],
67 67
         '175' => ['Transitional Islamic State of Afghanistan Standard Time', '(GMT+04:30) Kabul'],
68
-        '180' => ['Ekaterinburg Standard Time',                '(GMT+05:00) Ekaterinburg'],
69
-        '185' => ['West Asia Standard Time',                   '(GMT+05:00) Islamabad, Karachi, Tashkent'],
70
-        '190' => ['India Standard Time',                       '(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi'],
71
-        '193' => ['Nepal Standard Time',                       '(GMT+05:45) Kathmandu'],
72
-        '195' => ['Central Asia Standard Time',                '(GMT+06:00) Astana, Dhaka'],
73
-        '200' => ['Sri Lanka Standard Time',                   '(GMT+06:00) Sri Jayawardenepura'],
74
-        '201' => ['N Central Asia Standard Time',              '(GMT+06:00) Almaty, Novosibirsk'],
75
-        '203' => ['Myanmar Standard Time',                     '(GMT+06:30) Yangon Rangoon'],
76
-        '205' => ['SE Asia Standard Time',                     '(GMT+07:00) Bangkok, Hanoi, Jakarta'],
77
-        '207' => ['North Asia Standard Time',                  '(GMT+07:00) Krasnoyarsk'],
78
-        '210' => ['China Standard Time',                       '(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi'],
79
-        '215' => ['Singapore Standard Time',                   '(GMT+08:00) Kuala Lumpur, Singapore'],
80
-        '220' => ['Taipei Standard Time',                      '(GMT+08:00) Taipei'],
81
-        '225' => ['W Australia Standard Time',                 '(GMT+08:00) Perth'],
82
-        '227' => ['North Asia East Standard Time',             '(GMT+08:00) Irkutsk, Ulaanbaatar'],
83
-        '230' => ['Korea Standard Time',                       '(GMT+09:00) Seoul'],
84
-        '235' => ['Tokyo Standard Time',                       '(GMT+09:00) Osaka, Sapporo, Tokyo'],
85
-        '240' => ['Yakutsk Standard Time',                     '(GMT+09:00) Yakutsk'],
86
-        '245' => ['AUS Central Standard Time',                 '(GMT+09:30) Darwin'],
87
-        '250' => ['Cen Australia Standard Time',               '(GMT+09:30) Adelaide'],
88
-        '255' => ['AUS Eastern Standard Time',                 '(GMT+10:00) Canberra, Melbourne, Sydney'],
89
-        '260' => ['E Australia Standard Time',                 '(GMT+10:00) Brisbane'],
90
-        '265' => ['Tasmania Standard Time',                    '(GMT+10:00) Hobart'],
91
-        '270' => ['Vladivostok Standard Time',                 '(GMT+10:00) Vladivostok'],
92
-        '275' => ['West Pacific Standard Time',                '(GMT+10:00) Guam, Port Moresby'],
93
-        '280' => ['Central Pacific Standard Time',             '(GMT+11:00) Magadan, Solomon Islands, New Caledonia'],
94
-        '285' => ['Fiji Islands Standard Time',                '(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands'],
95
-        '290' => ['New Zealand Standard Time',                 '(GMT+12:00) Auckland, Wellington'],
96
-        '300' => ['Tonga Standard Time',                       "(GMT+13:00) Nuku'alofa"],
68
+        '180' => ['Ekaterinburg Standard Time', '(GMT+05:00) Ekaterinburg'],
69
+        '185' => ['West Asia Standard Time', '(GMT+05:00) Islamabad, Karachi, Tashkent'],
70
+        '190' => ['India Standard Time', '(GMT+05:30) Chennai, Kolkata, Mumbai, New Delhi'],
71
+        '193' => ['Nepal Standard Time', '(GMT+05:45) Kathmandu'],
72
+        '195' => ['Central Asia Standard Time', '(GMT+06:00) Astana, Dhaka'],
73
+        '200' => ['Sri Lanka Standard Time', '(GMT+06:00) Sri Jayawardenepura'],
74
+        '201' => ['N Central Asia Standard Time', '(GMT+06:00) Almaty, Novosibirsk'],
75
+        '203' => ['Myanmar Standard Time', '(GMT+06:30) Yangon Rangoon'],
76
+        '205' => ['SE Asia Standard Time', '(GMT+07:00) Bangkok, Hanoi, Jakarta'],
77
+        '207' => ['North Asia Standard Time', '(GMT+07:00) Krasnoyarsk'],
78
+        '210' => ['China Standard Time', '(GMT+08:00) Beijing, Chongqing, Hong Kong SAR, Urumqi'],
79
+        '215' => ['Singapore Standard Time', '(GMT+08:00) Kuala Lumpur, Singapore'],
80
+        '220' => ['Taipei Standard Time', '(GMT+08:00) Taipei'],
81
+        '225' => ['W Australia Standard Time', '(GMT+08:00) Perth'],
82
+        '227' => ['North Asia East Standard Time', '(GMT+08:00) Irkutsk, Ulaanbaatar'],
83
+        '230' => ['Korea Standard Time', '(GMT+09:00) Seoul'],
84
+        '235' => ['Tokyo Standard Time', '(GMT+09:00) Osaka, Sapporo, Tokyo'],
85
+        '240' => ['Yakutsk Standard Time', '(GMT+09:00) Yakutsk'],
86
+        '245' => ['AUS Central Standard Time', '(GMT+09:30) Darwin'],
87
+        '250' => ['Cen Australia Standard Time', '(GMT+09:30) Adelaide'],
88
+        '255' => ['AUS Eastern Standard Time', '(GMT+10:00) Canberra, Melbourne, Sydney'],
89
+        '260' => ['E Australia Standard Time', '(GMT+10:00) Brisbane'],
90
+        '265' => ['Tasmania Standard Time', '(GMT+10:00) Hobart'],
91
+        '270' => ['Vladivostok Standard Time', '(GMT+10:00) Vladivostok'],
92
+        '275' => ['West Pacific Standard Time', '(GMT+10:00) Guam, Port Moresby'],
93
+        '280' => ['Central Pacific Standard Time', '(GMT+11:00) Magadan, Solomon Islands, New Caledonia'],
94
+        '285' => ['Fiji Islands Standard Time', '(GMT+12:00) Fiji Islands, Kamchatka, Marshall Islands'],
95
+        '290' => ['New Zealand Standard Time', '(GMT+12:00) Auckland, Wellington'],
96
+        '300' => ['Tonga Standard Time', "(GMT+13:00) Nuku'alofa"],
97 97
     ];
98 98
 
99 99
     /**
@@ -127,104 +127,104 @@  discard block
 block discarded – undo
127 127
      * Created at: 01.06.2012
128 128
      */
129 129
     private static $tzonesoffsets = [
130
-        'Transitional Islamic State of Afghanistan Standard Time' => [-270, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
131
-        'Alaskan Standard Time' => [540, 0, -60,  0, 11, 0, 1, 2, 0, 0, 0,  0, 3, 0, 2, 2, 0, 0, 0],
132
-        'Arab Standard Time' => [-180, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
133
-        'Arabian Standard Time' => [-240, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
134
-        'Arabic Standard Time' => [-180, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
130
+        'Transitional Islamic State of Afghanistan Standard Time' => [-270, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
131
+        'Alaskan Standard Time' => [540, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0],
132
+        'Arab Standard Time' => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
133
+        'Arabian Standard Time' => [-240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
134
+        'Arabic Standard Time' => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
135 135
         // "Argentina Standard Time"                   => array(180, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
136
-        'Atlantic Standard Time' => [240, 0, -60,  0, 11, 0, 1, 2, 0, 0, 0,  0, 3, 0, 2, 2, 0, 0, 0],
137
-        'AUS Central Standard Time' => [-570, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
138
-        'AUS Eastern Standard Time' => [-600, 0, -60,  0, 4, 0, 1, 3, 0, 0, 0,  0, 10, 0, 1, 2, 0, 0, 0],
136
+        'Atlantic Standard Time' => [240, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0],
137
+        'AUS Central Standard Time' => [-570, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
138
+        'AUS Eastern Standard Time' => [-600, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0],
139 139
         // "Azerbaijan Standard Time"                  => array(-240, 0, -60,  0, 10, 0, 5, 5, 0, 0, 0,  0, 3, 0, 5, 4, 0, 0, 0),
140
-        'Azores Standard Time' => [60, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
140
+        'Azores Standard Time' => [60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
141 141
         // "Bangladesh Standard Time"                  => array(-360, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
142
-        'Canada Central Standard Time' => [360, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
143
-        'Cape Verde Standard Time' => [60, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
144
-        'Caucasus Standard Time' => [-240, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
145
-        'Cen Australia Standard Time' => [-570, 0, -60,  0, 4, 0, 1, 3, 0, 0, 0,  0, 10, 0, 1, 2, 0, 0, 0],
146
-        'Central America Standard Time' => [360, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
147
-        'Central Asia Standard Time' => [-360, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
142
+        'Canada Central Standard Time' => [360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
143
+        'Cape Verde Standard Time' => [60, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
144
+        'Caucasus Standard Time' => [-240, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
145
+        'Cen Australia Standard Time' => [-570, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0],
146
+        'Central America Standard Time' => [360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
147
+        'Central Asia Standard Time' => [-360, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
148 148
         // "Central Brazilian Standard Time"           => array(240, 0, -60,  0, 2, 6, 4, 23, 59, 59, 999,  0, 10, 6, 3, 23, 59, 59, 999),
149
-        'Central Europe Standard Time' => [-60, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
150
-        'Central European Standard Time' => [-60, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
151
-        'Central Pacific Standard Time' => [-660, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
152
-        'Central Standard Time' => [360, 0, -60,  0, 11, 0, 1, 2, 0, 0, 0,  0, 3, 0, 2, 2, 0, 0, 0],
153
-        'Mexico Standard Time' => [360, 0, -60,  0, 10, 0, 5, 2, 0, 0, 0,  0, 4, 0, 1, 2, 0, 0, 0],
154
-        'China Standard Time' => [-480, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
155
-        'Dateline Standard Time' => [720, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
156
-        'E Africa Standard Time' => [-180, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
157
-        'E Australia Standard Time' => [-600, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
158
-        'E Europe Standard Time' => [-120, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
159
-        'E South America Standard Time' => [180, 0, -60,  0, 2, 6, 4, 23, 59, 59, 999,  0, 10, 6, 3, 23, 59, 59, 999],
160
-        'Eastern Standard Time' => [300, 0, -60,  0, 11, 0, 1, 2, 0, 0, 0,  0, 3, 0, 2, 2, 0, 0, 0],
161
-        'Egypt Standard Time' => [-120, 0, -60,  0, 9, 4, 5, 23, 59, 59, 999,  0, 4, 4, 5, 23, 59, 59, 999],
162
-        'Ekaterinburg Standard Time' => [-300, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
163
-        'Fiji Islands Standard Time' => [-720, 0, -60,  0, 3, 0, 5, 3, 0, 0, 0,  0, 10, 0, 4, 2, 0, 0, 0],
164
-        'FLE Standard Time' => [-120, 0, -60,  0, 10, 0, 5, 4, 0, 0, 0,  0, 3, 0, 5, 3, 0, 0, 0],
149
+        'Central Europe Standard Time' => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
150
+        'Central European Standard Time' => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
151
+        'Central Pacific Standard Time' => [-660, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
152
+        'Central Standard Time' => [360, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0],
153
+        'Mexico Standard Time' => [360, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0],
154
+        'China Standard Time' => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
155
+        'Dateline Standard Time' => [720, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
156
+        'E Africa Standard Time' => [-180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
157
+        'E Australia Standard Time' => [-600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
158
+        'E Europe Standard Time' => [-120, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
159
+        'E South America Standard Time' => [180, 0, -60, 0, 2, 6, 4, 23, 59, 59, 999, 0, 10, 6, 3, 23, 59, 59, 999],
160
+        'Eastern Standard Time' => [300, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0],
161
+        'Egypt Standard Time' => [-120, 0, -60, 0, 9, 4, 5, 23, 59, 59, 999, 0, 4, 4, 5, 23, 59, 59, 999],
162
+        'Ekaterinburg Standard Time' => [-300, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
163
+        'Fiji Islands Standard Time' => [-720, 0, -60, 0, 3, 0, 5, 3, 0, 0, 0, 0, 10, 0, 4, 2, 0, 0, 0],
164
+        'FLE Standard Time' => [-120, 0, -60, 0, 10, 0, 5, 4, 0, 0, 0, 0, 3, 0, 5, 3, 0, 0, 0],
165 165
         // "Georgian Standard Time"                    => array(-240, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
166
-        'GMT Standard Time' => [0, 0, -60,  0, 10, 0, 5, 2, 0, 0, 0,  0, 3, 0, 5, 1, 0, 0, 0],
167
-        'Greenland Standard Time' => [180, 0, -60,  0, 10, 6, 5, 23, 0, 0, 0,  0, 3, 6, 4, 22, 0, 0, 0],
168
-        'Greenwich Standard Time' => [0, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
169
-        'GTB Standard Time' => [-120, 0, -60,  0, 10, 0, 5, 4, 0, 0, 0,  0, 3, 0, 5, 3, 0, 0, 0],
170
-        'Hawaiian Standard Time' => [600, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
171
-        'India Standard Time' => [-330, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
172
-        'Iran Standard Time' => [-210, 0, -60,  0, 9, 1, 3, 23, 59, 59, 999,  0, 3, 6, 3, 23, 59, 59, 999],
173
-        'Israel Standard Time' => [-120, 0, -60,  0, 9, 0, 4, 2, 0, 0, 0,  0, 3, 5, 5, 2, 0, 0, 0],
166
+        'GMT Standard Time' => [0, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 3, 0, 5, 1, 0, 0, 0],
167
+        'Greenland Standard Time' => [180, 0, -60, 0, 10, 6, 5, 23, 0, 0, 0, 0, 3, 6, 4, 22, 0, 0, 0],
168
+        'Greenwich Standard Time' => [0, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
169
+        'GTB Standard Time' => [-120, 0, -60, 0, 10, 0, 5, 4, 0, 0, 0, 0, 3, 0, 5, 3, 0, 0, 0],
170
+        'Hawaiian Standard Time' => [600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
171
+        'India Standard Time' => [-330, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
172
+        'Iran Standard Time' => [-210, 0, -60, 0, 9, 1, 3, 23, 59, 59, 999, 0, 3, 6, 3, 23, 59, 59, 999],
173
+        'Israel Standard Time' => [-120, 0, -60, 0, 9, 0, 4, 2, 0, 0, 0, 0, 3, 5, 5, 2, 0, 0, 0],
174 174
         // "Jordan Standard Time"                      => array(-120, 0, -60,  0, 10, 5, 5, 1, 0, 0, 0,  0, 3, 4, 5, 23, 59, 59, 999),
175 175
         // "Kamchatka Standard Time"                   => array(-720, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0),
176
-        'Korea Standard Time' => [-540, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
176
+        'Korea Standard Time' => [-540, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
177 177
         // "Magadan Standard Time"                     => array(-660, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0),
178 178
         // "Mauritius Standard Time"                   => array(-240, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
179
-        'Mid-Atlantic Standard Time' => [120, 0, -60,  0, 9, 0, 5, 2, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
179
+        'Mid-Atlantic Standard Time' => [120, 0, -60, 0, 9, 0, 5, 2, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
180 180
         // "Middle East Standard Time"                 => array(-120, 0, -60,  0, 10, 6, 5, 23, 59, 59, 999,  0, 3, 6, 4, 23, 59, 59, 999),
181 181
         // "Montevideo Standard Time"                  => array(180, 0, -60,  0, 3, 0, 2, 2, 0, 0, 0,  0, 10, 0, 1, 2, 0, 0, 0),
182 182
         // "Morocco Standard Time"                     => array(0, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
183
-        'Mountain Standard Time' => [420, 0, -60,  0, 11, 0, 1, 2, 0, 0, 0,  0, 3, 0, 2, 2, 0, 0, 0],
184
-        'Mexico Standard Time 2' => [420, 0, -60,  0, 10, 0, 5, 2, 0, 0, 0,  0, 4, 0, 1, 2, 0, 0, 0],
185
-        'Myanmar Standard Time' => [-390, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
186
-        'N Central Asia Standard Time' => [-360, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
183
+        'Mountain Standard Time' => [420, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0],
184
+        'Mexico Standard Time 2' => [420, 0, -60, 0, 10, 0, 5, 2, 0, 0, 0, 0, 4, 0, 1, 2, 0, 0, 0],
185
+        'Myanmar Standard Time' => [-390, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
186
+        'N Central Asia Standard Time' => [-360, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
187 187
         // "Namibia Standard Time"                     => array(-60, 0, -60,  0, 4, 0, 1, 2, 0, 0, 0,  0, 9, 0, 1, 2, 0, 0, 0),
188
-        'Nepal Standard Time' => [-345, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
189
-        'New Zealand Standard Time' => [-720, 0, -60,  0, 4, 0, 1, 3, 0, 0, 0,  0, 9, 0, 5, 2, 0, 0, 0],
190
-        'Newfoundland and Labrador Standard Time' => [210, 0, -60,  0, 11, 0, 1, 0, 1, 0, 0,  0, 3, 0, 2, 0, 1, 0, 0],
191
-        'North Asia East Standard Time' => [-480, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
192
-        'North Asia Standard Time' => [-420, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
193
-        'Pacific SA Standard Time' => [240, 0, -60,  0, 3, 6, 2, 23, 59, 59, 999,  0, 10, 6, 2, 23, 59, 59, 999],
194
-        'Pacific Standard Time' => [480, 0, -60,  0, 11, 0, 1, 2, 0, 0, 0,  0, 3, 0, 2, 2, 0, 0, 0],
188
+        'Nepal Standard Time' => [-345, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
189
+        'New Zealand Standard Time' => [-720, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 9, 0, 5, 2, 0, 0, 0],
190
+        'Newfoundland and Labrador Standard Time' => [210, 0, -60, 0, 11, 0, 1, 0, 1, 0, 0, 0, 3, 0, 2, 0, 1, 0, 0],
191
+        'North Asia East Standard Time' => [-480, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
192
+        'North Asia Standard Time' => [-420, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
193
+        'Pacific SA Standard Time' => [240, 0, -60, 0, 3, 6, 2, 23, 59, 59, 999, 0, 10, 6, 2, 23, 59, 59, 999],
194
+        'Pacific Standard Time' => [480, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0],
195 195
         // "Pacific Standard Time (Mexico)"            => array(480, 0, -60,  0, 10, 0, 5, 2, 0, 0, 0,  0, 4, 0, 1, 2, 0, 0, 0),
196 196
         // "Pakistan Standard Time"                    => array(-300, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
197 197
         // "Paraguay Standard Time"                    => array(240, 0, -60,  0, 4, 6, 1, 23, 59, 59, 999,  0, 10, 6, 1, 23, 59, 59, 999),
198
-        'Romance Standard Time' => [-60, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
199
-        'Russian Standard Time' => [-180, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
200
-        'SA Eastern Standard Time' => [180, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
201
-        'SA Pacific Standard Time' => [300, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
202
-        'SA Western Standard Time' => [240, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
203
-        'Samoa Standard Time' => [660, 0, -60,  0, 3, 6, 5, 23, 59, 59, 999,  0, 9, 6, 5, 23, 59, 59, 999],
204
-        'SE Asia Standard Time' => [-420, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
205
-        'Singapore Standard Time' => [-480, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
206
-        'South Africa Standard Time' => [-120, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
207
-        'Sri Lanka Standard Time' => [-330, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
198
+        'Romance Standard Time' => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
199
+        'Russian Standard Time' => [-180, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
200
+        'SA Eastern Standard Time' => [180, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
201
+        'SA Pacific Standard Time' => [300, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
202
+        'SA Western Standard Time' => [240, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
203
+        'Samoa Standard Time' => [660, 0, -60, 0, 3, 6, 5, 23, 59, 59, 999, 0, 9, 6, 5, 23, 59, 59, 999],
204
+        'SE Asia Standard Time' => [-420, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
205
+        'Singapore Standard Time' => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
206
+        'South Africa Standard Time' => [-120, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
207
+        'Sri Lanka Standard Time' => [-330, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
208 208
         // "Syria Standard Time"                       => array(-120, 0, -60,  0, 10, 4, 5, 23, 59, 59, 999,  0, 4, 4, 1, 23, 59, 59, 999),
209
-        'Taipei Standard Time' => [-480, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
210
-        'Tasmania Standard Time' => [-600, 0, -60,  0, 4, 0, 1, 3, 0, 0, 0,  0, 10, 0, 1, 2, 0, 0, 0],
211
-        'Tokyo Standard Time' => [-540, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
212
-        'Tonga Standard Time' => [-780, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
209
+        'Taipei Standard Time' => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
210
+        'Tasmania Standard Time' => [-600, 0, -60, 0, 4, 0, 1, 3, 0, 0, 0, 0, 10, 0, 1, 2, 0, 0, 0],
211
+        'Tokyo Standard Time' => [-540, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
212
+        'Tonga Standard Time' => [-780, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
213 213
         // "Ulaanbaatar Standard Time"                 => array(-480, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
214
-        'US Eastern Standard Time' => [300, 0, -60,  0, 11, 0, 1, 2, 0, 0, 0,  0, 3, 0, 2, 2, 0, 0, 0],
215
-        'US Mountain Standard Time' => [420, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
214
+        'US Eastern Standard Time' => [300, 0, -60, 0, 11, 0, 1, 2, 0, 0, 0, 0, 3, 0, 2, 2, 0, 0, 0],
215
+        'US Mountain Standard Time' => [420, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
216 216
         // "UTC"                                       => array(0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
217 217
         // "UTC+12"                                    => array(-720, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
218 218
         // "UTC-02"                                    => array(120, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
219 219
         // "UTC-11"                                    => array(660, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0),
220
-        'Venezuela Standard Time' => [270, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
221
-        'Vladivostok Standard Time' => [-600, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
222
-        'W Australia Standard Time' => [-480, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
223
-        'W Central Africa Standard Time' => [-60, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
224
-        'W Europe Standard Time' => [-60, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
225
-        'West Asia Standard Time' => [-300, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
226
-        'West Pacific Standard Time' => [-600, 0, -60,  0, 0, 0, 0, 0, 0, 0, 0,  0, 0, 0, 0, 0, 0, 0, 0],
227
-        'Yakutsk Standard Time' => [-540, 0, -60,  0, 10, 0, 5, 3, 0, 0, 0,  0, 3, 0, 5, 2, 0, 0, 0],
220
+        'Venezuela Standard Time' => [270, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
221
+        'Vladivostok Standard Time' => [-600, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
222
+        'W Australia Standard Time' => [-480, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
223
+        'W Central Africa Standard Time' => [-60, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
224
+        'W Europe Standard Time' => [-60, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
225
+        'West Asia Standard Time' => [-300, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
226
+        'West Pacific Standard Time' => [-600, 0, -60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
227
+        'Yakutsk Standard Time' => [-540, 0, -60, 0, 10, 0, 5, 3, 0, 0, 0, 0, 3, 0, 5, 2, 0, 0, 0],
228 228
     ];
229 229
 
230 230
     /**
@@ -1061,7 +1061,7 @@  discard block
 block discarded – undo
1061 1061
             $phptimezone = date_default_timezone_get();
1062 1062
         }
1063 1063
 
1064
-        SLog::Write(LOGLEVEL_DEBUG, 'TimezoneUtil::GetFullTZ() for ' . $phptimezone);
1064
+        SLog::Write(LOGLEVEL_DEBUG, 'TimezoneUtil::GetFullTZ() for '.$phptimezone);
1065 1065
 
1066 1066
         $servertzname = self::guessTZNameFromPHPName($phptimezone);
1067 1067
 
@@ -1117,7 +1117,7 @@  discard block
 block discarded – undo
1117 1117
      * @return array
1118 1118
      */
1119 1119
     public static function FillTZNames($tz) {
1120
-        SLog::Write(LOGLEVEL_DEBUG, 'TimezoneUtil::FillTZNames() filling up bias ' . $tz['bias']);
1120
+        SLog::Write(LOGLEVEL_DEBUG, 'TimezoneUtil::FillTZNames() filling up bias '.$tz['bias']);
1121 1121
         if (!isset($tz['bias'])) {
1122 1122
             SLog::Write(LOGLEVEL_WARN, 'TimezoneUtil::FillTZNames() submitted TZ array does not have a bias');
1123 1123
         } else {
@@ -1137,7 +1137,7 @@  discard block
 block discarded – undo
1137 1137
     public static function TZtest() {
1138 1138
         foreach (self::$mstzones as $mskey => $msdefs) {
1139 1139
             if (!array_key_exists($msdefs[0], self::$tzonesoffsets)) {
1140
-                echo "key   '" . $msdefs[0] . "'   not found in tzonesoffsets\n";
1140
+                echo "key   '".$msdefs[0]."'   not found in tzonesoffsets\n";
1141 1141
             }
1142 1142
         }
1143 1143
 
@@ -1170,7 +1170,7 @@  discard block
 block discarded – undo
1170 1170
         }
1171 1171
 
1172 1172
         return pack(
1173
-            'la64vvvvvvvv' . 'la64vvvvvvvv' . 'l',
1173
+            'la64vvvvvvvv'.'la64vvvvvvvv'.'l',
1174 1174
             $tz['bias'],
1175 1175
             $tz['tzname'],
1176 1176
             0,
@@ -1220,7 +1220,7 @@  discard block
 block discarded – undo
1220 1220
         }
1221 1221
         if (!$date) {
1222 1222
             // 20110930 (Append T000000Z to the date, so it starts at midnight)
1223
-            $date = date_create_from_format('Ymd\THis\Z', $value . 'T000000Z', $tz);
1223
+            $date = date_create_from_format('Ymd\THis\Z', $value.'T000000Z', $tz);
1224 1224
         }
1225 1225
 
1226 1226
         return date_timestamp_get($date);
@@ -1236,15 +1236,15 @@  discard block
 block discarded – undo
1236 1236
     public static function ParseTimezone($timezone) {
1237 1237
         // (GMT+01.00) Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
1238 1238
         if (preg_match('/GMT(\\+|\\-)0(\d)/', $timezone, $matches)) {
1239
-            return 'Etc/GMT' . $matches[1] . $matches[2];
1239
+            return 'Etc/GMT'.$matches[1].$matches[2];
1240 1240
         }
1241 1241
         // (GMT+10.00) XXX / XXX / XXX / XXX
1242 1242
         if (preg_match('/GMT(\\+|\\-)1(\d)/', $timezone, $matches)) {
1243
-            return 'Etc/GMT' . $matches[1] . '1' . $matches[2];
1243
+            return 'Etc/GMT'.$matches[1].'1'.$matches[2];
1244 1244
         }
1245 1245
         // /inverse.ca/20101018_1/Europe/Amsterdam or /inverse.ca/20101018_1/America/Argentina/Buenos_Aires
1246 1246
         if (preg_match('/\/[.[:word:]]+\/\w+\/(\w+)\/([\w\/]+)/', $timezone, $matches)) {
1247
-            return $matches[1] . '/' . $matches[2];
1247
+            return $matches[1].'/'.$matches[2];
1248 1248
         }
1249 1249
 
1250 1250
         return self::getMSTZnameFromTZName(trim($timezone, '"'));
Please login to merge, or discard this patch.
lib/exceptions/gsyncexception.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,12 +23,12 @@
 block discarded – undo
23 23
             $logLevel = $this->defaultLogLevel;
24 24
         }
25 25
 
26
-        parent::__construct($message, (int) $code);
27
-        SLog::Write($logLevel, get_class($this) . ': ' . $message . ' - code: ' . $code . ' - file: ' . $this->getFile() . ':' . $this->getLine(), false);
26
+        parent::__construct($message, (int)$code);
27
+        SLog::Write($logLevel, get_class($this).': '.$message.' - code: '.$code.' - file: '.$this->getFile().':'.$this->getLine(), false);
28 28
     }
29 29
 
30 30
     public function getHTTPCodeString() {
31
-        return $this->httpReturnCode . ' ' . $this->httpReturnMessage;
31
+        return $this->httpReturnCode.' '.$this->httpReturnMessage;
32 32
     }
33 33
 
34 34
     public function getHTTPHeaders() {
Please login to merge, or discard this patch.
lib/exceptions/httpreturncodeexception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,6 +15,6 @@
 block discarded – undo
15 15
         if ($code) {
16 16
             $this->httpReturnCode = $code;
17 17
         }
18
-        parent::__construct($message, (int) $code, $previous, $logLevel);
18
+        parent::__construct($message, (int)$code, $previous, $logLevel);
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
lib/exceptions/serviceunavailableexception.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public function __construct($message = '', $code = 0, $previous = null, $logLevel = false) {
18 18
         parent::__construct($message, $code, $previous, $logLevel);
19 19
         if (RETRY_AFTER_DELAY !== false) {
20
-            $this->httpHeaders[] = 'Retry-After: ' . RETRY_AFTER_DELAY;
20
+            $this->httpHeaders[] = 'Retry-After: '.RETRY_AFTER_DELAY;
21 21
         }
22 22
     }
23 23
 }
Please login to merge, or discard this patch.