Passed
Push — master ( 0c19f1...8279ff )
by Ondřej
06:33
created
src/Ivory/Value/Decimal.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
      * which might or might not be desired. Such a difference only arises in the trailing fractional zero digits,
257 257
      * though.
258 258
      *
259
-     * @param string|int|float|Decimal|object $number number to compare this number with
259
+     * @param Decimal $number number to compare this number with
260 260
      * @return bool|null whether this number numerically equals to <tt>$number</tt>;
261 261
      *                   <tt>null</tt> for <tt>null</tt> input
262 262
      */
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     }
279 279
 
280 280
     /**
281
-     * @param string|int|float|Decimal|object $number
281
+     * @param Decimal $number
282 282
      * @return bool <tt>true</tt> iff this number is numerically greater than <tt>$number</tt>
283 283
      */
284 284
     public function greaterThan($number): bool
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
     }
364 364
 
365 365
     /**
366
-     * @param string|int|float|Decimal|object $augend
366
+     * @param integer $augend
367 367
      * @return Decimal a new decimal number, representing the result of sum of this and the given number
368 368
      */
369 369
     public function add($augend): Decimal
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     }
381 381
 
382 382
     /**
383
-     * @param string|int|float|Decimal|object $subtrahend
383
+     * @param Decimal $subtrahend
384 384
      * @return Decimal a new decimal number, representing the result of subtraction of this and the given number
385 385
      */
386 386
     public function subtract($subtrahend): Decimal
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
     }
398 398
 
399 399
     /**
400
-     * @param string|int|float|Decimal|object $multiplicand
400
+     * @param Decimal $multiplicand
401 401
      * @return Decimal a new decimal number, representing the result of multiplication of this and the given number
402 402
      */
403 403
     public function multiply($multiplicand): Decimal
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
414 414
     }
415 415
 
416 416
     /**
417
-     * @param string|int|float|Decimal|object $divisor
417
+     * @param Decimal $divisor
418 418
      * @return Decimal a new decimal number, representing the result of division of this number with the given number
419 419
      * @throws \RuntimeException if <tt>$divisor</tt> is zero
420 420
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Value;
4 4
 
5 5
 use Ivory\Exception\UndefinedOperationException;
Please login to merge, or discard this patch.
src/Ivory/Value/Range.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -168,6 +168,9 @@  discard block
 block discarded – undo
168 168
         return new Range($subtype, null, true, null, null, null, null);
169 169
     }
170 170
 
171
+    /**
172
+     * @param boolean $upperInc
173
+     */
171 174
     private static function processBoundSpec($boundsOrLowerInc = '[)', ?bool $upperInc = null)
