Skip to content

Commit

Permalink
run php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman authored and jrushlow committed Feb 27, 2024
1 parent 827b756 commit 6eb66ca
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Doctrine/EntityDetails.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@

use Doctrine\Persistence\Mapping\ClassMetadata;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Bundle\MakerBundle\Tests\Doctrine\DoctrineHelperTest;
use Symfony\Component\Form\Extension\Core\Type\DateType;

/**
* @author Sadicov Vladimir <sadikoff@gmail.com>
Expand Down Expand Up @@ -65,12 +63,11 @@ public function getFormFields(): array

foreach ($this->metadata->fieldMappings as $fieldName => $fieldMapping) {
$propType = DoctrineHelper::getPropertyTypeForColumn($fieldMapping['type']);
if (($propType === '\\' . \DateTimeImmutable::class) ||
($propType === '\\' . \DateTimeInterface::class))
{
if (($propType === '\\'.\DateTimeImmutable::class)
|| ($propType === '\\'.\DateTimeInterface::class)) {
$fieldsWithTypes[$fieldName] = [
'type' => null,
'options_code' => "'widget' => 'single_text'"
'options_code' => "'widget' => 'single_text'",
];
}
}
Expand Down

0 comments on commit 6eb66ca

Please sign in to comment.