@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Lang\Sql; |
5 | 5 | |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | class Types |
10 | 10 | { |
11 | 11 | const BIGINT_MIN = '-9223372036854775808'; // NOTE: written as string not to lose precision on platforms where this |
12 | - const BIGINT_MAX = '999999999999'; // would be converted to float |
|
12 | + const BIGINT_MAX = '999999999999'; // would be converted to float |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * Lists names of types defined by SQL as reserved ones. |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Data; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Data\Set; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Data\Map; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Value; |
5 | 5 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * @return FixedBitString |
32 | 32 | * @throws \InvalidArgumentException if <tt>$length</tt> is a non-positive number (PostgreSQL forbids it) |
33 | 33 | */ |
34 | - public static function fromString(string $bits, ?int $length = null): FixedBitString |
|
34 | + public static function fromString(string $bits, ?int $length = null) : FixedBitString |
|
35 | 35 | { |
36 | 36 | $bits = (string)$bits; |
37 | 37 | $bitsLen = strlen($bits); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Value; |
5 | 5 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | * object; |
250 | 250 | * <tt>null</tt> iff the date/time is not finite |
251 | 251 | */ |
252 | - public function toParts(): ?array |
|
252 | + public function toParts(): ? array |
|
253 | 253 | { |
254 | 254 | if ($this->inf) { |
255 | 255 | return null; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Value; |
5 | 5 | |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * @return FixedBitString the substring of the bit string |
143 | 143 | * @throws UndefinedOperationException when <tt>$for</tt> is negative |
144 | 144 | */ |
145 | - public function substring(int $from, ?int $for = null): FixedBitString |
|
145 | + public function substring(int $from, ?int $for = null) : FixedBitString |
|
146 | 146 | { |
147 | 147 | if ($for < 0) { |
148 | 148 | throw new UndefinedOperationException('negative number of bits to take'); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Value; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Value; |
5 | 5 | |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | $i += $lzsLen - 1; |
280 | 280 | continue; |
281 | 281 | } |
282 | - $result .= (ltrim($fields[$i], '0') ? : '0'); |
|
282 | + $result .= (ltrim($fields[$i], '0') ?: '0'); |
|
283 | 283 | } |
284 | 284 | if ($lzsStart + $lzsLen == 8) { |
285 | 285 | $result .= ':'; |