172 175
     {
173 176
         if (is_string($boundsOrLowerInc)) {
@@ -194,6 +197,9 @@  discard block
 block discarded – undo
194 197
     }
195 198
 
196 199
 
200
+    /**
201
+     * @param IRangeCanonicalFunc|null $canonicalFunc
202
+     */
197 203
     private function __construct(
198 204
         ITotallyOrderedType $subtype,
199 205
         ?IRangeCanonicalFunc $canonicalFunc,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Value;
4 4
 
5 5
 use Ivory\Exception\ImmutableException;
Please login to merge, or discard this patch.
src/Ivory/Value/TimestampBase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -206,7 +206,7 @@
 block discarded – undo
206 206
      * Adds a given number of seconds (1 by default) to this date/time and returns the result. Only affects finite
207 207
      * dates.
208 208
      *
209
-     * @param int|float $seconds
209
+     * @param integer $seconds
210 210
      * @return static the date <tt>$seconds</tt> seconds after (or before, if negative) this date/time
211 211
      */
212 212
     public function addSecond($seconds = 1)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Value;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
src/Ivory/Connection/ITypeControl.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@  discard block
 block discarded – undo
22 22
      * Flushes the type dictionary currently in use, leading to loading a fresh new type dictionary.
23 23
      *
24 24
      * Useful when the data types change during the script execution in such a way Ivory is unable to detect it.
25
+     * @return void
25 26
      */
26 27
     function flushTypeDictionary(): void;
27 28
 
@@ -29,6 +30,7 @@  discard block
 block discarded – undo
29 30
      * Sets an implementation-specific option, driving behaviour of the type control.
30 31
      *
31 32
      * @param int $option
33
+     * @return void
32 34
      */
33 35
     function setTypeControlOption(int $option): void;
34 36
 
@@ -36,6 +38,7 @@  discard block
 block discarded – undo
36 38
      * Unsets an implementation-specific option, driving behaviour of the type control.
37 39
      *
38 40
      * @param int $option
41
+     * @return void
39 42
      */
40 43
     function unsetTypeControlOption(int $option): void;
41 44
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Connection;
4 4
 
5 5
 use Ivory\Type\ITypeDictionary;
Please login to merge, or discard this patch.
src/Ivory/Relation/IRelation.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     /**
163 163
      * Projects a single column from this relation.
164 164
      *
165
-     * @param int|string|ITupleEvaluator|\Closure $offsetOrNameOrEvaluator
165
+     * @param integer $offsetOrNameOrEvaluator
166 166
      *                                  Zero-based offset or (non-numeric) name of column to project from this relation,
167 167
      *                                    or an evaluator which computes each value from the tuple.
168 168
      *                                  As an evaluator, either {@link ITupleEvaluator} (the
@@ -318,12 +318,12 @@  discard block
 block discarded – undo
318 318
     function tuple(int $offset = 0): ITuple;
319 319
 
320 320
     /**
321
-     * @param int|string|ITupleEvaluator|\Closure $colOffsetOrNameOrEvaluator
321
+     * @param integer $colOffsetOrNameOrEvaluator
322 322
      *                                  Specification of column from which to get the value. See {@link col()} for more
323 323
      *                                    details on the column specification.
324 324
      * @param int $tupleOffset zero-based offset of the tuple to get;
325 325
      *                         if negative, the <tt>-$tupleOffset</tt>'th tuple from the end is returned
326
-     * @return mixed
326
+     * @return string
327 327
      * @throws \OutOfBoundsException when this relation has fewer than <tt>$tupleOffset+1</tt> tuples, or fewer than
328 328
      *                                 <tt>-$tupleOffset</tt> tuples if <tt>$tupleOffset</tt> is negative
329 329
      * @throws UndefinedColumnException if no column matches the specification
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Relation;
4 4
 
5 5
 use Ivory\Data\Set\ISet;
Please login to merge, or discard this patch.
src/Ivory/Value/Box.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     /**
19 19
      * Creates a new box from a corner and its opposite corner, each as either a {@link Point} or a pair of coordinates.
20 20
      *
21
-     * @param Point|float[] $corner
22
-     * @param Point|float[] $oppositeCorner
21
+     * @param Point $corner
22
+     * @param Point $oppositeCorner
23 23
      * @return Box
24 24
      */
25 25
     public static function fromOppositeCorners($corner, $oppositeCorner): Box
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Value;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
src/Ivory/Value/Circle.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     /**
17 17
      * Creates a new circle by its center point and radius.
18 18
      *
19
-     * @param Point|float[] $center the center point
19
+     * @param Point $center the center point
20 20
      * @param float $radius radius of the circle
21 21
      * @return Circle
22 22
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Value;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
src/Ivory/Value/LineSegment.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
     /**
19 19
      * Creates a new line segment from its start and end point, each as either a {@link Point} or a pair of coordinates.
20 20
      *
21
-     * @param Point|float[] $start
22
-     * @param Point|float[] $end
21
+     * @param Point $start
22
+     * @param Point $end
23 23
      * @return LineSegment
24 24
      */
25 25
     public static function fromEndpoints($start, $end): LineSegment
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Value;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
src/Ivory/Value/Point.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-     * @param object $object
79
+     * @param Point $object
80 80
      * @return bool|null <tt>true</tt> if <tt>$this</tt> and the other <tt>$object</tt> are equal to each other,
81 81
      *                   <tt>false</tt> if they are not equal,
82 82
      *                   <tt>null</tt> iff <tt>$object</tt> is <tt>null</tt>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Value;
4 4
 
5 5
 use Ivory\Utils\IEqualable;
Please login to merge, or discard this patch.