@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | /** |
| 32 | 32 | * Callback for Twig to get all the filters. |
| 33 | 33 | * |
| 34 | - * @return \Twig_Filter[] |
|
| 34 | + * @return \Twig_SimpleFilter[] |
|
| 35 | 35 | */ |
| 36 | 36 | public function getFilters() |
| 37 | 37 | { |
@@ -211,6 +211,7 @@ discard block |
||
| 211 | 211 | * Split duration into seconds, minutes, hours, days, weeks and years. |
| 212 | 212 | * |
| 213 | 213 | * @param int $seconds |
| 214 | + * @param integer $max |
|
| 214 | 215 | * @return array |
| 215 | 216 | */ |
| 216 | 217 | protected function splitDuration($seconds, $max) |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | if ( |
| 130 | 130 | (is_int($datetype) && $datetype !== \IntlDateFormatter::NONE) || |
| 131 | 131 | (is_int($timetype) && $timetype !== \IntlDateFormatter::NONE) |
| 132 | - ){ |
|
| 132 | + ) { |
|
| 133 | 133 | $pattern = \IntlDateFormatter::create( |
| 134 | 134 | \Locale::getDefault(), |
| 135 | 135 | is_int($datetype) ? $datetype : \IntlDateFormatter::NONE, |