Fixed code style.

This commit is contained in:
Jan Böhmer 2020-08-21 22:44:38 +02:00
parent e01b06fb85
commit e73a90a234
24 changed files with 30 additions and 58 deletions

View file

@ -94,8 +94,8 @@ class NoLockoutValidator extends ConstraintValidator
'users',
'edit_permissions'
) ?? false)) {
$this->context->addViolation($constraint->message);
}
$this->context->addViolation($constraint->message);
}
}
}
}

View file

@ -56,8 +56,8 @@ class SelectableValidator extends ConstraintValidator
/**
* Checks if the passed value is valid.
*
* @param mixed $value The value that should be validated
* @param Constraint $constraint The constraint for the validation
* @param mixed $value The value that should be validated
* @param Constraint $constraint The constraint for the validation
*/
public function validate($value, Constraint $constraint): void
{

View file

@ -113,9 +113,9 @@ class ValidPartLotValidator extends ConstraintValidator
if ($value->getStorageLocation()->isOnlySinglePart() && ($parts->count() > 0) && !$parts->contains(
$value->getPart()
)) {
$this->context->buildViolation('validator.part_lot.single_part')
$this->context->buildViolation('validator.part_lot.single_part')
->atPath('storage_location')->addViolation();
}
}
}
}
}