Completed
Push — master ( e7f123...3fe799 )
by George
02:31
created
src/Date.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,8 +84,7 @@
 block discarded – undo
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
 			}
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.
Tests/DateTest.php 2 patches
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -538,8 +538,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		}
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.