@@ -84,8 +84,7 @@ |
||
84 | 84 | if ($tz === null) |
85 | 85 | { |
86 | 86 | $tz = self::$gmt; |
87 | - } |
|
88 | - elseif (is_string($tz)) |
|
87 | + } elseif (is_string($tz)) |
|
89 | 88 | { |
90 | 89 | $tz = new \DateTimeZone($tz); |
91 | 90 | } |
@@ -227,7 +227,7 @@ |
||
227 | 227 | * |
228 | 228 | * @param boolean $hours True to return the value in hours. |
229 | 229 | * |
230 | - * @return float The time offset from GMT either in hours or in seconds. |
|
230 | + * @return integer The time offset from GMT either in hours or in seconds. |
|
231 | 231 | * |
232 | 232 | * @since 1.0 |
233 | 233 | */ |
@@ -538,8 +538,7 @@ discard block |
||
538 | 538 | if (is_null($tz)) |
539 | 539 | { |
540 | 540 | $testDate = new Date($setTime); |
541 | - } |
|
542 | - else |
|
541 | + } else |
|
543 | 542 | { |
544 | 543 | $testDate = new Date($setTime, $tz); |
545 | 544 | } |
@@ -547,8 +546,7 @@ discard block |
||
547 | 546 | if (is_null($hours)) |
548 | 547 | { |
549 | 548 | $offset = $testDate->getOffsetFromGmt(); |
550 | - } |
|
551 | - else |
|
549 | + } else |
|
552 | 550 | { |
553 | 551 | $offset = $testDate->getOffsetFromGmt($hours); |
554 | 552 | } |
@@ -596,8 +594,7 @@ discard block |
||
596 | 594 | if (is_null($tz)) |
597 | 595 | { |
598 | 596 | $testDate = new Date($setTime); |
599 | - } |
|
600 | - else |
|
597 | + } else |
|
601 | 598 | { |
602 | 599 | $testDate = new Date($setTime, $tz); |
603 | 600 | } |
@@ -627,8 +624,7 @@ discard block |
||
627 | 624 | if (is_null($tz)) |
628 | 625 | { |
629 | 626 | $testDate = new Date($setTime); |
630 | - } |
|
631 | - else |
|
627 | + } else |
|
632 | 628 | { |
633 | 629 | $testDate = new Date($setTime, $tz); |
634 | 630 | } |
@@ -657,8 +653,7 @@ discard block |
||
657 | 653 | if (is_null($tz)) |
658 | 654 | { |
659 | 655 | $testDate = new Date($setTime); |
660 | - } |
|
661 | - else |
|
656 | + } else |
|
662 | 657 | { |
663 | 658 | $testDate = new Date($setTime, $tz); |
664 | 659 | } |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @copyright Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved. |
|
4 | - * @license GNU General Public License version 2 or later; see LICENSE.txt |
|
5 | - */ |
|
3 | + * @copyright Copyright (C) 2005 - 2015 Open Source Matters. All rights reserved. |
|
4 | + * @license GNU General Public License version 2 or later; see LICENSE.txt |
|
5 | + */ |
|
6 | 6 | |
7 | 7 | namespace Joomla\Date\Tests; |
8 | 8 |