Passed
Push — master ( 0233e0...87b66a )
by Ondřej
03:08
created
src/Ivory/Connection/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/Value/DateBase.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,7 @@  discard block
 block discarded – undo
56 56
 
57 57
     /**
58 58
      * @internal Only for the purpose of Ivory itself.
59
+     * @param integer $inf
59 60
      */
60 61
     final protected function __construct($inf, \DateTimeImmutable $dt = null)
61 62
     {
@@ -178,7 +179,7 @@  discard block
 block discarded – undo
178 179
 
179 180
     /**
180 181
      * @param \DateTimeZone $timezone timezone to create the {@link \DateTime} object with
181
-     * @return \DateTime|null the date/time represented as a {@link \DateTimeImmutable} object;
182
+     * @return null|\DateTimeImmutable the date/time represented as a {@link \DateTimeImmutable} object;
182 183
      *                        <tt>null</tt> iff the date/time is not finite
183 184
      */
184 185
     public function toDateTimeImmutable(\DateTimeZone $timezone = null)
@@ -233,6 +234,13 @@  discard block
 block discarded – undo
233 234
     }
234 235
 
235 236
 
237
+    /**
238
+     * @param integer $years
239
+     * @param integer $months
240
+     * @param integer $days
241
+     * @param integer $hours
242
+     * @param integer $minutes
243
+     */
236 244
     final protected function addPartsImpl($years, $months, $days, $hours, $minutes, $seconds)
237 245
     {
238 246
         if ($this->inf) {
Please login to merge, or discard this patch.
src/Ivory/Value/NetAddress.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
                 $i += $lzsLen - 1;
288 288
                 continue;
289 289
             }
290
-            $result .= (ltrim($fields[$i], '0') ? : '0');
290
+            $result .= (ltrim($fields[$i], '0') ?: '0');
291 291
         }
292 292
         if ($lzsStart + $lzsLen == 8) {
293 293
             $result .= ':';
Please login to merge, or discard this patch.
src/Ivory/Type/Std/HstoreType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                 throw new \InvalidArgumentException('Invalid syntax of hstore value');
37 37
             }
38 38
 
39
-            $k = ($m[2][0] ? : $this->unescapeAtom($m[1][0]));
39
+            $k = ($m[2][0] ?: $this->unescapeAtom($m[1][0]));
40 40
             $v = (!empty($m[4][0]) ? null : (!empty($m[5][0]) ? $m[5][0] : $this->unescapeAtom($m[3][0])));
41 41
             $result[$k] = $v;
42 42
 
Please login to merge, or discard this patch.
src/Ivory/Type/TypeDictionary.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function defineTypeAlias(string $alias, string $schemaName, string $typeName)
63 63
     {
64
-        $this->nameTypeMap[$alias] =& $this->qualNameTypeMap[$schemaName][$typeName];
64
+        $this->nameTypeMap[$alias] = & $this->qualNameTypeMap[$schemaName][$typeName];
65 65
     }
66 66
 
67 67
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         foreach ($this->typeSearchPath as $schemaName) {
92 92
             foreach (($this->qualNameTypeMap[$schemaName] ?? []) as $typeName => $converter) {
93 93
                 if (!isset($this->searchedNameCache[$typeName])) {
94
-                    $this->searchedNameCache[$typeName] =& $this->qualNameTypeMap[$schemaName][$typeName];
94
+                    $this->searchedNameCache[$typeName] = & $this->qualNameTypeMap[$schemaName][$typeName];
95 95
                 }
96 96
             }
97 97
         }
Please login to merge, or discard this patch.
src/Ivory/Ivory.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@
 block discarded – undo
164 164
     }
165 165
 
166 166
     /**
167
-     * @param IConnection|string $conn (name of) connection to use as the default connection
167
+     * @param IConnection $conn (name of) connection to use as the default connection
168 168
      * @throws \RuntimeException if the requested connection is not defined
169 169
      */
170 170
     public static function useConnectionAsDefault($conn)
Please login to merge, or discard this patch.
src/Ivory/Utils/StringUtils.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
      * plain array of matches, but an extended array: each item is a pair of the matching portion of the needle and the
11 11
      * byte offset to the subject, like {@link preg_match_all()} does with the `PREG_OFFSET_CAPTURE` flag.
12 12
      *
13
-     * @param string|string[] $pattern
13
+     * @param string $pattern
14 14
      * @param callable $callback
15
-     * @param string|string[] $subject
15
+     * @param string $subject
16 16
      * @param int $limit
17 17
      * @param int|null $count
18 18
      * @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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         callable $callback,
24 24
         $subject,
25 25
         int $limit = -1,
26
-        int &$count = null
26
+        int & $count = null
27 27
     )
28 28
     {
29 29
         if (is_array($subject)) {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         callable $callback,
43 43
         string $subject,
44 44
         int $limit = -1,
45
-        int &$count = null
45
+        int & $count = null
46 46
     ): string
47 47
     {
48 48
         if (is_array($pattern)) {
Please login to merge, or discard this patch.
src/Ivory/Type/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/ArrayType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
      * @param int $maxDim the maximal dimension discovered so far
201 201
      * @return string the PostgreSQL external representation of <tt>$val</tt>
202 202
      */
203
-    private function serializeValueImpl($val, &$bounds = [], int $curDim = 0, int &$maxDim = -1): string
203
+    private function serializeValueImpl($val, &$bounds = [], int $curDim = 0, int & $maxDim = -1): string
204 204
     {
205 205
         if ($val === null) {
206 206
             return 'NULL';
Please login to merge, or discard this patch.