@@ -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 | |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | $this->handler = $handler; |
174 | 174 | } |
175 | 175 | |
176 | - public function handleUndefinedType(?int $oid, $schemaName, ?string $typeName, $value): IType |
|
176 | + public function handleUndefinedType(?int $oid, $schemaName, ?string $typeName, $value) : IType |
|
177 | 177 | { |
178 | 178 | return call_user_func($this->handler, $oid, $schemaName, $typeName, $value); |
179 | 179 | } |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * @param string|null $payload optional payload to send along with the notification; |
21 | 21 | * note the maximal accepted length depends on the database configuration |
22 | 22 | */ |
23 | - function notify(string $channel, ?string $payload = null): void; |
|
23 | + function notify(string $channel, ?string $payload = null) : void; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Starts listening to the specified channel. |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * see the constants on what values are accepted for which options |
102 | 102 | * @return ICommandResult the result of the `COPY` command |
103 | 103 | */ |
104 | - function copyFromFile(string $file, string $table, ?array $columns = null, array $options = []): ICommandResult; |
|
104 | + function copyFromFile(string $file, string $table, ? array $columns = null, array $options = []) : ICommandResult; |
|
105 | 105 | |
106 | 106 | /** |
107 | 107 | * Instructs the database server to executes an external program and copy its output to a database table. |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * see the constants on what values are accepted for which options |
120 | 120 | * @return ICommandResult the result of the `COPY` command |
121 | 121 | */ |
122 | - function copyFromProgram(string $program, string $table, ?array $columns = null, array $options = []): ICommandResult; |
|
122 | + function copyFromProgram(string $program, string $table, ? array $columns = null, array $options = []) : ICommandResult; |
|
123 | 123 | |
124 | 124 | /** |
125 | 125 | * Initiates copying data to a database table. |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | * see the constants on what values are accepted for which options |
136 | 136 | * @return ICopyInResult the initiated `COPY` command result |
137 | 137 | */ |
138 | - function copyFromInput(string $table, ?array $columns = null, array $options = []): ICopyInResult; |
|
138 | + function copyFromInput(string $table, ? array $columns = null, array $options = []) : ICopyInResult; |
|
139 | 139 | |
140 | 140 | /** |
141 | 141 | * Instructs the database server to copy a database table or query result to a file. |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | * see the constants on what values are accepted for which options |
156 | 156 | * @return ICommandResult the result of the `COPY` command |
157 | 157 | */ |
158 | - function copyToFile(string $file, $tableOrRelationDefinition, ?array $columns = null, array $options = []): ICommandResult; |
|
158 | + function copyToFile(string $file, $tableOrRelationDefinition, ? array $columns = null, array $options = []) : ICommandResult; |
|
159 | 159 | |
160 | 160 | /** |
161 | 161 | * Instructs the database server to copy a database table or query result to the input of a program. |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * see the constants on what values are accepted for which options |
176 | 176 | * @return ICommandResult the result of the `COPY` command |
177 | 177 | */ |
178 | - function copyToProgram(string $program, $tableOrRelationDefinition, ?array $columns = null, array $options = []): ICommandResult; |
|
178 | + function copyToProgram(string $program, $tableOrRelationDefinition, ? array $columns = null, array $options = []) : ICommandResult; |
|
179 | 179 | |
180 | 180 | /** |
181 | 181 | * Copies a database table to an array of data rows, using the {@link ICopyControl::FORMAT_TEXT `TEXT`} format. |
@@ -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 | |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | return $this->connCtl->isConnectedWait(); |
81 | 81 | } |
82 | 82 | |
83 | - public function connect(?\Closure $initProcedure = null): bool |
|
83 | + public function connect(?\Closure $initProcedure = null) : bool |
|
84 | 84 | { |
85 | 85 | return $this->connCtl->connect($initProcedure); |
86 | 86 | } |
@@ -182,27 +182,27 @@ discard block |
||
182 | 182 | |
183 | 183 | //region Copy Control |
184 | 184 | |
185 | - public function copyFromFile(string $file, string $table, ?array $columns = null, array $options = []): ICommandResult |
|
185 | + public function copyFromFile(string $file, string $table, ? array $columns = null, array $options = []) : ICommandResult |
|
186 | 186 | { |
187 | 187 | return $this->copyCtl->copyFromFile($file, $table, $columns, $options); |
188 | 188 | } |
189 | 189 | |
190 | - public function copyFromProgram(string $program, string $table, ?array $columns = null, array $options = []): ICommandResult |
|
190 | + public function copyFromProgram(string $program, string $table, ? array $columns = null, array $options = []) : ICommandResult |
|
191 | 191 | { |
192 | 192 | return $this->copyCtl->copyFromProgram($program, $table, $columns, $options); |
193 | 193 | } |
194 | 194 | |
195 | - public function copyFromInput(string $table, ?array $columns = null, array $options = []): ICopyInResult |
|
195 | + public function copyFromInput(string $table, ? array $columns = null, array $options = []) : ICopyInResult |
|
196 | 196 | { |
197 | 197 | return $this->copyCtl->copyFromInput($table, $columns, $options); |
198 | 198 | } |
199 | 199 | |
200 | - public function copyToFile(string $file, $tableOrRelationDefinition, ?array $columns = null, array $options = []): ICommandResult |
|
200 | + public function copyToFile(string $file, $tableOrRelationDefinition, ? array $columns = null, array $options = []) : ICommandResult |
|
201 | 201 | { |
202 | 202 | return $this->copyCtl->copyToFile($file, $tableOrRelationDefinition, $columns, $options); |
203 | 203 | } |
204 | 204 | |
205 | - public function copyToProgram(string $program, $tableOrRelationDefinition, ?array $columns = null, array $options = []): ICommandResult |
|
205 | + public function copyToProgram(string $program, $tableOrRelationDefinition, ? array $columns = null, array $options = []) : ICommandResult |
|
206 | 206 | { |
207 | 207 | return $this->copyCtl->copyToProgram($program, $tableOrRelationDefinition, $columns, $options); |
208 | 208 | } |
@@ -274,7 +274,7 @@ discard block |
||
274 | 274 | return $this->ipcCtl->getBackendPID(); |
275 | 275 | } |
276 | 276 | |
277 | - public function notify(string $channel, ?string $payload = null): void |
|
277 | + public function notify(string $channel, ?string $payload = null) : void |
|
278 | 278 | { |
279 | 279 | $this->ipcCtl->notify($channel, $payload); |
280 | 280 | } |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Connection\Config; |
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\Config; |
5 | 5 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | } |
40 | 40 | |
41 | - public static function detectType(string $typeName, string $valueString, ?string $unit = null): int |
|
41 | + public static function detectType(string $typeName, string $valueString, ?string $unit = null) : int |
|
42 | 42 | { |
43 | 43 | $withUnit = ($unit || !is_numeric($valueString)); |
44 | 44 | return self::fromPostgreSQLName($typeName, $withUnit); |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory; |
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\Utils; |
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\Cache; |
5 | 5 | |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @param CacheItemPoolInterface|null $cacheItemPool cache implementation to use, or <tt>null</tt> to use the |
29 | 29 | * default set to {@link Ivory::setDefaultCacheImpl()} |
30 | 30 | */ |
31 | - public function setCacheImpl(?CacheItemPoolInterface $cacheItemPool): void |
|
31 | + public function setCacheImpl(?CacheItemPoolInterface $cacheItemPool) : void |
|
32 | 32 | { |
33 | 33 | $this->cacheItemPool = $cacheItemPool; |
34 | 34 | } |