Skip to content

Commit

Permalink
chore: change syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Nov 19, 2024
1 parent e876da8 commit 93e5ae4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions extensions/tags/src/TagCountValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ protected function getRules()
]
];

if ( $min === $max ) {
Arr::add($rules, $key, "size:{$min}");
if ($min === $max) {
$rules[$key][] = "size:{$min}";
} else {
Arr::add($rules, $key, "between:{$min},{$max}");
$rules[$key][] = "between:{$min},{$max}";
}

return $rules;
Expand Down

0 comments on commit 93e5ae4

Please sign in to comment.