Skip to content

Commit b2f04cc

Browse files
lyrixxnicolas-grekas
authored andcommitted
Add missing license header
1 parent bf82037 commit b2f04cc

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

Tests/DataCollector/DoctrineDataCollectorTestTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

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+
312
namespace Symfony\Bridge\Doctrine\Tests\DataCollector;
413

514
use Symfony\Component\HttpFoundation\Request;

Tests/DependencyInjection/CompilerPass/RegisterUidTypePassTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

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+
312
namespace Symfony\Bridge\Doctrine\Tests\DependencyInjection\CompilerPass;
413

514
use PHPUnit\Framework\TestCase;

Tests/Middleware/Debug/MiddlewareTest.php

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

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+
312
namespace Symfony\Bridge\Doctrine\Tests\Middleware\Debug;
413

514
use Doctrine\DBAL\Configuration;
@@ -62,12 +71,12 @@ public function provideExecuteMethod(): array
6271
{
6372
return [
6473
'executeStatement' => [
65-
static function(object $target, ...$args) {
74+
static function (object $target, ...$args) {
6675
return $target->executeStatement(...$args);
6776
},
6877
],
6978
'executeQuery' => [
70-
static function(object $target, ...$args): Result {
79+
static function (object $target, ...$args): Result {
7180
return $target->executeQuery(...$args);
7281
},
7382
],
@@ -148,13 +157,13 @@ public function provideEndTransactionMethod(): array
148157
{
149158
return [
150159
'commit' => [
151-
static function(Connection $conn): bool {
160+
static function (Connection $conn): bool {
152161
return $conn->commit();
153162
},
154163
'"COMMIT"',
155164
],
156165
'rollback' => [
157-
static function(Connection $conn): bool {
166+
static function (Connection $conn): bool {
158167
return $conn->rollBack();
159168
},
160169
'"ROLLBACK"',
@@ -198,18 +207,18 @@ public function provideExecuteAndEndTransactionMethods(): array
198207
{
199208
return [
200209
'commit and exec' => [
201-
static function(Connection $conn, string $sql) {
210+
static function (Connection $conn, string $sql) {
202211
return $conn->executeStatement($sql);
203212
},
204-
static function(Connection $conn): bool {
213+
static function (Connection $conn): bool {
205214
return $conn->commit();
206215
},
207216
],
208217
'rollback and query' => [
209-
static function(Connection $conn, string $sql): Result {
218+
static function (Connection $conn, string $sql): Result {
210219
return $conn->executeQuery($sql);
211220
},
212-
static function(Connection $conn): bool {
221+
static function (Connection $conn): bool {
213222
return $conn->rollBack();
214223
},
215224
],

0 commit comments

Comments
 (0)