Skip to content

Commit 0a09fd8

Browse files
committed
Improve
1 parent ac033d7 commit 0a09fd8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/App/Helper/MinMaxHelper.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,11 @@ private function appendCollectionDoc(CollectionDoc $doc, Constraint $constraint)
8181
} elseif ($constraint instanceof Assert\NotBlank && null === $doc->getMinItem()) {
8282
// Not blank so minimum 1 item
8383
$doc->setMinItem(1);
84-
}/* // Documentation does not mention array, counter to NotBlank constraint
84+
} /* // Documentation does not mention array, counter to NotBlank constraint
8585
elseif ($constraint instanceof Assert\Blank && null === $doc->getMaxItem()) {
8686
// Blank so maximum 0 item
8787
$doc->setMaxItem(0);
88-
}*/
89-
if ($constraint instanceof Assert\GreaterThan || $constraint instanceof Assert\GreaterThanOrEqual) {
88+
}*/ elseif ($constraint instanceof Assert\GreaterThan || $constraint instanceof Assert\GreaterThanOrEqual) {
9089
$doc->setMinItem(
9190
$constraint instanceof Assert\GreaterThanOrEqual
9291
? $constraint->value

0 commit comments

Comments
 (0)