@@ -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; |
5 | 5 | |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | return $reg; |
108 | 108 | } |
109 | 109 | |
110 | - public function createSqlPatternParser(?ICacheControl $cacheControl = null): ISqlPatternParser |
|
110 | + public function createSqlPatternParser(?ICacheControl $cacheControl = null) : ISqlPatternParser |
|
111 | 111 | { |
112 | 112 | if ($cacheControl === null) { |
113 | 113 | return new SqlPatternParser(); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
119 | - public function createStatementExceptionFactory(?IStatementExecution $stmtExecution = null): StatementExceptionFactory |
|
119 | + public function createStatementExceptionFactory(?IStatementExecution $stmtExecution = null) : StatementExceptionFactory |
|
120 | 120 | { |
121 | 121 | return new StatementExceptionFactory(); |
122 | 122 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | return new Connection($connName, $params); |
127 | 127 | } |
128 | 128 | |
129 | - public function createCacheControl(?IConnection $connection = null): ICacheControl |
|
129 | + public function createCacheControl(?IConnection $connection = null) : ICacheControl |
|
130 | 130 | { |
131 | 131 | $prefix = 'Ivory' . Ivory::VERSION . '.'; |
132 | 132 |
@@ -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\Type; |
5 | 5 | |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | string $typeName, |
257 | 257 | ITotallyOrderedType $subtype, |
258 | 258 | ?IRangeCanonicalFunc $canonicalFunc = null |
259 | - ): IType { |
|
259 | + ) : IType { |
|
260 | 260 | return new RangeType($schemaName, $typeName, $subtype, $canonicalFunc); |
261 | 261 | } |
262 | 262 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Type; |
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\Lang\Sql; |
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\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\Connection; |
5 | 5 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | } |
66 | 66 | } |
67 | 67 | |
68 | - public function connect(?\Closure $initProcedure = null): bool |
|
68 | + public function connect(?\Closure $initProcedure = null) : bool |
|
69 | 69 | { |
70 | 70 | if ($this->handler === null) { |
71 | 71 | $this->initProcedure = $initProcedure; |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | * |
241 | 241 | * @param string|null $notice last notice received on this connection |
242 | 242 | */ |
243 | - public function setLastNotice(?string $notice): void |
|
243 | + public function setLastNotice(?string $notice) : void |
|
244 | 244 | { |
245 | 245 | $this->lastNotice = $notice; |
246 | 246 | } |
@@ -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\Connection; |
5 | 5 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | return pg_get_pid($handler); |
23 | 23 | } |
24 | 24 | |
25 | - public function notify(string $channel, ?string $payload = null): void |
|
25 | + public function notify(string $channel, ?string $payload = null) : void |
|
26 | 26 | { |
27 | 27 | if ($payload === null) { |
28 | 28 | $this->stmtExec->command('NOTIFY %ident', $channel); |