Passed
Push — master ( 10985a...23fe50 )
by Ondřej
02:30
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/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/Type/Ivory/RelationSerializer.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,7 @@
 block discarded – undo
58 58
             $type = $column->getType();
59 59
             if ($type === null) {
60 60
                 $colIdent = ($column->getName() !== null ?
61
-                    'column ' . $column->getName() :
62
-                    StringUtils::englishOrd($i+1) . ' column'
61
+                    'column ' . $column->getName() : StringUtils::englishOrd($i + 1) . ' column'
63 62
                 );
64 63
                 throw new \InvalidArgumentException("Invalid relation for serialization - $colIdent has unknown type");
65 64
             }
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
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
             // necessary for the forward reference to be valid once the aliased type finally appears in the type map
329 329
             $this->qualNameTypeMap[$schemaName] = [];
330 330
         }
331
-        $this->typeAliases[$alias] =& $this->qualNameTypeMap[$schemaName][$typeName];
331
+        $this->typeAliases[$alias] = & $this->qualNameTypeMap[$schemaName][$typeName];
332 332
     }
333 333
 
334 334
     /**
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
         foreach ($this->typeSearchPath as $schemaName) {
346 346
             foreach (($this->qualNameTypeMap[$schemaName] ?? []) as $typeName => $type) {
347 347
                 if (!isset($this->searchedNameCache[$typeName])) {
348
-                    $this->searchedNameCache[$typeName] =& $this->qualNameTypeMap[$schemaName][$typeName];
348
+                    $this->searchedNameCache[$typeName] = & $this->qualNameTypeMap[$schemaName][$typeName];
349 349
                 }
350 350
             }
351 351
         }
Please login to merge, or discard this patch.
src/Ivory/Relation/ProjectedRelationBase.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,7 @@
 block discarded – undo
19 19
             $colName = $col->getName();
20 20
             if ($colName !== null && $colName !== '') {
21 21
                 $this->projectedColNameMap[$colName] = (isset($this->projectedColNameMap[$colName]) ?
22
-                    Tuple::AMBIGUOUS_COL :
23
-                    $colOffset
22
+                    Tuple::AMBIGUOUS_COL : $colOffset
24 23
                 );
25 24
             }
26 25
         }
Please login to merge, or discard this patch.
src/Ivory/Query/SqlPatternDefinitionMacros.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
218 218
             $curFragmentNum++;
219 219
             $argsProcessed += count($posParams);
220 220
 
221
-            $curFragment =& $fragmentsAndParamValues[$argsProcessed];
221
+            $curFragment = & $fragmentsAndParamValues[$argsProcessed];
222 222
             $argsProcessed++;
223 223
         } while (isset($curFragment));
224 224
 
Please login to merge, or discard this patch.
src/Ivory/Type/TypeBase.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,8 +46,7 @@  discard block
 block discarded – undo
46 46
         if ($useTypeCast) {
47 47
             $plainName = (
48 48
                 $this->typeModifier === '' ?
49
-                $this->getName() :
50
-                substr($this->getName(), 0, -strlen($this->typeModifier))
49
+                $this->getName() : substr($this->getName(), 0, -strlen($this->typeModifier))
51 50
             );
52 51
             return sprintf(
53 52
                 '%s::%s.%s%s',
@@ -66,8 +65,7 @@  discard block
 block discarded – undo
66 65
         if ($useTypeIndication) {
67 66
             $plainName = (
68 67
                 $this->typeModifier === '' ?
69
-                $this->getName() :
70
-                substr($this->getName(), 0, -strlen($this->typeModifier))
68
+                $this->getName() : substr($this->getName(), 0, -strlen($this->typeModifier))
71 69
             );
72 70
             return sprintf(
73 71
                 '%s.%s%s %s',
Please login to merge, or discard this patch.
src/Ivory/Value/TimestampBase.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         $addYears = 0;
48 48
         $dateCreateInput = preg_replace_callback(
49 49
             '~\d{5,}(?=(?:-\d+-\d+|\d{4})(?:\s+|T)\d)~', // supports both dash-separated date/time parts and also the
50
-                                                         // form without dash separators
50
+                                                            // form without dash separators
51 51
             function ($y) use (&$addYears) {
52 52
                 $res = $y[0] % 10000;
53 53
                 $addYears = $y[0] - $res;
Please login to merge, or discard this patch.