Skip to content

Commit 5cb992d

Browse files
committed
Fix phpcsfixer
1 parent b97417b commit 5cb992d

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

src/Doctrine/Orm/Filter/AbstractUuidFilter.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private function filterProperty(string $property, mixed $value, QueryBuilder $qu
8787
$this->logger->notice('Tried to filter on a non-existent field or association', [
8888
'field' => $field,
8989
'resource_class' => $resourceClass,
90-
'exception' => new InvalidArgumentException(sprintf('Property "%s" does not exist in resource "%s".', $field, $resourceClass)),
90+
'exception' => new InvalidArgumentException(\sprintf('Property "%s" does not exist in resource "%s".', $field, $resourceClass)),
9191
]);
9292

9393
return;
@@ -116,11 +116,8 @@ private function filterProperty(string $property, mixed $value, QueryBuilder $qu
116116
*/
117117
private function convertValuesToTheDatabaseRepresentationIfNecessary(QueryBuilder $queryBuilder, ?string $doctrineFieldType, array $values): array
118118
{
119-
if ($doctrineFieldType === null || !Type::hasType($doctrineFieldType)) {
120-
throw new \LogicException(sprintf(
121-
'The Doctrine type "%s" is not valid or not registered.',
122-
$doctrineFieldType
123-
));
119+
if (null === $doctrineFieldType || !Type::hasType($doctrineFieldType)) {
120+
throw new \LogicException(\sprintf('The Doctrine type "%s" is not valid or not registered.', $doctrineFieldType));
124121
}
125122

126123
$doctrineType = Type::getType($doctrineFieldType);

src/Doctrine/Orm/Filter/UuidBinaryFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ final class UuidBinaryFilter extends AbstractUuidFilter
2222
{
2323
public function __construct()
2424
{
25-
if (!InstalledVersions::satisfies(new VersionParser, 'doctrine/orm', '^3.0.1')) {
25+
if (!InstalledVersions::satisfies(new VersionParser(), 'doctrine/orm', '^3.0.1')) {
2626
// @see https://github.com/doctrine/orm/pull/11287
2727
throw new \LogicException('The "doctrine/orm" package version 3.0.1 or higher is required to use the UuidBinaryFilter. Please upgrade your dependencies.');
2828
}

tests/Functional/Uuid/UuidFilterWithRamseyUuidBinaryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class UuidFilterWithRamseyUuidBinaryTest extends UuidFilterBaseTestCase
2222
{
2323
protected function setUp(): void
2424
{
25-
if (!InstalledVersions::satisfies(new VersionParser, 'doctrine/orm', '^3.0.1')) {
25+
if (!InstalledVersions::satisfies(new VersionParser(), 'doctrine/orm', '^3.0.1')) {
2626
$this->markTestSkipped('The "doctrine/orm" package version 3.0.1 or higher is required to use the UuidBinaryFilter');
2727
}
2828

0 commit comments

Comments
 (0)