@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function update(string $tableName, array $record, string $where, int $limit = 10000000): int |
| 52 | 52 | { |
| 53 | - $this->updateWasCalledCounter ++; |
|
| 53 | + $this->updateWasCalledCounter++; |
|
| 54 | 54 | |
| 55 | 55 | $this->updateCalls[] = [ |
| 56 | 56 | $tableName, |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function delete($tableName, $where, $limit = 10000000): int |
| 78 | 78 | { |
| 79 | - $this->deleteWasCalledCounter ++; |
|
| 79 | + $this->deleteWasCalledCounter++; |
|
| 80 | 80 | |
| 81 | 81 | return 1; |
| 82 | 82 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | */ |
| 182 | 182 | public function insert(string $tableName, array $record): int |
| 183 | 183 | { |
| 184 | - $this->insertWasCalledCounter ++; |
|
| 184 | + $this->insertWasCalledCounter++; |
|
| 185 | 185 | |
| 186 | 186 | $this->insertCalls[] = [ |
| 187 | 187 | $tableName, |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | */ |
| 228 | 228 | public function executeSelect(?array $data = null): array |
| 229 | 229 | { |
| 230 | - $this->executeSelectWasCalledCounter ++; |
|
| 230 | + $this->executeSelectWasCalledCounter++; |
|
| 231 | 231 | |
| 232 | 232 | $this->selectResults = array_reverse($this->selectResults); |
| 233 | 233 | |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | */ |
| 276 | 276 | public function execute(?array $data = null): void |
| 277 | 277 | { |
| 278 | - $this->executeWasCalledCounter ++; |
|
| 278 | + $this->executeWasCalledCounter++; |
|
| 279 | 279 | } |
| 280 | 280 | |
| 281 | 281 | /** |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | return [ |
| 177 | 177 | // #0, the first case, two connections the first one is fetched |
| 178 | 178 | [ |
| 179 | - function (): void { |
|
| 179 | + function(): void { |
|
| 180 | 180 | // setup method |
| 181 | 181 | $this->setConnection(); |
| 182 | 182 | $this->setConnection('exact-connection'); |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | ], |
| 185 | 185 | // #1, the first case, two connections the second one is fetched |
| 186 | 186 | [ |
| 187 | - function (): void { |
|
| 187 | + function(): void { |
|
| 188 | 188 | // setup method |
| 189 | 189 | $this->setConnection('exact-connection'); |
| 190 | 190 | $this->setConnection(); |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | ], |
| 193 | 193 | // #2, the third case, connection was not found |
| 194 | 194 | [ |
| 195 | - function (): void { |
|
| 195 | + function(): void { |
|
| 196 | 196 | // setup method |
| 197 | 197 | $this->setConnection('first-connection'); |
| 198 | 198 | $this->setConnection('second-connection'); |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | { |
| 18 | 18 | return [ |
| 19 | 19 | [ |
| 20 | - function () { |
|
| 20 | + function() { |
|
| 21 | 21 | Conf::deleteConfigValue('default-db-connection/dsn'); |
| 22 | 22 | $this->setUser('user'); |
| 23 | 23 | $this->setPassword('password'); |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | } |
| 28 | 28 | ], |
| 29 | 29 | [ |
| 30 | - function () { |
|
| 30 | + function() { |
|
| 31 | 31 | $this->setDsn('dsn'); |
| 32 | 32 | Conf::deleteConfigValue('default-db-connection/user'); |
| 33 | 33 | $this->setPassword('password'); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | } |
| 38 | 38 | ], |
| 39 | 39 | [ |
| 40 | - function () { |
|
| 40 | + function() { |
|
| 41 | 41 | $this->setDsn('dsn'); |
| 42 | 42 | $this->setUser('user'); |
| 43 | 43 | Conf::deleteConfigValue('default-db-connection/password'); |