@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Lang\SqlPattern; |
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\Lang\SqlPattern; |
5 | 5 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | * @param bool|null $quoted |
98 | 98 | * @return string|null <tt>null</tt> iff <tt>$str</tt> is <tt>null</tt> |
99 | 99 | */ |
100 | - private function unquoteString(?string $str, ?bool &$quoted = null): ?string |
|
100 | + private function unquoteString(?string $str, ?bool &$quoted = null) : ?string |
|
101 | 101 | { |
102 | 102 | if ($str && $str[0] == '"') { |
103 | 103 | assert($str[strlen($str) - 1] == '"'); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Lang\Sql; |
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\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; |