@@ -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 | |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | * @return \DateTime|null the date/time represented as a {@link \DateTime} object; |
181 | 181 | * <tt>null</tt> iff the date/time is not finite |
182 | 182 | */ |
183 | - public function toDateTime(?\DateTimeZone $timezone = null): ?\DateTime |
|
183 | + public function toDateTime(?\DateTimeZone $timezone = null) : ?\DateTime |
|
184 | 184 | { |
185 | 185 | if ($this->inf) { |
186 | 186 | return null; |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * @return \DateTimeImmutable|null the date/time represented as a {@link \DateTimeImmutable} object; |
197 | 197 | * <tt>null</tt> iff the date/time is not finite |
198 | 198 | */ |
199 | - public function toDateTimeImmutable(?\DateTimeZone $timezone = null): ?\DateTimeImmutable |
|
199 | + public function toDateTimeImmutable(?\DateTimeZone $timezone = null) : ?\DateTimeImmutable |
|
200 | 200 | { |
201 | 201 | if ($this->inf) { |
202 | 202 | return null; |
@@ -22,6 +22,7 @@ discard block |
||
22 | 22 | * Flushes the type dictionary currently in use, leading to loading a fresh new type dictionary. |
23 | 23 | * |
24 | 24 | * Useful when the data types change during the script execution in such a way Ivory is unable to detect it. |
25 | + * @return void |
|
25 | 26 | */ |
26 | 27 | function flushTypeDictionary(): void; |
27 | 28 | |
@@ -29,6 +30,7 @@ discard block |
||
29 | 30 | * Sets an implementation-specific option, driving behaviour of the type control. |
30 | 31 | * |
31 | 32 | * @param int $option |
33 | + * @return void |
|
32 | 34 | */ |
33 | 35 | function setTypeControlOption(int $option): void; |
34 | 36 | |
@@ -36,6 +38,7 @@ discard block |
||
36 | 38 | * Unsets an implementation-specific option, driving behaviour of the type control. |
37 | 39 | * |
38 | 40 | * @param int $option |
41 | + * @return void |
|
39 | 42 | */ |
40 | 43 | function unsetTypeControlOption(int $option): void; |
41 | 44 | } |
@@ -26,9 +26,9 @@ discard block |
||
26 | 26 | * @param IConnection|null $connection |
27 | 27 | * @return ICacheControl |
28 | 28 | */ |
29 | - function createCacheControl(?IConnection $connection = null): ICacheControl; |
|
29 | + function createCacheControl(?IConnection $connection = null) : ICacheControl; |
|
30 | 30 | |
31 | - function createSqlPatternParser(?ICacheControl $cacheControl = null): ISqlPatternParser; |
|
31 | + function createSqlPatternParser(?ICacheControl $cacheControl = null) : ISqlPatternParser; |
|
32 | 32 | |
33 | 33 | /** |
34 | 34 | * Create a factory for exception statements, either for a given connection or for global usage. |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @param IStatementExecution|null $stmtExecution |
37 | 37 | * @return StatementExceptionFactory |
38 | 38 | */ |
39 | - function createStatementExceptionFactory(?IStatementExecution $stmtExecution = null): StatementExceptionFactory; |
|
39 | + function createStatementExceptionFactory(?IStatementExecution $stmtExecution = null) : StatementExceptionFactory; |
|
40 | 40 | |
41 | 41 | function createTransactionHandle( |
42 | 42 | IStatementExecution $stmtExec, |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | namespace Ivory\Exception; |
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\Exception; |
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 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | $this->txCtl->notifySavepointReleased($name); |
128 | 128 | } |
129 | 129 | |
130 | - public function prepareTransaction(?string $name = null): string |
|
130 | + public function prepareTransaction(?string $name = null) : string |
|
131 | 131 | { |
132 | 132 | $this->assertOpen(); |
133 | 133 |
@@ -162,5 +162,5 @@ |
||
162 | 162 | * @return string name of the prepared transaction |
163 | 163 | * @throws InvalidStateException if the transaction is not open anymore |
164 | 164 | */ |
165 | - function prepareTransaction(?string $name = null): string; |
|
165 | + function prepareTransaction(?string $name = null) : string; |
|
166 | 166 | } |
@@ -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\Query; |
5 | 5 | |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | $curFragmentNum++; |
226 | 226 | $argsProcessed += count($posParams); |
227 | 227 | |
228 | - $curFragment =& $fragmentsAndParamValues[$argsProcessed]; |
|
228 | + $curFragment = & $fragmentsAndParamValues[$argsProcessed]; |
|
229 | 229 | $argsProcessed++; |
230 | 230 | } while (isset($curFragment)); |
231 | 231 |
@@ -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 |