Skip to content

Commit 23516a5

Browse files
Merge pull request #278 from alexislefebvre/chore-php-cs-fixer
apply PHP-CS-Fixer and add newline to the end of YAML file
2 parents 47ff875 + a1aafb5 commit 23516a5

File tree

8 files changed

+34
-8
lines changed

8 files changed

+34
-8
lines changed

src/FixturesLoaderFactoryInterface.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of the Liip/TestFixturesBundle
7+
*
8+
* (c) Lukas Kahwe Smith <[email protected]>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Liip\TestFixturesBundle;
615

716
use Doctrine\Common\DataFixtures\Loader;
@@ -12,5 +21,4 @@ interface FixturesLoaderFactoryInterface
1221
* Retrieve Doctrine DataFixtures loader.
1322
*/
1423
public function getFixtureLoader(array $classNames): Loader;
15-
1624
}

src/Services/DatabaseTools/AbstractDbalDatabaseTool.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/*
66
* This file is part of the Liip/TestFixturesBundle
77
*
8+
* (c) Lukas Kahwe Smith <[email protected]>
9+
*
810
* This source file is subject to the MIT license that is bundled
911
* with this source code in the file LICENSE.
1012
*/

src/Services/MongoDBFixturesLoaderFactory.php

+9
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
declare(strict_types=1);
44

5+
/*
6+
* This file is part of the Liip/TestFixturesBundle
7+
*
8+
* (c) Lukas Kahwe Smith <[email protected]>
9+
*
10+
* This source file is subject to the MIT license that is bundled
11+
* with this source code in the file LICENSE.
12+
*/
13+
514
namespace Liip\TestFixturesBundle\Services;
615

716
use Doctrine\Bundle\MongoDBBundle\Loader\SymfonyFixturesLoader;

tests/AppConfigMongodb/AppConfigMongodbKernel.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/*
66
* This file is part of the Liip/TestFixturesBundle
77
*
8+
* (c) Lukas Kahwe Smith <[email protected]>
9+
*
810
* This source file is subject to the MIT license that is bundled
911
* with this source code in the file LICENSE.
1012
*/

tests/AppConfigMongodb/DataFixtures/MongoDB/LoadUserDataFixture.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/*
66
* This file is part of the Liip/TestFixturesBundle
77
*
8+
* (c) Lukas Kahwe Smith <[email protected]>
9+
*
810
* This source file is subject to the MIT license that is bundled
911
* with this source code in the file LICENSE.
1012
*/

tests/AppConfigMongodb/Document/User.php

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
/*
66
* This file is part of the Liip/TestFixturesBundle
77
*
8+
* (c) Lukas Kahwe Smith <[email protected]>
9+
*
810
* This source file is subject to the MIT license that is bundled
911
* with this source code in the file LICENSE.
1012
*/

tests/AppConfigMongodb/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ services:
1818
autowire: true
1919
autoconfigure: true
2020
public: false
21-
21+
2222
Liip\Acme\Tests\AppConfigMongodb\:
2323
resource: './*'
24-
exclude: '{Document,*.php,var}'
24+
exclude: '{Document,*.php,var}'

tests/Test/ConfigMongodbTest.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,17 @@
55
/*
66
* This file is part of the Liip/TestFixturesBundle
77
*
8+
* (c) Lukas Kahwe Smith <[email protected]>
9+
*
810
* This source file is subject to the MIT license that is bundled
911
* with this source code in the file LICENSE.
1012
*/
1113

12-
1314
use Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle;
1415
use Doctrine\Common\DataFixtures\ProxyReferenceRepository;
1516
use Doctrine\ODM\MongoDB\Repository\DocumentRepository;
16-
use Liip\Acme\Tests\AppConfigMongodb\DataFixtures\MongoDB\LoadUserDataFixture;
1717
use Liip\Acme\Tests\AppConfigMongodb\AppConfigMongodbKernel;
18+
use Liip\Acme\Tests\AppConfigMongodb\DataFixtures\MongoDB\LoadUserDataFixture;
1819
use Liip\Acme\Tests\AppConfigMongodb\Document\User;
1920
use Liip\Acme\Tests\Traits\ContainerProvider;
2021
use Liip\TestFixturesBundle\Services\DatabaseToolCollection;
@@ -41,15 +42,15 @@ class ConfigMongodbTest extends KernelTestCase
4142

4243
/** @var AbstractDatabaseTool */
4344
protected $databaseTool;
44-
45+
4546
private DocumentRepository $userRepository;
4647

4748
protected function setUp(): void
4849
{
4950
if (!class_exists(DoctrineMongoDBBundle::class)) {
5051
$this->markTestSkipped('Need doctrine/mongodb-odm-bundle package.');
5152
}
52-
if (version_compare(PHP_VERSION, '8.1.0') < 0) {
53+
if (version_compare(\PHP_VERSION, '8.1.0') < 0) {
5354
$this->markTestSkipped('MongoDB Tests doesn\'t support Outdated PHP Version. <8.1.0');
5455
}
5556

@@ -61,7 +62,7 @@ protected function setUp(): void
6162

6263
$this->userRepository = $this->getTestContainer()->get('doctrine_mongodb')
6364
->getRepository(User::class);
64-
65+
6566
$this->databaseTool = $this->getTestContainer()->get(DatabaseToolCollection::class)->get('default', 'doctrine_mongodb');
6667

6768
$this->assertInstanceOf(MongoDBDatabaseTool::class, $this->databaseTool);

0 commit comments

Comments
 (0)