Passed
Push — master ( 339072...c27d2d )
by Ondřej
03:18
created
src/Ivory/Value/Decimal.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * which might or might not be desired. Such a difference only arises in the trailing fractional zero digits,
255 255
      * though.
256 256
      *
257
-     * @param string|int|float|Decimal|object $number number to compare this number with
257
+     * @param Decimal $number number to compare this number with
258 258
      * @return bool whether this number numerically equals to <tt>$number</tt>
259 259
      */
260 260
     public function equals($number): bool
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
     }
276 276
 
277 277
     /**
278
-     * @param string|int|float|Decimal|object $number
278
+     * @param Decimal $number
279 279
      * @return bool <tt>true</tt> iff this number is numerically greater than <tt>$number</tt>
280 280
      */
281 281
     public function greaterThan($number): bool
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
     }
361 361
 
362 362
     /**
363
-     * @param string|int|float|Decimal|object $augend
363
+     * @param integer $augend
364 364
      * @return Decimal a new decimal number, representing the result of sum of this and the given number
365 365
      */
366 366
     public function add($augend): Decimal
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     }
378 378
 
379 379
     /**
380
-     * @param string|int|float|Decimal|object $subtrahend
380
+     * @param Decimal $subtrahend
381 381
      * @return Decimal a new decimal number, representing the result of subtraction of this and the given number
382 382
      */
383 383
     public function subtract($subtrahend): Decimal
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
     }
395 395
 
396 396
     /**
397
-     * @param string|int|float|Decimal|object $multiplicand
397
+     * @param Decimal $multiplicand
398 398
      * @return Decimal a new decimal number, representing the result of multiplication of this and the given number
399 399
      */
400 400
     public function multiply($multiplicand): Decimal
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
     }
412 412
 
413 413
     /**
414
-     * @param string|int|float|Decimal|object $divisor
414
+     * @param Decimal $divisor
415 415
      * @return Decimal a new decimal number, representing the result of division of this number with the given number
416 416
      * @throws \RuntimeException if <tt>$divisor</tt> is zero
417 417
      */
Please login to merge, or discard this patch.
src/Ivory/Value/Json.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -89,6 +89,9 @@
 block discarded – undo
89 89
         return $value;
90 90
     }
91 91
 
92
+    /**
93
+     * @return string|null
94
+     */
92 95
     private static function getJsonErrorMsg()
93 96
     {
94 97
         if (PHP_VERSION_ID >= 50500) {
Please login to merge, or discard this patch.
src/Ivory/Value/Line.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
         return new Line($a, $b, $c, [$p1, $p2]);
56 56
     }
57 57
 
58
+    /**
59
+     * @param Point[] $points
60
+     */
58 61
     private function __construct(float $a, float $b, float $c, $points)
59 62
     {
60 63
         $this->a = $a;
Please login to merge, or discard this patch.
src/Ivory/Value/LineSegment.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,8 @@
 block discarded – undo
17 17
     /**
18 18
      * Creates a new line segment from its start and end point, each as either a {@link Point} or a pair of coordinates.
19 19
      *
20
-     * @param Point|float[] $start
21
-     * @param Point|float[] $end
20
+     * @param null|Point $start
21
+     * @param null|Point $end
22 22
      * @return LineSegment
23 23
      */
24 24
     public static function fromEndpoints($start, $end): LineSegment
Please login to merge, or discard this patch.
src/Ivory/Value/Money.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -68,6 +68,9 @@
 block discarded – undo
68 68
     }
69 69
 
70 70
 
71
+    /**
72
+     * @param string|null $unit
73
+     */
71 74
     private function __construct(Decimal $amount, $unit)
72 75
     {
73 76
         $this->amount = $amount;
Please login to merge, or discard this patch.
src/Ivory/Value/Quantity.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -97,6 +97,9 @@  discard block
 block discarded – undo
97 97
         return new Quantity($val, $unit);
98 98
     }
99 99
 
100
+    /**
101
+     * @param string $value
102
+     */
100 103
     public static function fromValue($value, string $unit = null): Quantity
101 104
     {
102 105
         if (!is_numeric($value)) {
@@ -110,6 +113,9 @@  discard block
 block discarded – undo
110 113
         return new Quantity($value, $unit);
111 114
     }
112 115
 
116
+    /**
117
+     * @param string|null $unit
118
+     */
113 119
     private function __construct($value, $unit)
114 120
     {
115 121
         $this->value = $value;
Please login to merge, or discard this patch.
src/Ivory/Value/Range.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -166,6 +166,9 @@  discard block
 block discarded – undo
166 166
         return new Range($subtype, null, true, null, null, null, null);
167 167
     }
168 168
 
169
+    /**
170
+     * @param boolean $upperInc
171
+     */
169 172
     private static function processBoundSpec($boundsOrLowerInc = '[)', $upperInc = null)
170 173
     {
171 174
         if (is_string($boundsOrLowerInc)) {
@@ -192,6 +195,9 @@  discard block
 block discarded – undo
192 195
     }
193 196
 
194 197
 
198
+    /**
199
+     * @param IRangeCanonicalFunc|null $canonicalFunc
200
+     */
195 201
     private function __construct(
196 202
         ITotallyOrderedType $subtype,
197 203
         $canonicalFunc,
Please login to merge, or discard this patch.
src/Ivory/Value/TimeInterval.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -442,7 +442,7 @@
 block discarded – undo
442 442
     /**
443 443
      * Multiplies this time interval with a scalar and returns the result as a new time interval object.
444 444
      *
445
-     * @param number $multiplier
445
+     * @param integer $multiplier
446 446
      * @return TimeInterval
447 447
      */
448 448
     public function multiply($multiplier): TimeInterval
Please login to merge, or discard this patch.
src/Ivory/Exception/StatementExceptionFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -114,6 +114,9 @@
 block discarded – undo
114 114
         return new $exClass($resultHandler, $query);
115 115
     }
116 116
 
117
+    /**
118
+     * @param resource $resultHandler
119
+     */
117 120
     private function inferExceptionClass($resultHandler, StatementExceptionFactory $fallbackFactory = null): string
118 121
     {
119 122
         if ($this->bySqlStateCodeAndMessage || $this->bySqlStateCode || $this->bySqlStateClass) {
Please login to merge, or discard this patch.