Applied rector suggestions

This commit is contained in:
Jan Böhmer 2024-06-22 00:31:43 +02:00
parent 4106bcef5f
commit 20f32c7f12
170 changed files with 808 additions and 761 deletions

View file

@ -81,12 +81,12 @@ class EntityFilterHelper
public function getDescription(array $properties): array
{
if (!$properties) {
if ($properties === []) {
return [];
}
$description = [];
foreach ($properties as $property => $strategy) {
foreach (array_keys($properties) as $property) {
$description[(string)$property] = [
'property' => $property,
'type' => Type::BUILTIN_TYPE_STRING,

View file

@ -61,7 +61,7 @@ final class LikeFilter extends AbstractFilter
}
$description = [];
foreach ($this->properties as $property => $strategy) {
foreach (array_keys($this->properties) as $property) {
$description[(string)$property] = [
'property' => $property,
'type' => Type::BUILTIN_TYPE_STRING,