Completed
Branch master (a03d84)
by Pierre
02:04
created
src/Converter/AgnosticConverter.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Converter/LeapYearCalculatorInterface.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Converter/UnixTimeConverter/Chain.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.
src/Factory/ConfigurableFactory.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -369,6 +369,11 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Parser/SymbolParser/Chain.php 1 patch
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -5,10 +5,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/PresetFormatter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/ValueObject/AbstractFragmentedDuration.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/ValueObject/DateRepresentationInterface.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,6 @@
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/ValueObject/DateSolarRepresentationInterface.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.