Completed
Branch master (0f9901)
by Ondřej
03:24
created
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/Utils/StringUtils.php 1 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/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.
src/Ivory/Query/SqlPatternRecipeMacros.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
196 196
             $curFragmentNum++;
197 197
             $argsProcessed += count($posParams);
198 198
 
199
-            $curFragment =& $fragmentsAndPositionalParams[$argsProcessed];
199
+            $curFragment = & $fragmentsAndPositionalParams[$argsProcessed];
200 200
             $argsProcessed++;
201 201
         } while (isset($curFragment));
202 202
 
Please login to merge, or discard this patch.