From 40d0ace59f012db934b0eb64ddc0ae35d66e9374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sat, 1 Jan 2022 17:07:26 +0100 Subject: [PATCH] Fix CS (#9) --- .gitignore | 3 +- .php-cs-fixer.dist.php | 117 +++++++++--------- fixtures/DataFixtures/Loader/FakeLoader.php | 2 + .../Loader/FakeLoaderPersisterAware.php | 2 + .../FixtureLocator/FakeFixtureLocator.php | 2 + fixtures/Functional/AppKernel.php | 2 + fixtures/Functional/ConfigurableKernel.php | 2 + .../Functional/SimpleBundle/SimpleBundle.php | 2 + fixtures/Functional/SimpleKernel.php | 2 + .../Bundle/ABundle/Entity/Aentity.php | 2 + .../TestBundle/Bundle/ABundle/TestABundle.php | 2 + .../Bundle/BBundle/Entity/Bentity.php | 2 + .../TestBundle/Bundle/BBundle/TestBBundle.php | 2 + .../Resources/fixtures/AEnv/DataLoader.php | 2 + .../Resources/fixtures/BEnv/DataLoader.php | 2 + .../Resources/fixtures/DEnv/DataLoader.php | 2 + .../Resources/fixtures/EEnv/DataLoader.php | 2 + .../TestBundle/Bundle/CBundle/TestCBundle.php | 2 + .../Bundle/EmptyBundle/TestEmptyBundle.php | 2 + .../Faker/Provider/FooProvider.php | 2 + .../DataFixtures/Processor/BrandProcessor.php | 2 + .../Functional/TestBundle/Entity/Brand.php | 2 + .../Functional/TestBundle/Entity/City.php | 2 + fixtures/Functional/TestBundle/Entity/Dev.php | 2 + .../Functional/TestBundle/Entity/Inte.php | 2 + .../Functional/TestBundle/Entity/Prod.php | 2 + .../Functional/TestBundle/Entity/Product.php | 2 + .../Functional/TestBundle/Entity/Project.php | 2 + .../Functional/TestBundle/Entity/Shard.php | 2 + .../Functional/TestBundle/Entity/Strength.php | 2 + fixtures/Functional/TestBundle/TestBundle.php | 2 + fixtures/Functional/TestKernel.php | 2 + fixtures/Functional/WithoutDoctrineKernel.php | 2 + fixtures/Functional/bootstrap.php | 2 + fixtures/HttpKernel/DummyKernel.php | 4 +- fixtures/Loader/FakeLoader.php | 2 + .../AnotherDummyBundle/AnotherDummyBundle.php | 2 + .../DummyBundle/DummyBundle.php | 2 + .../EmptyBundle/EmptyBundle.php | 2 + .../OneMoreDummyBundle/OneMoreDummyBundle.php | 2 + fixtures/Logger/FakeLogger.php | 2 + fixtures/NotCallableTrait.php | 2 + .../FakeDoctrineManagerRegistry.php | 2 + .../ObjectMapper/FakeEntityManager.php | 2 + fixtures/Resolver/ABundle.php | 2 + fixtures/Resolver/BBundle.php | 2 + fixtures/Resolver/FakeBundleResolver.php | 2 + fixtures/Resolver/ResolverKernel.php | 2 + src/BundleResolverInterface.php | 2 + .../DoctrineOrmLoadDataFixturesCommand.php | 15 ++- src/DependencyInjection/Configuration.php | 2 + .../HautelookAliceExtension.php | 2 + .../Resolver/BundleNotFoundException.php | 2 + src/FixtureLocatorInterface.php | 2 + src/HautelookAliceBundle.php | 2 + src/Loader/DoctrineOrmLoader.php | 2 + src/LoaderInterface.php | 2 + src/Locator/EnvDirectoryLocator.php | 2 + src/Locator/EnvironmentlessFilesLocator.php | 2 + src/LoggerAwareInterface.php | 2 + src/Resolver/Bundle/NoBundleResolver.php | 2 + src/Resolver/Bundle/SimpleBundleResolver.php | 2 + ...LoadDataFixturesCommandIntegrationTest.php | 8 +- .../Doctrine/LoadDataFixturesCommandTest.php | 2 + .../DependencyInjection/ConfigurationTest.php | 2 + .../HautelookAliceBundleTest.php | 2 + tests/Loader/DoctrineOrmLoaderTest.php | 2 + tests/Locator/EnvDirectoryLocatorTest.php | 2 + .../EnvironmentlessFilesLocatorTest.php | 2 + tests/PhpUnit/RecreateDatabaseTraitTest.php | 1 + tests/PhpUnit/RefreshDatabaseTraitTest.php | 1 + tests/PhpUnit/ReloadDatabaseTraitTest.php | 1 + .../Resolver/Bundle/NoBundleResolverTest.php | 2 + .../Bundle/SimpleBundleResolverTest.php | 2 + .../Resolver/File/KernelFileResolverTest.php | 2 + 75 files changed, 215 insertions(+), 69 deletions(-) diff --git a/.gitignore b/.gitignore index c440bd2b..ddbdfb25 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,9 @@ /composer.lock /coverage.xml /.phar/ +/.php-cs-fixer.cache /.php_cs.cache /phpunit.xml /vendor/ /var/ -.phpunit.result.cache +/.phpunit.result.cache diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 41dd8462..492bad20 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -1,8 +1,20 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + declare(strict_types=1); -$header = <<<'HEADER' +use PhpCsFixer\Config; +use PhpCsFixer\Finder; + +const HEADER = <<<'HEADER' This file is part of the Hautelook\AliceBundle package. (c) Baldur Rensch @@ -11,76 +23,65 @@ file that was distributed with this source code. HEADER; -$finder = PhpCsFixer\Finder::create() +$finder = Finder::create() ->in(__DIR__.'/src') ->in(__DIR__.'/tests') ->in(__DIR__.'/fixtures') - ->exclude('fixtures/Resolver/cache/') - ->exclude('fixtures/Functional/cache/') + ->exclude('fixtures/Resolver/cache') + ->exclude('fixtures/Functional/cache') + ->append([ + __DIR__.'/.php-cs-fixer.dist.php', + __DIR__.'/bin/console', + ]) ; -return PhpCsFixer\Config::create() +return (new Config()) ->setRiskyAllowed(true) ->setRules([ - '@DoctrineAnnotation' => true, - '@Symfony' => true, - '@Symfony:risky' => true, - 'align_multiline_comment' => [ - 'comment_type' => 'phpdocs_only', - ], - 'array_indentation' => true, - 'array_syntax' => [ - 'syntax' => 'short', - ], - 'braces' => [ - 'allow_single_line_closure' => true, - ], - //'declare_strict_types' => true, - 'doctrine_annotation_array_assignment' => [ - 'operator' => '=', - ], - 'doctrine_annotation_spaces' => [ - 'after_array_assignments_equals' => false, - 'before_array_assignments_equals' => false, + '@PSR2' => true, + 'blank_line_after_opening_tag' => true, + 'cast_spaces' => true, + 'combine_consecutive_unsets' => true, + 'declare_equal_normalize' => true, + 'declare_strict_types' => true, + 'general_phpdoc_annotation_remove' => [ + 'annotations' => [ + 'inheritDoc', + ], ], 'header_comment' => [ - 'header' => $header, + 'header' => HEADER, 'location' => 'after_open', ], - 'native_function_invocation' => [ - 'include' => [ - '@compiler_optimized', - ], - ], - 'no_extra_blank_lines' => [ - 'tokens' => [ - 'break', - 'continue', - 'curly_brace_block', - 'extra', - 'parenthesis_brace_block', - 'return', - 'square_brace_block', - 'throw', - 'use', - ], - ], + 'include' => true, + 'lowercase_cast' => true, + 'modernize_types_casting' => true, + 'native_function_casing' => true, + 'new_with_braces' => true, + 'no_blank_lines_after_class_opening' => true, + 'no_blank_lines_after_phpdoc' => true, + 'no_empty_comment' => true, + 'no_empty_phpdoc' => true, + 'no_empty_statement' => true, + 'no_leading_import_slash' => true, + 'no_leading_namespace_whitespace' => true, + 'no_multiline_whitespace_around_double_arrow' => true, 'no_superfluous_phpdoc_tags' => true, - 'no_useless_else' => true, - 'no_useless_return' => true, - 'ordered_imports' => [ - 'importsOrder' => [ - 'class', - 'function', - 'const', - ], - 'sortAlgorithm' => 'alpha', - ], + 'no_short_bool_cast' => true, + 'no_spaces_around_offset' => true, + 'no_unused_imports' => true, + 'ordered_imports' => true, 'phpdoc_order' => true, - 'single_line_throw' => false, - 'strict_comparison' => true, - 'strict_param' => true, - 'ternary_to_null_coalescing' => true, + 'phpdoc_scalar' => true, + 'phpdoc_separation' => true, + 'phpdoc_trim' => true, + 'php_unit_fqcn_annotation' => true, + 'php_unit_test_class_requires_covers' => true, + 'single_quote' => true, + 'space_after_semicolon' => true, + 'standardize_not_equals' => true, + 'trim_array_spaces' => true, + 'whitespace_after_comma_in_array' => true, ]) ->setFinder($finder) ; diff --git a/fixtures/DataFixtures/Loader/FakeLoader.php b/fixtures/DataFixtures/Loader/FakeLoader.php index e4b2021c..4ec06079 100644 --- a/fixtures/DataFixtures/Loader/FakeLoader.php +++ b/fixtures/DataFixtures/Loader/FakeLoader.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\DataFixtures\Loader; use Fidry\AliceDataFixtures\LoaderInterface as DataFixturesLoaderInterface; diff --git a/fixtures/DataFixtures/Loader/FakeLoaderPersisterAware.php b/fixtures/DataFixtures/Loader/FakeLoaderPersisterAware.php index a3852972..2a714c0e 100644 --- a/fixtures/DataFixtures/Loader/FakeLoaderPersisterAware.php +++ b/fixtures/DataFixtures/Loader/FakeLoaderPersisterAware.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\DataFixtures\Loader; use Fidry\AliceDataFixtures\Persistence\PersisterAwareInterface; diff --git a/fixtures/FixtureLocator/FakeFixtureLocator.php b/fixtures/FixtureLocator/FakeFixtureLocator.php index 7c649985..a7690040 100644 --- a/fixtures/FixtureLocator/FakeFixtureLocator.php +++ b/fixtures/FixtureLocator/FakeFixtureLocator.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\FixtureLocator; use Hautelook\AliceBundle\FixtureLocatorInterface; diff --git a/fixtures/Functional/AppKernel.php b/fixtures/Functional/AppKernel.php index 803abfbe..3dbc83af 100644 --- a/fixtures/Functional/AppKernel.php +++ b/fixtures/Functional/AppKernel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional; use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; diff --git a/fixtures/Functional/ConfigurableKernel.php b/fixtures/Functional/ConfigurableKernel.php index 756ed803..f56c4f8c 100644 --- a/fixtures/Functional/ConfigurableKernel.php +++ b/fixtures/Functional/ConfigurableKernel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional; use Hautelook\AliceBundle\HautelookAliceBundle; diff --git a/fixtures/Functional/SimpleBundle/SimpleBundle.php b/fixtures/Functional/SimpleBundle/SimpleBundle.php index d6de8ee5..14d6021e 100644 --- a/fixtures/Functional/SimpleBundle/SimpleBundle.php +++ b/fixtures/Functional/SimpleBundle/SimpleBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\SimpleBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Functional/SimpleKernel.php b/fixtures/Functional/SimpleKernel.php index 9dbde72d..be193139 100644 --- a/fixtures/Functional/SimpleKernel.php +++ b/fixtures/Functional/SimpleKernel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional; use Hautelook\AliceBundle\Functional\SimpleBundle\SimpleBundle; diff --git a/fixtures/Functional/TestBundle/Bundle/ABundle/Entity/Aentity.php b/fixtures/Functional/TestBundle/Bundle/ABundle/Entity/Aentity.php index 9089d3bd..9369e426 100644 --- a/fixtures/Functional/TestBundle/Bundle/ABundle/Entity/Aentity.php +++ b/fixtures/Functional/TestBundle/Bundle/ABundle/Entity/Aentity.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\ABundle\Entity; use Doctrine\ORM\Mapping as ORM; diff --git a/fixtures/Functional/TestBundle/Bundle/ABundle/TestABundle.php b/fixtures/Functional/TestBundle/Bundle/ABundle/TestABundle.php index 10fc74d0..b82714c1 100644 --- a/fixtures/Functional/TestBundle/Bundle/ABundle/TestABundle.php +++ b/fixtures/Functional/TestBundle/Bundle/ABundle/TestABundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\ABundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Functional/TestBundle/Bundle/BBundle/Entity/Bentity.php b/fixtures/Functional/TestBundle/Bundle/BBundle/Entity/Bentity.php index 6edef5f7..72d5f050 100644 --- a/fixtures/Functional/TestBundle/Bundle/BBundle/Entity/Bentity.php +++ b/fixtures/Functional/TestBundle/Bundle/BBundle/Entity/Bentity.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\BBundle\Entity; use Doctrine\ORM\Mapping as ORM; diff --git a/fixtures/Functional/TestBundle/Bundle/BBundle/TestBBundle.php b/fixtures/Functional/TestBundle/Bundle/BBundle/TestBBundle.php index 8e32b69f..33a6cff0 100644 --- a/fixtures/Functional/TestBundle/Bundle/BBundle/TestBBundle.php +++ b/fixtures/Functional/TestBundle/Bundle/BBundle/TestBBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\BBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/AEnv/DataLoader.php b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/AEnv/DataLoader.php index 48291d3a..77cb5117 100644 --- a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/AEnv/DataLoader.php +++ b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/AEnv/DataLoader.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\CBundle\DataFixtures\ORM\AEnv; use Hautelook\AliceBundle\Doctrine\DataFixtures\AbstractLoader; diff --git a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/BEnv/DataLoader.php b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/BEnv/DataLoader.php index 14fa09d0..05fbafb9 100644 --- a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/BEnv/DataLoader.php +++ b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/BEnv/DataLoader.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\CBundle\DataFixtures\ORM\BEnv; use Hautelook\AliceBundle\Doctrine\DataFixtures\AbstractLoader; diff --git a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/DEnv/DataLoader.php b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/DEnv/DataLoader.php index 3d66795f..729550cc 100644 --- a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/DEnv/DataLoader.php +++ b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/DEnv/DataLoader.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\CBundle\DataFixtures\ORM\DEnv; use Hautelook\AliceBundle\Doctrine\DataFixtures\AbstractLoader; diff --git a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/EEnv/DataLoader.php b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/EEnv/DataLoader.php index 543dc9c3..9b1a9576 100644 --- a/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/EEnv/DataLoader.php +++ b/fixtures/Functional/TestBundle/Bundle/CBundle/Resources/fixtures/EEnv/DataLoader.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\CBundle\DataFixtures\ORM\EEnv; use Hautelook\AliceBundle\Doctrine\DataFixtures\AbstractLoader; diff --git a/fixtures/Functional/TestBundle/Bundle/CBundle/TestCBundle.php b/fixtures/Functional/TestBundle/Bundle/CBundle/TestCBundle.php index 605de5de..ec38966f 100644 --- a/fixtures/Functional/TestBundle/Bundle/CBundle/TestCBundle.php +++ b/fixtures/Functional/TestBundle/Bundle/CBundle/TestCBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\CBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Functional/TestBundle/Bundle/EmptyBundle/TestEmptyBundle.php b/fixtures/Functional/TestBundle/Bundle/EmptyBundle/TestEmptyBundle.php index 7151b734..3cbe08a4 100644 --- a/fixtures/Functional/TestBundle/Bundle/EmptyBundle/TestEmptyBundle.php +++ b/fixtures/Functional/TestBundle/Bundle/EmptyBundle/TestEmptyBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Bundle\EmptyBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Functional/TestBundle/DataFixtures/Faker/Provider/FooProvider.php b/fixtures/Functional/TestBundle/DataFixtures/Faker/Provider/FooProvider.php index 216e8606..8498c4ff 100644 --- a/fixtures/Functional/TestBundle/DataFixtures/Faker/Provider/FooProvider.php +++ b/fixtures/Functional/TestBundle/DataFixtures/Faker/Provider/FooProvider.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\DataFixtures\Faker\Provider; class FooProvider diff --git a/fixtures/Functional/TestBundle/DataFixtures/Processor/BrandProcessor.php b/fixtures/Functional/TestBundle/DataFixtures/Processor/BrandProcessor.php index 0088b467..3b0cd00b 100644 --- a/fixtures/Functional/TestBundle/DataFixtures/Processor/BrandProcessor.php +++ b/fixtures/Functional/TestBundle/DataFixtures/Processor/BrandProcessor.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\DataFixtures\Processor; use Hautelook\AliceBundle\Functional\TestBundle\Entity\Brand; diff --git a/fixtures/Functional/TestBundle/Entity/Brand.php b/fixtures/Functional/TestBundle/Entity/Brand.php index e0693e8c..3a2325a7 100644 --- a/fixtures/Functional/TestBundle/Entity/Brand.php +++ b/fixtures/Functional/TestBundle/Entity/Brand.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; use Doctrine\Common\Collections\ArrayCollection; diff --git a/fixtures/Functional/TestBundle/Entity/City.php b/fixtures/Functional/TestBundle/Entity/City.php index b5568abc..7c0ac6fb 100644 --- a/fixtures/Functional/TestBundle/Entity/City.php +++ b/fixtures/Functional/TestBundle/Entity/City.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; class City diff --git a/fixtures/Functional/TestBundle/Entity/Dev.php b/fixtures/Functional/TestBundle/Entity/Dev.php index f34e1de5..46fd389c 100644 --- a/fixtures/Functional/TestBundle/Entity/Dev.php +++ b/fixtures/Functional/TestBundle/Entity/Dev.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; use Doctrine\ORM\Mapping as ORM; diff --git a/fixtures/Functional/TestBundle/Entity/Inte.php b/fixtures/Functional/TestBundle/Entity/Inte.php index defe9511..94e56a6a 100644 --- a/fixtures/Functional/TestBundle/Entity/Inte.php +++ b/fixtures/Functional/TestBundle/Entity/Inte.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; use Doctrine\ORM\Mapping as ORM; diff --git a/fixtures/Functional/TestBundle/Entity/Prod.php b/fixtures/Functional/TestBundle/Entity/Prod.php index c5b417eb..e84c9e7b 100644 --- a/fixtures/Functional/TestBundle/Entity/Prod.php +++ b/fixtures/Functional/TestBundle/Entity/Prod.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; use Doctrine\ORM\Mapping as ORM; diff --git a/fixtures/Functional/TestBundle/Entity/Product.php b/fixtures/Functional/TestBundle/Entity/Product.php index 9d80a21f..06ef3d6d 100644 --- a/fixtures/Functional/TestBundle/Entity/Product.php +++ b/fixtures/Functional/TestBundle/Entity/Product.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; use Doctrine\ORM\Mapping as ORM; diff --git a/fixtures/Functional/TestBundle/Entity/Project.php b/fixtures/Functional/TestBundle/Entity/Project.php index e4aebec9..dcc38407 100644 --- a/fixtures/Functional/TestBundle/Entity/Project.php +++ b/fixtures/Functional/TestBundle/Entity/Project.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; class Project diff --git a/fixtures/Functional/TestBundle/Entity/Shard.php b/fixtures/Functional/TestBundle/Entity/Shard.php index 80ec8820..c4fcbcee 100644 --- a/fixtures/Functional/TestBundle/Entity/Shard.php +++ b/fixtures/Functional/TestBundle/Entity/Shard.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; use Doctrine\ORM\Mapping as ORM; diff --git a/fixtures/Functional/TestBundle/Entity/Strength.php b/fixtures/Functional/TestBundle/Entity/Strength.php index 92684e76..37229d95 100644 --- a/fixtures/Functional/TestBundle/Entity/Strength.php +++ b/fixtures/Functional/TestBundle/Entity/Strength.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle\Entity; class Strength diff --git a/fixtures/Functional/TestBundle/TestBundle.php b/fixtures/Functional/TestBundle/TestBundle.php index c2bf61ce..50d5934c 100644 --- a/fixtures/Functional/TestBundle/TestBundle.php +++ b/fixtures/Functional/TestBundle/TestBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional\TestBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Functional/TestKernel.php b/fixtures/Functional/TestKernel.php index 5caf29fe..9e43adfa 100644 --- a/fixtures/Functional/TestKernel.php +++ b/fixtures/Functional/TestKernel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional; use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; diff --git a/fixtures/Functional/WithoutDoctrineKernel.php b/fixtures/Functional/WithoutDoctrineKernel.php index fb5044fb..ade4d0b0 100644 --- a/fixtures/Functional/WithoutDoctrineKernel.php +++ b/fixtures/Functional/WithoutDoctrineKernel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Functional; use Hautelook\AliceBundle\HautelookAliceBundle; diff --git a/fixtures/Functional/bootstrap.php b/fixtures/Functional/bootstrap.php index e208bb47..788fb91c 100644 --- a/fixtures/Functional/bootstrap.php +++ b/fixtures/Functional/bootstrap.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + use Composer\Autoload\ClassLoader; /** @var ClassLoader $loader */ diff --git a/fixtures/HttpKernel/DummyKernel.php b/fixtures/HttpKernel/DummyKernel.php index 535f1628..a7445d9b 100644 --- a/fixtures/HttpKernel/DummyKernel.php +++ b/fixtures/HttpKernel/DummyKernel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\HttpKernel; use Hautelook\AliceBundle\NotCallableTrait; @@ -198,6 +200,4 @@ public function getBuildDir(): string { // TODO: Implement getBuildDir() method. } - - } diff --git a/fixtures/Loader/FakeLoader.php b/fixtures/Loader/FakeLoader.php index e3239666..609b34de 100644 --- a/fixtures/Loader/FakeLoader.php +++ b/fixtures/Loader/FakeLoader.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Loader; use Doctrine\ORM\EntityManagerInterface; diff --git a/fixtures/Locator/EnvDirectoryLocator/AnotherDummyBundle/AnotherDummyBundle.php b/fixtures/Locator/EnvDirectoryLocator/AnotherDummyBundle/AnotherDummyBundle.php index c0830b86..62550434 100644 --- a/fixtures/Locator/EnvDirectoryLocator/AnotherDummyBundle/AnotherDummyBundle.php +++ b/fixtures/Locator/EnvDirectoryLocator/AnotherDummyBundle/AnotherDummyBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator\EnvDirectoryLocator\AnotherDummyBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Locator/EnvDirectoryLocator/DummyBundle/DummyBundle.php b/fixtures/Locator/EnvDirectoryLocator/DummyBundle/DummyBundle.php index 4cb0146a..1785ce47 100644 --- a/fixtures/Locator/EnvDirectoryLocator/DummyBundle/DummyBundle.php +++ b/fixtures/Locator/EnvDirectoryLocator/DummyBundle/DummyBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator\EnvDirectoryLocator\DummyBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Locator/EnvDirectoryLocator/EmptyBundle/EmptyBundle.php b/fixtures/Locator/EnvDirectoryLocator/EmptyBundle/EmptyBundle.php index 5da5dc2a..158fb467 100644 --- a/fixtures/Locator/EnvDirectoryLocator/EmptyBundle/EmptyBundle.php +++ b/fixtures/Locator/EnvDirectoryLocator/EmptyBundle/EmptyBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator\EnvDirectoryLocator\EmptyBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Locator/EnvDirectoryLocator/OneMoreDummyBundle/OneMoreDummyBundle.php b/fixtures/Locator/EnvDirectoryLocator/OneMoreDummyBundle/OneMoreDummyBundle.php index 1c24c626..53e412a2 100644 --- a/fixtures/Locator/EnvDirectoryLocator/OneMoreDummyBundle/OneMoreDummyBundle.php +++ b/fixtures/Locator/EnvDirectoryLocator/OneMoreDummyBundle/OneMoreDummyBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator\EnvDirectoryLocator\OneMoreDummyBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Logger/FakeLogger.php b/fixtures/Logger/FakeLogger.php index adea861a..020ec271 100644 --- a/fixtures/Logger/FakeLogger.php +++ b/fixtures/Logger/FakeLogger.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Logger; use Hautelook\AliceBundle\NotCallableTrait; diff --git a/fixtures/NotCallableTrait.php b/fixtures/NotCallableTrait.php index 08ddca64..9c6e0891 100644 --- a/fixtures/NotCallableTrait.php +++ b/fixtures/NotCallableTrait.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle; /** diff --git a/fixtures/Persistence/FakeDoctrineManagerRegistry.php b/fixtures/Persistence/FakeDoctrineManagerRegistry.php index e774a3cb..85217dbe 100644 --- a/fixtures/Persistence/FakeDoctrineManagerRegistry.php +++ b/fixtures/Persistence/FakeDoctrineManagerRegistry.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Persistence; use Doctrine\Persistence\ManagerRegistry; diff --git a/fixtures/Persistence/ObjectMapper/FakeEntityManager.php b/fixtures/Persistence/ObjectMapper/FakeEntityManager.php index 11af6929..2e457fc5 100644 --- a/fixtures/Persistence/ObjectMapper/FakeEntityManager.php +++ b/fixtures/Persistence/ObjectMapper/FakeEntityManager.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Persistence\ObjectMapper; use Doctrine\ORM\EntityManagerInterface; diff --git a/fixtures/Resolver/ABundle.php b/fixtures/Resolver/ABundle.php index a88a9926..f238df3a 100644 --- a/fixtures/Resolver/ABundle.php +++ b/fixtures/Resolver/ABundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Resolver/BBundle.php b/fixtures/Resolver/BBundle.php index 7e63a220..4e5b94a4 100644 --- a/fixtures/Resolver/BBundle.php +++ b/fixtures/Resolver/BBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/fixtures/Resolver/FakeBundleResolver.php b/fixtures/Resolver/FakeBundleResolver.php index 7fcdc028..f9a51cd7 100644 --- a/fixtures/Resolver/FakeBundleResolver.php +++ b/fixtures/Resolver/FakeBundleResolver.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver; use Hautelook\AliceBundle\BundleResolverInterface; diff --git a/fixtures/Resolver/ResolverKernel.php b/fixtures/Resolver/ResolverKernel.php index abaeaa41..e20a60f4 100644 --- a/fixtures/Resolver/ResolverKernel.php +++ b/fixtures/Resolver/ResolverKernel.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver; use Symfony\Component\Config\Loader\LoaderInterface; diff --git a/src/BundleResolverInterface.php b/src/BundleResolverInterface.php index 2c80f6f7..2953f6ce 100644 --- a/src/BundleResolverInterface.php +++ b/src/BundleResolverInterface.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle; use Hautelook\AliceBundle\Exception\Resolver\BundleNotFoundException; diff --git a/src/Console/Command/Doctrine/DoctrineOrmLoadDataFixturesCommand.php b/src/Console/Command/Doctrine/DoctrineOrmLoadDataFixturesCommand.php index 56f97047..e4c26e84 100644 --- a/src/Console/Command/Doctrine/DoctrineOrmLoadDataFixturesCommand.php +++ b/src/Console/Command/Doctrine/DoctrineOrmLoadDataFixturesCommand.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Console\Command\Doctrine; use Doctrine\Persistence\ManagerRegistry; @@ -91,7 +93,8 @@ protected function configure() InputOption::VALUE_REQUIRED, 'The shard database id to use for this command.' ) - ->addOption('purge-with-truncate', + ->addOption( + 'purge-with-truncate', null, InputOption::VALUE_NONE, 'Purge data by using a database-level TRUNCATE statement when using Doctrine fixtures.' @@ -127,11 +130,11 @@ protected function execute(InputInterface $input, OutputInterface $output) // Ask him to confirm his choice if ($input->isInteractive() && !$input->getOption('append')) { if (false === $this->askConfirmation( - $input, - $output, - 'Careful, database will be purged. Do you want to continue y/N ?', - false - ) + $input, + $output, + 'Careful, database will be purged. Do you want to continue y/N ?', + false + ) ) { return 0; } diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 0ce98dd8..9760c875 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; diff --git a/src/DependencyInjection/HautelookAliceExtension.php b/src/DependencyInjection/HautelookAliceExtension.php index 2df9fe4d..b38d3f64 100644 --- a/src/DependencyInjection/HautelookAliceExtension.php +++ b/src/DependencyInjection/HautelookAliceExtension.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\DependencyInjection; use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; diff --git a/src/Exception/Resolver/BundleNotFoundException.php b/src/Exception/Resolver/BundleNotFoundException.php index dac8fc86..6b86eb78 100644 --- a/src/Exception/Resolver/BundleNotFoundException.php +++ b/src/Exception/Resolver/BundleNotFoundException.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Exception\Resolver; use Symfony\Component\HttpKernel\Bundle\BundleInterface; diff --git a/src/FixtureLocatorInterface.php b/src/FixtureLocatorInterface.php index a619b2da..9f802d8e 100644 --- a/src/FixtureLocatorInterface.php +++ b/src/FixtureLocatorInterface.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle; use Symfony\Component\HttpKernel\Bundle\BundleInterface; diff --git a/src/HautelookAliceBundle.php b/src/HautelookAliceBundle.php index 1ae4d2c6..e3e939d8 100644 --- a/src/HautelookAliceBundle.php +++ b/src/HautelookAliceBundle.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle; use Symfony\Component\HttpKernel\Bundle\Bundle; diff --git a/src/Loader/DoctrineOrmLoader.php b/src/Loader/DoctrineOrmLoader.php index 7f61c0bb..2725195a 100644 --- a/src/Loader/DoctrineOrmLoader.php +++ b/src/Loader/DoctrineOrmLoader.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Loader; use Doctrine\DBAL\Sharding\PoolingShardConnection; diff --git a/src/LoaderInterface.php b/src/LoaderInterface.php index f34feda6..5ec66700 100644 --- a/src/LoaderInterface.php +++ b/src/LoaderInterface.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle; use Doctrine\ORM\EntityManagerInterface; diff --git a/src/Locator/EnvDirectoryLocator.php b/src/Locator/EnvDirectoryLocator.php index 407dee82..e14b343f 100644 --- a/src/Locator/EnvDirectoryLocator.php +++ b/src/Locator/EnvDirectoryLocator.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator; use Hautelook\AliceBundle\FixtureLocatorInterface; diff --git a/src/Locator/EnvironmentlessFilesLocator.php b/src/Locator/EnvironmentlessFilesLocator.php index adb1ca62..a8bbd8c3 100644 --- a/src/Locator/EnvironmentlessFilesLocator.php +++ b/src/Locator/EnvironmentlessFilesLocator.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator; use Hautelook\AliceBundle\FixtureLocatorInterface; diff --git a/src/LoggerAwareInterface.php b/src/LoggerAwareInterface.php index f3cdefac..5d36e37d 100644 --- a/src/LoggerAwareInterface.php +++ b/src/LoggerAwareInterface.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle; use Psr\Log\LoggerInterface; diff --git a/src/Resolver/Bundle/NoBundleResolver.php b/src/Resolver/Bundle/NoBundleResolver.php index f49e669f..c748aa37 100644 --- a/src/Resolver/Bundle/NoBundleResolver.php +++ b/src/Resolver/Bundle/NoBundleResolver.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver\Bundle; use Hautelook\AliceBundle\BundleResolverInterface; diff --git a/src/Resolver/Bundle/SimpleBundleResolver.php b/src/Resolver/Bundle/SimpleBundleResolver.php index dd4d7883..d2967cfc 100644 --- a/src/Resolver/Bundle/SimpleBundleResolver.php +++ b/src/Resolver/Bundle/SimpleBundleResolver.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver\Bundle; use Hautelook\AliceBundle\BundleResolverInterface; diff --git a/tests/Console/Command/Doctrine/LoadDataFixturesCommandIntegrationTest.php b/tests/Console/Command/Doctrine/LoadDataFixturesCommandIntegrationTest.php index 74078894..02047c22 100644 --- a/tests/Console/Command/Doctrine/LoadDataFixturesCommandIntegrationTest.php +++ b/tests/Console/Command/Doctrine/LoadDataFixturesCommandIntegrationTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Console\Command\Doctrine; use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; @@ -70,8 +72,10 @@ protected function setUp(): void // Create required MySQL databases for fixtures $this->runConsole('doctrine:database:create', ['--if-not-exists' => true, '--connection' => 'default']); - $this->runConsole('doctrine:database:create', - ['--if-not-exists' => true, '--connection' => 'default', '--shard' => 1]); + $this->runConsole( + 'doctrine:database:create', + ['--if-not-exists' => true, '--connection' => 'default', '--shard' => 1] + ); // Reset fixtures schemas foreach ($doctrine->getManagers() as $name => $manager) { diff --git a/tests/Console/Command/Doctrine/LoadDataFixturesCommandTest.php b/tests/Console/Command/Doctrine/LoadDataFixturesCommandTest.php index 61a7226c..c88b1d6e 100644 --- a/tests/Console/Command/Doctrine/LoadDataFixturesCommandTest.php +++ b/tests/Console/Command/Doctrine/LoadDataFixturesCommandTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Console\Command\Doctrine; use Doctrine\Persistence\ManagerRegistry; diff --git a/tests/DependencyInjection/ConfigurationTest.php b/tests/DependencyInjection/ConfigurationTest.php index a6167cd7..f3a194f7 100644 --- a/tests/DependencyInjection/ConfigurationTest.php +++ b/tests/DependencyInjection/ConfigurationTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\DependencyInjection; use PHPUnit\Framework\TestCase; diff --git a/tests/DependencyInjection/HautelookAliceBundleTest.php b/tests/DependencyInjection/HautelookAliceBundleTest.php index 62ab9256..835d4de9 100644 --- a/tests/DependencyInjection/HautelookAliceBundleTest.php +++ b/tests/DependencyInjection/HautelookAliceBundleTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\DependencyInjection; use Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle; diff --git a/tests/Loader/DoctrineOrmLoaderTest.php b/tests/Loader/DoctrineOrmLoaderTest.php index b44942e5..ca601854 100644 --- a/tests/Loader/DoctrineOrmLoaderTest.php +++ b/tests/Loader/DoctrineOrmLoaderTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Loader; use Hautelook\AliceBundle\DataFixtures\Loader\FakeLoader; diff --git a/tests/Locator/EnvDirectoryLocatorTest.php b/tests/Locator/EnvDirectoryLocatorTest.php index 0359a4f7..f5123bb0 100644 --- a/tests/Locator/EnvDirectoryLocatorTest.php +++ b/tests/Locator/EnvDirectoryLocatorTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator; use Hautelook\AliceBundle\FixtureLocatorInterface; diff --git a/tests/Locator/EnvironmentlessFilesLocatorTest.php b/tests/Locator/EnvironmentlessFilesLocatorTest.php index 1b2e4e5d..c6bae378 100644 --- a/tests/Locator/EnvironmentlessFilesLocatorTest.php +++ b/tests/Locator/EnvironmentlessFilesLocatorTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Locator; use Hautelook\AliceBundle\FixtureLocatorInterface; diff --git a/tests/PhpUnit/RecreateDatabaseTraitTest.php b/tests/PhpUnit/RecreateDatabaseTraitTest.php index 26d49db2..bc1c3842 100644 --- a/tests/PhpUnit/RecreateDatabaseTraitTest.php +++ b/tests/PhpUnit/RecreateDatabaseTraitTest.php @@ -17,6 +17,7 @@ /** * @author Gary PEGEOT + * @coversNothing */ class RecreateDatabaseTraitTest extends KernelTestCase { diff --git a/tests/PhpUnit/RefreshDatabaseTraitTest.php b/tests/PhpUnit/RefreshDatabaseTraitTest.php index a34a6e9a..93ef28c4 100644 --- a/tests/PhpUnit/RefreshDatabaseTraitTest.php +++ b/tests/PhpUnit/RefreshDatabaseTraitTest.php @@ -17,6 +17,7 @@ /** * @author Kévin Dunglas + * @coversNothing */ class RefreshDatabaseTraitTest extends KernelTestCase { diff --git a/tests/PhpUnit/ReloadDatabaseTraitTest.php b/tests/PhpUnit/ReloadDatabaseTraitTest.php index adbf115f..44a34fbe 100644 --- a/tests/PhpUnit/ReloadDatabaseTraitTest.php +++ b/tests/PhpUnit/ReloadDatabaseTraitTest.php @@ -17,6 +17,7 @@ /** * @author Kévin Dunglas + * @coversNothing */ class ReloadDatabaseTraitTest extends KernelTestCase { diff --git a/tests/Resolver/Bundle/NoBundleResolverTest.php b/tests/Resolver/Bundle/NoBundleResolverTest.php index 44d3f86d..f84ec148 100644 --- a/tests/Resolver/Bundle/NoBundleResolverTest.php +++ b/tests/Resolver/Bundle/NoBundleResolverTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver\Bundle; use Hautelook\AliceBundle\BundleResolverInterface; diff --git a/tests/Resolver/Bundle/SimpleBundleResolverTest.php b/tests/Resolver/Bundle/SimpleBundleResolverTest.php index 79caf0b9..c7abd81b 100644 --- a/tests/Resolver/Bundle/SimpleBundleResolverTest.php +++ b/tests/Resolver/Bundle/SimpleBundleResolverTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver\Bundle; use Hautelook\AliceBundle\BundleResolverInterface; diff --git a/tests/Resolver/File/KernelFileResolverTest.php b/tests/Resolver/File/KernelFileResolverTest.php index 60d139fd..c0243825 100644 --- a/tests/Resolver/File/KernelFileResolverTest.php +++ b/tests/Resolver/File/KernelFileResolverTest.php @@ -9,6 +9,8 @@ * file that was distributed with this source code. */ +declare(strict_types=1); + namespace Hautelook\AliceBundle\Resolver\File; use Fidry\AliceDataFixtures\FileResolverInterface;