Completed
Push — master ( 5f3c84...0c19f1 )
by Ondřej
03:04
created
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/Relation/RelationMacros.php 1 patch
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.
src/Ivory/Connection/Config/ConnConfig.php 1 patch
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.
src/Ivory/Utils/StringUtils.php 1 patch
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.
src/Ivory/Value/Box.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 box from a corner and its opposite corner, each as either a {@link Point} or a pair of coordinates.
19 19
      *
20
-     * @param Point|float[] $corner
21
-     * @param Point|float[] $oppositeCorner
20
+     * @param Point|null $corner
21
+     * @param Point|null $oppositeCorner
22 22
      * @return Box
23 23
      */
24 24
     public static function fromOppositeCorners($corner, $oppositeCorner): Box
Please login to merge, or discard this patch.
src/Ivory/Value/Circle.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     /**
16 16
      * Creates a new circle by its center point and radius.
17 17
      *
18
-     * @param Point|float[] $center the center point
18
+     * @param Point|null $center the center point
19 19
      * @param float $radius radius of the circle
20 20
      * @return Circle
21 21
      */
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 Point|null $start
21
+     * @param Point|null $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/Connection/Config/ICachingConnConfig.php 1 patch
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.
src/Ivory/Exception/StatementExceptionFactory.php 1 patch
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.