@@ -183,6 +183,7 @@ discard block |
||
| 183 | 183 | * Split duration into seconds, minutes, hours, days, weeks and years. |
| 184 | 184 | * |
| 185 | 185 | * @param int $seconds |
| 186 | + * @param integer $max |
|
| 186 | 187 | * @return array |
| 187 | 188 | */ |
| 188 | 189 | protected function splitDuration($seconds, $max) |
@@ -228,7 +229,7 @@ discard block |
||
| 228 | 229 | * |
| 229 | 230 | * @param int $seconds Time in seconds |
| 230 | 231 | * @param array $units Time units (seconds, minutes, hours, days, weeks, years) |
| 231 | - * @param string $separator |
|
| 232 | + * @param string $seperator |
|
| 232 | 233 | * @return string |
| 233 | 234 | */ |
| 234 | 235 | public function duration($seconds, $units = ['s', 'm', 'h', 'd', 'w', 'y'], $seperator = ' ') |
@@ -62,13 +62,13 @@ |
||
| 62 | 62 | |
| 63 | 63 | switch ($format) { |
| 64 | 64 | case null: $pattern = $this->getDefaultDatePattern($calendar); |
| 65 | - $format = \IntlDateFormatter::SHORT; break; |
|
| 65 | + $format = \IntlDateFormatter::SHORT; break; |
|
| 66 | 66 | case 'short': $format = \IntlDateFormatter::SHORT; break; |
| 67 | 67 | case 'medium': $format = \IntlDateFormatter::MEDIUM; break; |
| 68 | 68 | case 'long': $format = \IntlDateFormatter::LONG; break; |
| 69 | 69 | case 'full': $format = \IntlDateFormatter::FULL; break; |
| 70 | 70 | default: $pattern = $format; |
| 71 | - $format = \IntlDateFormatter::SHORT; break; |
|
| 71 | + $format = \IntlDateFormatter::SHORT; break; |
|
| 72 | 72 | } |
| 73 | 73 | |
| 74 | 74 | return [$format, $pattern]; |