Skip to content

Commit 47137b2

Browse files
maelanleborgneweaverryan
authored andcommitted
Fix tests CS violations
1 parent 112f946 commit 47137b2

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/Doctrine/EntityDetails.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getFormFields(): array
6767
}
6868
$fieldsWithTypes[$fieldName] = [
6969
'type' => EntityType::class,
70-
'options_code' => sprintf('\'class\' => %s::class,', $relation['targetEntity']).PHP_EOL.'\'choice_label\' => \'id\',',
70+
'options_code' => sprintf('\'class\' => %s::class,', $relation['targetEntity']).\PHP_EOL.'\'choice_label\' => \'id\',',
7171
'extra_use_classes' => [$relation['targetEntity']],
7272
];
7373
if (\Doctrine\ORM\Mapping\ClassMetadata::MANY_TO_MANY === $relation['type']) {

src/Maker/MakeCrud.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,8 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
251251
$repositoryClassName,
252252
]);
253253

254-
255254
$useStatements->addUseStatement(EntityRepository::class);
256255

257-
258256
if (EntityManagerInterface::class !== $repositoryClassName) {
259257
$useStatements->addUseStatement(EntityManagerInterface::class);
260258
}

src/Test/MakerTestEnvironment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ private function buildFlexSkeleton(): void
283283
// do not explicitly set the PHPUnit version
284284
[
285285
'filename' => 'phpunit.xml.dist',
286-
'find' => '<server name="SYMFONY_PHPUNIT_VERSION" value="9.5" />',
286+
'find' => '<server name="SYMFONY_PHPUNIT_VERSION" value="9.6" />',
287287
'replace' => '',
288288
],
289289
];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy