From ab54d6f1b7155296690748c298a135650ae3f20e Mon Sep 17 00:00:00 2001 From: euromark Date: Wed, 9 Apr 2014 03:43:19 +0200 Subject: [PATCH] fix cs --- src/Utility/Time.php | 1 - tests/TestCase/Utility/TimeTest.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Utility/Time.php b/src/Utility/Time.php index bdab0edcd6b..fb9cf9037f4 100644 --- a/src/Utility/Time.php +++ b/src/Utility/Time.php @@ -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'])) { diff --git a/tests/TestCase/Utility/TimeTest.php b/tests/TestCase/Utility/TimeTest.php index 49ecd81f3bf..710360c9892 100644 --- a/tests/TestCase/Utility/TimeTest.php +++ b/tests/TestCase/Utility/TimeTest.php @@ -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); @@ -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);