@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Format the date value as a string based on the current locale |
83 | 83 | * |
84 | - * @param DateTime|int|string $date |
|
84 | + * @param \DateTime $date |
|
85 | 85 | * @param string $format null, 'short', 'medium', 'long', 'full' or pattern |
86 | 86 | * @param string $calendar 'gregorian' or 'traditional' |
87 | 87 | * @return string |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | /** |
105 | 105 | * Format the time value as a string based on the current locale |
106 | 106 | * |
107 | - * @param DateTime|int|string $date |
|
107 | + * @param \DateTime $date |
|
108 | 108 | * @param string $format 'short', 'medium', 'long', 'full' or pattern |
109 | 109 | * @param string $calendar 'gregorian' or 'traditional' |
110 | 110 | * @return string |
@@ -161,6 +161,7 @@ discard block |
||
161 | 161 | * Split duration into seconds, minutes, hours, days, weeks and years. |
162 | 162 | * |
163 | 163 | * @param int $seconds |
164 | + * @param integer $max |
|
164 | 165 | * @return array |
165 | 166 | */ |
166 | 167 | protected function splitDuration($seconds, $max) |
@@ -196,7 +197,7 @@ discard block |
||
196 | 197 | * |
197 | 198 | * @param int $seconds Time in seconds |
198 | 199 | * @param array $units Time units (seconds, minutes, hours, days, weeks, years) |
199 | - * @param string $separator |
|
200 | + * @param string $seperator |
|
200 | 201 | * @return string |
201 | 202 | */ |
202 | 203 | public function duration($seconds, $units=array('s', 'm', 'h', 'd', 'w', 'y'), $seperator=' ') |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * |
66 | 66 | * @param string $value |
67 | 67 | * @param string $pattern |
68 | - * @return boolean |
|
68 | + * @return null|integer |
|
69 | 69 | */ |
70 | 70 | public function match($value, $pattern) |
71 | 71 | { |