Skip to content

Commit

Permalink
Specify type hint
Browse files Browse the repository at this point in the history
Plus fix two typos.
  • Loading branch information
ravage84 committed Oct 27, 2015
1 parent d220616 commit 58316b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/View/Helper/TimeHelper.php
Expand Up @@ -34,7 +34,7 @@ class TimeHelper extends AppHelper {
/**
* CakeTime instance
*
* @var stdClass
* @var CakeTime
*/
protected $_engine = null;

Expand Down Expand Up @@ -193,7 +193,7 @@ public function nice($dateString = null, $timezone = null, $format = null) {
/**
* Returns a formatted descriptive date string for given datetime string.
*
* @param int|string|DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime objectp
* @param int|string|DateTime $dateString UNIX timestamp, strtotime() valid string or DateTime object.
* @param string|DateTimeZone $timezone User's timezone string or DateTimeZone object
* @return string Described, relative date string
* @see CakeTime::niceShort()
Expand Down Expand Up @@ -465,7 +465,7 @@ public function gmt($string = null) {
* ```
* $this->Time->format('2012-02-15', '%m-%d-%Y'); // returns 02-15-2012
* $this->Time->format('2012-02-15 23:01:01', '%c'); // returns preferred date and time based on configured locale
* $this->Time->format('0000-00-00', '%d-%m-%Y', 'N/A'); // return N/A becuase an invalid date was passed
* $this->Time->format('0000-00-00', '%d-%m-%Y', 'N/A'); // return N/A because an invalid date was passed
* $this->Time->format('2012-02-15 23:01:01', '%c', 'N/A', 'America/New_York'); // converts passed date to timezone
* ```
*
Expand Down

0 comments on commit 58316b3

Please sign in to comment.