euromark 12 years ago
parent
commit
ab54d6f1b7
2 changed files with 2 additions and 3 deletions
  1. 0 1
      src/Utility/Time.php
  2. 2 2
      tests/TestCase/Utility/TimeTest.php

+ 0 - 1
src/Utility/Time.php

@@ -636,7 +636,6 @@ class Time {
 		$absoluteString = __d('cake', 'on %s');
 		$accuracy = static::$wordAccuracy;
 
-
 		if (isset($options['timezone'])) {
 			$timezone = $options['timezone'];
 		} elseif (isset($options['userOffset'])) {

+ 2 - 2
tests/TestCase/Utility/TimeTest.php

@@ -278,7 +278,7 @@ class TimeTest extends TestCase {
 
 		$result = $this->Time->timeAgoInWords(
 			strtotime('+2 weeks +2 days'),
-			 array('format' =>'Y-m-d')
+			array('format' => 'Y-m-d')
 		);
 		$this->assertRegExp('/^2 weeks, [1|2] day(s)?$/', $result);
 
@@ -321,7 +321,7 @@ class TimeTest extends TestCase {
 
 		$result = $this->Time->timeAgoInWords(
 			strtotime('-2 weeks -2 days'),
-			 array('format' =>'Y-m-d')
+			array('format' => 'Y-m-d')
 		);
 		$this->assertEquals('2 weeks, 2 days ago', $result);