Completed
Push — master ( 7cd110...80ad88 )
by Ondřej
07:00
created
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.
src/Ivory/Lang/Sql/Types.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 class Types
8 8
 {
9 9
     const BIGINT_MIN = '-9223372036854775808'; // NOTE: written as string not to lose precision on platforms where this
10
-    const BIGINT_MAX = '999999999999';  //       would be converted to float
10
+    const BIGINT_MAX = '999999999999'; //       would be converted to float
11 11
 
12 12
     /**
13 13
      * Lists names of types defined by SQL as reserved ones.
Please login to merge, or discard this patch.
src/Ivory/Connection/ITypeControl.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -23,6 +23,7 @@
 block discarded – undo
23 23
      * Flushes the type dictionary currently in use, leading to loading a fresh new type dictionary.
24 24
      *
25 25
      * Useful when the data types change during the script execution in such a way Ivory is unable to detect it.
26
+     * @return void
26 27
      */
27 28
     function flushTypeDictionary();
28 29
 }
Please login to merge, or discard this patch.
src/Ivory/Type/Postgresql/RangeType.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -151,6 +151,10 @@
 block discarded – undo
151 151
         }
152 152
     }
153 153
 
154
+    /**
155
+     * @param boolean|null $aIsInc
156
+     * @param boolean|null $bIsInc
157
+     */
154 158
     private function compareBounds(int $sgn, $aVal, $aIsInc, $bVal, $bIsInc): int
155 159
     {
156 160
         if ($aVal === null && $bVal === null) {
Please login to merge, or discard this patch.
src/Ivory/Type/Postgresql/ArrayType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
      * @param int $maxDim the maximal dimension discovered so far
250 250
      * @return string the PostgreSQL external representation of <tt>$val</tt>
251 251
      */
252
-    private function serializeValuePlain($val, &$dims = [], int $curDim = 0, int &$maxDim = -1): string
252
+    private function serializeValuePlain($val, &$dims = [], int $curDim = 0, int & $maxDim = -1): string
253 253
     {
254 254
         if ($val === null) {
255 255
             return 'NULL';
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      * @param int $maxDim the maximal dimension discovered so far
304 304
      * @return string the PostgreSQL external representation of <tt>$val</tt>
305 305
      */
306
-    private function serializeValueStrict($val, &$bounds = [], int $curDim = 0, int &$maxDim = -1): string
306
+    private function serializeValueStrict($val, &$bounds = [], int $curDim = 0, int & $maxDim = -1): string
307 307
     {
308 308
         if ($val === null) {
309 309
             return 'NULL';
Please login to merge, or discard this patch.