@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Popy\Calendar\Converter; |
| 4 | 4 | |
| 5 | -use DateTimeImmutable; |
|
| 6 | -use DateTimeInterface; |
|
| 7 | 5 | use Popy\Calendar\ConverterInterface; |
| 8 | 6 | use Popy\Calendar\ValueObject\DateRepresentationInterface; |
| 9 | 7 | use Popy\Calendar\ValueObject\DateRepresentation\Date; |
@@ -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 | } |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Popy\Calendar\Converter\Conversion; |
| 6 | 6 | use Popy\Calendar\Converter\UnixTimeConverterInterface; |
| 7 | -use Popy\Calendar\ValueObject\DateRepresentation\Standard; |
|
| 8 | 7 | |
| 9 | 8 | class Chain implements UnixTimeConverterInterface |
| 10 | 9 | { |
@@ -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); |
@@ -5,10 +5,6 @@ |
||
| 5 | 5 | use Popy\Calendar\Parser\FormatToken; |
| 6 | 6 | use Popy\Calendar\Parser\SymbolParserInterface; |
| 7 | 7 | use Popy\Calendar\Parser\FormatParserInterface; |
| 8 | -use Popy\Calendar\Parser\DateLexer\PregSimple; |
|
| 9 | -use Popy\Calendar\Parser\DateLexer\PregChoice; |
|
| 10 | -use Popy\Calendar\Formatter\LocalisationInterface; |
|
| 11 | -use Popy\Calendar\Formatter\Localisation\NativeHardcoded; |
|
| 12 | 8 | |
| 13 | 9 | /** |
| 14 | 10 | * Chain implementation, stopping at the first result |
@@ -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 |