Fixed code style.

This commit is contained in:
Jan Böhmer 2020-08-21 21:36:22 +02:00
parent 2853e471c4
commit d0b1024d80
212 changed files with 495 additions and 1005 deletions

View file

@ -40,7 +40,7 @@ class ValidRangeValidator extends ConstraintValidator
public function validate($value, Constraint $constraint): void
{
if (! $constraint instanceof ValidRange) {
if (!$constraint instanceof ValidRange) {
throw new UnexpectedTypeException($constraint, ValidRange::class);
}
@ -50,11 +50,11 @@ class ValidRangeValidator extends ConstraintValidator
return;
}
if (! is_string($value)) {
if (!is_string($value)) {
throw new UnexpectedValueException($value, 'string');
}
if (! $this->rangeParser->isValidRange($value)) {
if (!$this->rangeParser->isValidRange($value)) {
$this->context->buildViolation($constraint->message)
->addViolation();
}