Skip to content

Commit 91b7ce0

Browse files
Fix indentation of options_code
1 parent 468ff27 commit 91b7ce0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Doctrine/EntityDetails.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,11 @@ public function getFormFields(): array
7777
}
7878
$fieldsWithTypes[$fieldName] = [
7979
'type' => EntityType::class,
80-
'options_code' => \sprintf('\'class\' => %s::class,', $relation['targetEntity']).\PHP_EOL.'\'choice_label\' => \'id\',',
80+
'options_code' => \sprintf('\'class\' => %s::class,', $relation['targetEntity'])."\n 'choice_label' => 'id',",
8181
'extra_use_classes' => [$relation['targetEntity']],
8282
];
8383
if (\Doctrine\ORM\Mapping\ClassMetadata::MANY_TO_MANY === $relation['type']) {
84-
$fieldsWithTypes[$fieldName]['options_code'] .= "\n'multiple' => true,";
84+
$fieldsWithTypes[$fieldName]['options_code'] .= "\n 'multiple' => true,";
8585
}
8686
}
8787

0 commit comments

Comments
 (0)