@@ -37,9 +37,9 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * Gets year & dayIndex (in that year) from an eraDayIndex |
| 39 | 39 | * |
| 40 | - * @param integer $eraDayindex |
|
| 40 | + * @param integer $eraDayIndex |
|
| 41 | 41 | * |
| 42 | - * @return array [$year, $dayIndex] |
|
| 42 | + * @return integer[] [$year, $dayIndex] |
|
| 43 | 43 | */ |
| 44 | 44 | public function getYearAndDayIndexFromErayDayIndex($eraDayIndex); |
| 45 | 45 | } |
@@ -369,6 +369,11 @@ |
||
| 369 | 369 | )); |
| 370 | 370 | } |
| 371 | 371 | |
| 372 | + /** |
|
| 373 | + * @param string $name |
|
| 374 | + * @param string[] $list |
|
| 375 | + * @param string $default |
|
| 376 | + */ |
|
| 372 | 377 | protected function getOptionValueChoice(array $options, $name, $list, $default = null) |
| 373 | 378 | { |
| 374 | 379 | $value = $this->getOptionValue($options, $name, $default); |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | /** |
| 27 | 27 | * Class constructor. |
| 28 | 28 | * |
| 29 | - * @param FormatterInterface $Formatter Formatter |
|
| 29 | + * @param FormatterInterface $formatter Formatter |
|
| 30 | 30 | * @param string $format Date format |
| 31 | 31 | */ |
| 32 | 32 | public function __construct(FormatterInterface $formatter, $format) |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | /** |
| 163 | 163 | * Set all sizes, adding null values if needed. |
| 164 | 164 | * |
| 165 | - * @param array<integer|null> $sizes |
|
| 165 | + * @param integer[] $sizes |
|
| 166 | 166 | * |
| 167 | 167 | * @return static a new instance. |
| 168 | 168 | */ |
@@ -254,7 +254,6 @@ discard block |
||
| 254 | 254 | /** |
| 255 | 255 | * Set fragments sizes, adding null sizes if needed. |
| 256 | 256 | * |
| 257 | - * @param array<integer|null> $sizes |
|
| 258 | 257 | */ |
| 259 | 258 | protected function fillArrayInput(array $input) |
| 260 | 259 | { |
@@ -76,7 +76,6 @@ |
||
| 76 | 76 | /** |
| 77 | 77 | * Gets a new date instance having the input timezone. |
| 78 | 78 | * |
| 79 | - * @param DateTimeZone $offset |
|
| 80 | 79 | * |
| 81 | 80 | * @return static |
| 82 | 81 | */ |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | /** |
| 51 | 51 | * Gets a new instance with inpu indexes. |
| 52 | 52 | * |
| 53 | - * @param integer|null $dayIndex |
|
| 53 | + * @param integer|null $dayindex |
|
| 54 | 54 | * @param integer|null $eraDayIndex |
| 55 | 55 | * |
| 56 | 56 | * @return static |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * Class constructor. |
| 35 | 35 | * |
| 36 | 36 | * @param array $fragments |
| 37 | - * @param array $sizes |
|
| 37 | + * @param integer[] $sizes |
|
| 38 | 38 | * @param integer|null $ratio |
| 39 | 39 | */ |
| 40 | 40 | public function __construct(array $fragments = [], array $sizes = [], $ratio = null) |
@@ -106,6 +106,9 @@ discard block |
||
| 106 | 106 | return $this->fragments[$i] % $half; |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | + /** |
|
| 110 | + * @param integer $i |
|
| 111 | + */ |
|
| 109 | 112 | public function canBeHalved($i) |
| 110 | 113 | { |
| 111 | 114 | if (isset($this->halved[$i])) { |