Passed
Push — master ( 3a7f22...a610f4 )
by Ondřej
03:24
created
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.
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.