fixed CS
This commit is contained in:
parent
77963313ee
commit
76858808ad
@ -68,7 +68,7 @@ class ImageValidator extends FileValidator
|
||||
|
||||
if ($constraint->minWidth) {
|
||||
if (!ctype_digit((string) $constraint->minWidth)) {
|
||||
throw new ConstraintDefinitionException(sprintf('"%s" is not a valid minimum width', $constraint->minWidth));
|
||||
throw new ConstraintDefinitionException(sprintf('"%s" is not a valid minimum width.', $constraint->minWidth));
|
||||
}
|
||||
|
||||
if ($width < $constraint->minWidth) {
|
||||
@ -84,7 +84,7 @@ class ImageValidator extends FileValidator
|
||||
|
||||
if ($constraint->maxWidth) {
|
||||
if (!ctype_digit((string) $constraint->maxWidth)) {
|
||||
throw new ConstraintDefinitionException(sprintf('"%s" is not a valid maximum width', $constraint->maxWidth));
|
||||
throw new ConstraintDefinitionException(sprintf('"%s" is not a valid maximum width.', $constraint->maxWidth));
|
||||
}
|
||||
|
||||
if ($width > $constraint->maxWidth) {
|
||||
|
Reference in New Issue
Block a user