Skip to content

Commit

Permalink
fix typos and CS
Browse files Browse the repository at this point in the history
  • Loading branch information
antograssiot committed Jan 18, 2015
1 parent 505a1bb commit d0cbb90
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions src/Database/Type/DateTimeType.php
Expand Up @@ -47,7 +47,7 @@ class DateTimeType extends \Cake\Database\Type
protected $_useLocaleParser = false;

/**
* The date formate to use for parsing incoming dates for marshalling.
* The date format to use for parsing incoming dates for marshalling.
*
* @var string|array|int
*/
Expand Down Expand Up @@ -160,14 +160,14 @@ public function marshal($value)
}

/**
* Sets whether or not to pase dates passed to the marshal() function
* Sets whether or not to parse dates passed to the marshal() function
* by using a locale aware parser.
*
* @param bool $enable Whether or not to enable
* @return $this
*/
public function useLocaleParser($enable = true)
{
public function useLocaleParser($enable = true)
{
if ($enable === false) {
$this->_useLocaleParser = $enable;
return $this;
Expand Down
18 changes: 9 additions & 9 deletions src/I18n/Time.php
Expand Up @@ -669,7 +669,7 @@ public static function setToStringFormat($format)
/**
* Returns a new Time object after parsing the provided time string based on
* the passed or configured date time format. This method is locale dependent,
* Any string that is passed to this function will be intepreted as a locale
* Any string that is passed to this function will be interpreted as a locale
* dependent string.
*
* When no $format is provided, the `toString` format will be used.
Expand All @@ -678,11 +678,11 @@ public static function setToStringFormat($format)
*
* Example:
*
* {{{
* ```
* $time = Time::parseDateTime('10/13/2013 12:54am');
* $time = Time::parseDateTime('13 Oct, 2013 13:54', 'dd MMM, y H:mm');
* $time = Time::parseDateTime('10/10/2015', [IntlDateFormatter::SHORT, -1]);
* }}}
* ```
*
* @param string $time The time string to parse.
* @param string|array $format Any format accepted by IntlDateFormatter.
Expand Down Expand Up @@ -718,7 +718,7 @@ public static function parseDateTime($time, $format = null)
/**
* Returns a new Time object after parsing the provided $date string based on
* the passed or configured date time format. This method is locale dependent,
* Any string that is passed to this function will be intepreted as a locale
* Any string that is passed to this function will be interpreted as a locale
* dependent string.
*
* When no $format is provided, the `wordFormat` format will be used.
Expand All @@ -727,11 +727,11 @@ public static function parseDateTime($time, $format = null)
*
* Example:
*
* {{{
* ```
* $time = Time::parseDate('10/13/2013');
* $time = Time::parseDate('13 Oct, 2013', 'dd MMM, y');
* $time = Time::parseDate('13 Oct, 2013', IntlDateFormatter::SHORT);
* }}}
* ```
*
* @param string $date The date string to parse.
* @param string|int $format Any format accepted by IntlDateFormatter.
Expand All @@ -749,7 +749,7 @@ public static function parseDate($date, $format = null)
/**
* Returns a new Time object after parsing the provided $time string based on
* the passed or configured date time format. This method is locale dependent,
* Any string that is passed to this function will be intepreted as a locale
* Any string that is passed to this function will be interpreted as a locale
* dependent string.
*
* When no $format is provided, the IntlDateFormatter::SHORT format will be used.
Expand All @@ -758,9 +758,9 @@ public static function parseDate($date, $format = null)
*
* Example:
*
* {{{
* ```
* $time = Time::parseDate('11:23pm');
* }}}
* ```
*
* @param string $time The time string to parse.
* @param string|int $format Any format accepted by IntlDateFormatter.
Expand Down

0 comments on commit d0cbb90

Please sign in to comment.