Skip to content

Commit fb117f1

Browse files
committed
fix: code style
1 parent 5d3f8f4 commit fb117f1

File tree

8 files changed

+11
-12
lines changed

8 files changed

+11
-12
lines changed

src/Symfony/Bridge/Doctrine/Tests/Fixtures/Bundles/FullEmbeddableAnnotationsBundle/Entity/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ public function __construct($street, $zipCode, $city)
3535

3636
public function __toString(): string
3737
{
38-
return sprintf('%s %s %s', $this->street, $this->zipCode, $this->city);
38+
return \sprintf('%s %s %s', $this->street, $this->zipCode, $this->city);
3939
}
4040
}

src/Symfony/Bridge/Doctrine/Tests/Fixtures/Bundles/FullEmbeddableAttributesBundle/Entity/Address.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#[Embeddable]
1818
class Address
1919
{
20-
2120
#[Column(type: 'string')]
2221
public $street;
2322

@@ -36,6 +35,6 @@ public function __construct($street, $zipCode, $city)
3635

3736
public function __toString(): string
3837
{
39-
return sprintf('%s %s %s', $this->street, $this->zipCode, $this->city);
38+
return \sprintf('%s %s %s', $this->street, $this->zipCode, $this->city);
4039
}
4140
}

src/Symfony/Bridge/Doctrine/Tests/Fixtures/DoctrineLoaderEntity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @author Kévin Dunglas <[email protected]>
2020
*/
21-
#[ORM\Entity, UniqueEntity(fields: ["alreadyMappedUnique"])]
21+
#[ORM\Entity, UniqueEntity(fields: ['alreadyMappedUnique'])]
2222
class DoctrineLoaderEntity extends DoctrineLoaderParentEntity
2323
{
2424
#[ORM\Id, ORM\Column]

src/Symfony/Bridge/Doctrine/Tests/Fixtures/SingleIntIdEntityRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class SingleIntIdEntityRepository extends EntityRepository
1717
{
18-
public $result = null;
18+
public $result;
1919

2020
public function findByCustom()
2121
{

src/Symfony/Bridge/Doctrine/Tests/PropertyInfo/Fixtures/DoctrineFooType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function convertToDatabaseValue($value, AbstractPlatform $platform): ?str
3838
return null;
3939
}
4040
if (!$value instanceof Foo) {
41-
throw new ConversionException(sprintf('Expected "%s", got "%s"', 'Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\Foo', get_debug_type($value)));
41+
throw new ConversionException(\sprintf('Expected "%s", got "%s"', 'Symfony\Bridge\Doctrine\Tests\PropertyInfo\Fixtures\Foo', get_debug_type($value)));
4242
}
4343

4444
return $value->bar;

src/Symfony/Bridge/Doctrine/Tests/Types/DatePointTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ private static function getSqlitePlatform(): AbstractPlatform
9494
{
9595
if (interface_exists(Exception::class)) {
9696
// DBAL 4+
97-
return new \Doctrine\DBAL\Platforms\SQLitePlatform();
97+
return new SQLitePlatform();
9898
}
9999

100-
return new \Doctrine\DBAL\Platforms\SqlitePlatform();
100+
return new SQLitePlatform();
101101
}
102102
}

src/Symfony/Bridge/Doctrine/Tests/Types/UlidTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ private static function getSqlitePlatform(): AbstractPlatform
154154
{
155155
if (interface_exists(Exception::class)) {
156156
// DBAL 4+
157-
return new \Doctrine\DBAL\Platforms\SQLitePlatform();
157+
return new SQLitePlatform();
158158
}
159159

160-
return new \Doctrine\DBAL\Platforms\SqlitePlatform();
160+
return new SQLitePlatform();
161161
}
162162
}

src/Symfony/Bridge/Doctrine/Tests/Types/UuidTypeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ private static function getSqlitePlatform(): AbstractPlatform
165165
{
166166
if (interface_exists(Exception::class)) {
167167
// DBAL 4+
168-
return new \Doctrine\DBAL\Platforms\SQLitePlatform();
168+
return new SQLitePlatform();
169169
}
170170

171-
return new \Doctrine\DBAL\Platforms\SqlitePlatform();
171+
return new SQLitePlatform();
172172
}
173173
}

0 commit comments

Comments
 (0)