@@ -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); |
@@ -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 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | - public static function createFromParams(?string $isolationLevel, ?bool $readOnly, ?bool $deferrable): TxConfig |
|
51 | + public static function createFromParams(?string $isolationLevel, ?bool $readOnly, ?bool $deferrable) : TxConfig |
|
52 | 52 | { |
53 | 53 | $txConf = new TxConfig(); |
54 | 54 | $txConf->setReadOnly($readOnly); |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | return $this->readOnly; |
145 | 145 | } |
146 | 146 | |
147 | - public function setReadOnly(?bool $readOnly): TxConfig |
|
147 | + public function setReadOnly(?bool $readOnly) : TxConfig |
|
148 | 148 | { |
149 | 149 | $this->readOnly = $readOnly; |
150 | 150 | return $this; |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | return $this->deferrable; |
156 | 156 | } |
157 | 157 | |
158 | - public function setDeferrable(?bool $deferrable): TxConfig |
|
158 | + public function setDeferrable(?bool $deferrable) : TxConfig |
|
159 | 159 | { |
160 | 160 | $this->deferrable = $deferrable; |
161 | 161 | return $this; |
@@ -68,5 +68,5 @@ |
||
68 | 68 | * @return IRelationDefinition definition of relation containing at most <tt>$limit</tt> tuples, skipping the first |
69 | 69 | * <tt>$offset</tt> tuples |
70 | 70 | */ |
71 | - function limit(?int $limit, int $offset = 0): IRelationDefinition; |
|
71 | + function limit(?int $limit, int $offset = 0) : IRelationDefinition; |
|
72 | 72 | } |