Skip to content

Commit

Permalink
fix: remove duplicated block
Browse files Browse the repository at this point in the history
  • Loading branch information
vinceAmstoutz authored and soyuka committed Dec 10, 2024
1 parent 3dde14a commit d1ffc14
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/Doctrine/Orm/Filter/OrderFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,6 @@ public function apply(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $q
return;
}

$parameter = $context['parameter'] ?? null;
if (null !== ($value = $context['filters'][$parameter?->getProperty()] ?? null)) {
$this->filterProperty($this->denormalizePropertyName($parameter->getProperty()), $value, $queryBuilder, $queryNameGenerator, $resourceClass, $operation, $context);

return;
}

foreach ($context['filters'][$this->orderParameterName] as $property => $value) {
$this->filterProperty($this->denormalizePropertyName($property), $value, $queryBuilder, $queryNameGenerator, $resourceClass, $operation, $context);
}
Expand Down

0 comments on commit d1ffc14

Please sign in to comment.