mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 19:58:53 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -61,7 +61,7 @@ class SelectableValidator extends ConstraintValidator
|
|||
*/
|
||||
public function validate($value, Constraint $constraint): void
|
||||
{
|
||||
if (! $constraint instanceof Selectable) {
|
||||
if (!$constraint instanceof Selectable) {
|
||||
throw new UnexpectedTypeException($constraint, Selectable::class);
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ class SelectableValidator extends ConstraintValidator
|
|||
}
|
||||
|
||||
//Check type of value. Validating only works for StructuralDBElements
|
||||
if (! $value instanceof AbstractStructuralDBElement) {
|
||||
if (!$value instanceof AbstractStructuralDBElement) {
|
||||
throw new UnexpectedValueException($value, 'StructuralDBElement');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue