mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-10 13:09:30 +00:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue