@@ -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. |
@@ -249,7 +249,7 @@ discard block |
||
| 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 |
||
| 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'; |
@@ -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 | } |
@@ -18,8 +18,7 @@ discard block |
||
| 18 | 18 | $colName = $col->getName(); |
| 19 | 19 | if (strlen($colName) > 0) { |
| 20 | 20 | $this->projectedColNameMap[$colName] = (isset($this->projectedColNameMap[$colName]) ? |
| 21 | - Tuple::AMBIGUOUS_COL : |
|
| 22 | - $colOffset |
|
| 21 | + Tuple::AMBIGUOUS_COL : $colOffset |
|
| 23 | 22 | ); |
| 24 | 23 | } |
| 25 | 24 | } |
@@ -33,7 +32,7 @@ discard block |
||
| 33 | 32 | * @param int $starCnt number of star wildcards is stored here |
| 34 | 33 | * @return string PCRE equivalent to <tt>$macroPattern</tt> |
| 35 | 34 | */ |
| 36 | - protected static function simpleMacroPatternToPcre(string $macroPattern, int &$starCnt = null): string |
|
| 35 | + protected static function simpleMacroPatternToPcre(string $macroPattern, int & $starCnt = null): string |
|
| 37 | 36 | { |
| 38 | 37 | $starCnt = 0; |
| 39 | 38 | $pcre = '/^'; |
@@ -196,7 +196,7 @@ |
||
| 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 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | callable $callback, |
| 22 | 22 | $subject, |
| 23 | 23 | int $limit = -1, |
| 24 | - int &$count = null |
|
| 24 | + int & $count = null |
|
| 25 | 25 | ) |
| 26 | 26 | { |
| 27 | 27 | if (is_array($subject)) { |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | callable $callback, |
| 41 | 41 | string $subject, |
| 42 | 42 | int $limit = -1, |
| 43 | - int &$count = null |
|
| 43 | + int & $count = null |
|
| 44 | 44 | ): string |
| 45 | 45 | { |
| 46 | 46 | $count = 0; |