|
1 | 1 | <?php |
2 | 2 |
|
| 3 | +/* |
| 4 | + * This file is part of the Symfony package. |
| 5 | + * |
| 6 | + * (c) Fabien Potencier <[email protected]> |
| 7 | + * |
| 8 | + * For the full copyright and license information, please view the LICENSE |
| 9 | + * file that was distributed with this source code. |
| 10 | + */ |
| 11 | + |
3 | 12 | namespace Symfony\Bridge\Doctrine\Tests\Middleware\Debug; |
4 | 13 |
|
5 | 14 | use Doctrine\DBAL\Configuration; |
@@ -62,12 +71,12 @@ public function provideExecuteMethod(): array |
62 | 71 | { |
63 | 72 | return [ |
64 | 73 | 'executeStatement' => [ |
65 | | - static function(object $target, ...$args) { |
| 74 | + static function (object $target, ...$args) { |
66 | 75 | return $target->executeStatement(...$args); |
67 | 76 | }, |
68 | 77 | ], |
69 | 78 | 'executeQuery' => [ |
70 | | - static function(object $target, ...$args): Result { |
| 79 | + static function (object $target, ...$args): Result { |
71 | 80 | return $target->executeQuery(...$args); |
72 | 81 | }, |
73 | 82 | ], |
@@ -148,13 +157,13 @@ public function provideEndTransactionMethod(): array |
148 | 157 | { |
149 | 158 | return [ |
150 | 159 | 'commit' => [ |
151 | | - static function(Connection $conn): bool { |
| 160 | + static function (Connection $conn): bool { |
152 | 161 | return $conn->commit(); |
153 | 162 | }, |
154 | 163 | '"COMMIT"', |
155 | 164 | ], |
156 | 165 | 'rollback' => [ |
157 | | - static function(Connection $conn): bool { |
| 166 | + static function (Connection $conn): bool { |
158 | 167 | return $conn->rollBack(); |
159 | 168 | }, |
160 | 169 | '"ROLLBACK"', |
@@ -198,18 +207,18 @@ public function provideExecuteAndEndTransactionMethods(): array |
198 | 207 | { |
199 | 208 | return [ |
200 | 209 | 'commit and exec' => [ |
201 | | - static function(Connection $conn, string $sql) { |
| 210 | + static function (Connection $conn, string $sql) { |
202 | 211 | return $conn->executeStatement($sql); |
203 | 212 | }, |
204 | | - static function(Connection $conn): bool { |
| 213 | + static function (Connection $conn): bool { |
205 | 214 | return $conn->commit(); |
206 | 215 | }, |
207 | 216 | ], |
208 | 217 | 'rollback and query' => [ |
209 | | - static function(Connection $conn, string $sql): Result { |
| 218 | + static function (Connection $conn, string $sql): Result { |
210 | 219 | return $conn->executeQuery($sql); |
211 | 220 | }, |
212 | | - static function(Connection $conn): bool { |
| 221 | + static function (Connection $conn): bool { |
213 | 222 | return $conn->rollBack(); |
214 | 223 | }, |
215 | 224 | ], |
|
0 commit comments