@@ -287,7 +287,7 @@ |
||
| 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 .= ':'; |
@@ -36,7 +36,7 @@ |
||
| 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 | |
@@ -7,7 +7,7 @@ |
||
| 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. |
@@ -58,8 +58,7 @@ |
||
| 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 | } |
@@ -328,7 +328,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -19,8 +19,7 @@ |
||
| 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 | } |
@@ -218,7 +218,7 @@ |
||
| 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 | |
@@ -46,8 +46,7 @@ discard block |
||
| 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 |
||
| 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', |
@@ -47,7 +47,7 @@ |
||
| 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; |