Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Apr 9, 2014
1 parent 8365e15 commit ab54d6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Utility/Time.php
Expand Up @@ -636,7 +636,6 @@ public static function timeAgoInWords($dateTime, array $options = []) {
$absoluteString = __d('cake', 'on %s');
$accuracy = static::$wordAccuracy;


if (isset($options['timezone'])) {
$timezone = $options['timezone'];
} elseif (isset($options['userOffset'])) {
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/Utility/TimeTest.php
Expand Up @@ -278,7 +278,7 @@ public function testTimeAgoInWordsWithFormat() {

$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);

Expand Down Expand Up @@ -321,7 +321,7 @@ public function testTimeAgoInWordsNegativeValues() {

$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);

Expand Down

0 comments on commit ab54d6f

Please sign in to comment.