Passed
Push — master ( 913c0a...fd8403 )
by Ondřej
05:45
created
src/Ivory/Value/Decimal.php 2 patches
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.
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/TimeInterval.php 2 patches
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.
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\Value\Alg\ComparableWithPhpOperators;
Please login to merge, or discard this patch.
src/Ivory/Relation/RelationMacros.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -18,6 +18,9 @@
 block discarded – undo
18 18
  */
19 19
 trait RelationMacros
20 20
 {
21
+    /**
22
+     * @param string[] $columns
23
+     */
21 24
     abstract public function project($columns): IRelation;
22 25
 
23 26
     abstract public function tuple(int $offset = 0): ITuple;
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\Map\ArrayRelationMap;
Please login to merge, or discard this patch.
src/Ivory/Connection/Config/ConnConfig.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -301,6 +301,9 @@
 block discarded – undo
301 301
                 {
302 302
                     private $refresher;
303 303
 
304
+                    /**
305
+                     * @param \Closure $refresher
306
+                     */
304 307
                     public function __construct($refresher)
305 308
                     {
306 309
                         $this->refresher = $refresher;
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\Config;
4 4
 
5 5
 use Ivory\Connection\ConnectionControl;
Please login to merge, or discard this patch.
src/Ivory/Utils/StringUtils.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
      *
11 11
      * @param string $pattern
12 12
      * @param callable $callback
13
-     * @param string|string[] $subject
13
+     * @param string $subject
14 14
      * @param int $limit
15 15
      * @param int|null $count
16 16
      * @return string|string[] depending on whether <tt>$subject</tt> is <tt>string</tt> or <tt>array</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\Utils;
4 4
 
5 5
 class StringUtils
Please login to merge, or discard this patch.
src/Ivory/Connection/Config/ICachingConnConfig.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @param string|string[] one or more names of parameters the cached values of which to invalidate;
37 37
      *                        <tt>null</tt> invalidates everything
38
+     * @return void
38 39
      */
39 40
     function invalidateCache($paramName = null): void;
40 41
 
@@ -47,6 +48,7 @@  discard block
 block discarded – undo
47 48
      *
48 49
      * @param string|string[] $paramName one or more names of parameters to disabled caching values of;
49 50
      *                                   <tt>null</tt> disables the caching altogether
51
+     * @return void
50 52
      */
51 53
     function disableCaching($paramName = null): void;
52 54
 
@@ -58,6 +60,7 @@  discard block
 block discarded – undo
58 60
      * argument (which is the default).
59 61
      *
60 62
      * @param string|string[] $paramName
63
+     * @return void
61 64
      */
62 65
     function enableCaching($paramName = null): void;
63 66
 }
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\Config;
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
src/Ivory/Exception/StatementExceptionFactory.php 2 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -116,6 +116,10 @@
 block discarded – undo
116 116
         return new $exClass($resultHandler, $query);
117 117
     }
118 118
 
119
+    /**
120
+     * @param resource $resultHandler
121
+     * @param StatementExceptionFactory $fallbackFactory
122
+     */
119 123
     private function inferExceptionClass($resultHandler, ?StatementExceptionFactory $fallbackFactory = null): string
120 124
     {
121 125
         if ($this->bySqlStateCodeAndMessage || $this->bySqlStateCode || $this->bySqlStateClass) {
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\Exception;
4 4
 
5 5
 use Ivory\Lang\Sql\SqlState;
Please login to merge, or discard this patch.
src/Ivory/Ivory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
     }
205 205
 
206 206
     /**
207
-     * @param IConnection|string $conn (name of) connection to use as the default connection
207
+     * @param IConnection $conn (name of) connection to use as the default connection
208 208
      * @throws \RuntimeException if the requested connection is not defined
209 209
      */
210 210
     public static function useConnectionAsDefault($conn): void
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;
4 4
 
5 5
 use Ivory\Cache\ICacheControl;
Please login to merge, or discard this patch.
src/Ivory/Type/TypeDictionary.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -306,6 +306,9 @@
 block discarded – undo
306 306
         }
307 307
     }
308 308
 
309
+    /**
310
+     * @param IType $item
311
+     */
309 312
     private static function removeAll(array &$array, $item): void
310 313
     {
311 314
         while (($key = array_search($item, $array, true)) !== false) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 namespace Ivory\Type;
4 4
 
5 5
 use Ivory\Connection\IConnection;
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
             // necessary for the forward reference to be valid once the aliased type finally appears in the type map
324 324
             $this->qualNameTypeMap[$schemaName] = [];
325 325
         }
326
-        $this->typeAliases[$alias] =& $this->qualNameTypeMap[$schemaName][$typeName];
326
+        $this->typeAliases[$alias] = & $this->qualNameTypeMap[$schemaName][$typeName];
327 327
     }
328 328
 
329 329
     /**
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
         foreach ($this->typeSearchPath as $schemaName) {
341 341
             foreach (($this->qualNameTypeMap[$schemaName] ?? []) as $typeName => $type) {
342 342
                 if (!isset($this->searchedNameCache[$typeName])) {
343
-                    $this->searchedNameCache[$typeName] =& $this->qualNameTypeMap[$schemaName][$typeName];
343
+                    $this->searchedNameCache[$typeName] = & $this->qualNameTypeMap[$schemaName][$typeName];
344 344
                 }
345 345
             }
346 346
         }
Please login to merge, or discard this patch.