Completed
Push — 2.0.0 ( 930935...632760 )
by John
04:37
created
Alpha/Model/Type/Timestamp.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -629,16 +629,16 @@
 block discarded – undo
629 629
         $unixTS = $this->getUnixValue();
630 630
 
631 631
         if ($now > $unixTS) {
632
-            $difference = $now - $unixTS;
632
+            $difference = $now-$unixTS;
633 633
             $tense = 'ago';
634 634
         } else {
635
-            $difference = $unixTS - $now;
635
+            $difference = $unixTS-$now;
636 636
             $tense = 'from now';
637 637
         }
638 638
 
639
-        for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths) - 1; ++$i) {
639
+        for ($i = 0; $difference >= $lengths[$i] && $i < count($lengths)-1; ++$i) {
640 640
 
641
-            $difference = round($difference / $lengths[$i]);
641
+            $difference = round($difference/$lengths[$i]);
642 642
         }
643 643
 
644 644
         $difference = round($difference);
Please login to merge, or discard this patch.