Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Apr 23, 2024
1 parent f657bd9 commit 347ffd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Properties/Models/PropertyValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ public static function getByScalarPropertiesAndValues(array $conditions): Collec
$count = 0;
foreach ($conditions as $property => $value) {
match ($count) {
0 => $query->where(fn($q) => $q->where('properties.slug', '=', $property)->where('property_values.value', '=', $value)),
default => $query->orWhere(fn($q) => $q->where('properties.slug', '=', $property)->where('property_values.value', '=', $value)),
0 => $query->where(fn ($q) => $q->where('properties.slug', '=', $property)->where('property_values.value', '=', $value)),
default => $query->orWhere(fn ($q) => $q->where('properties.slug', '=', $property)->where('property_values.value', '=', $value)),
};
$count++;
}
Expand Down

0 comments on commit 347ffd5

Please sign in to comment.