Skip to content

Commit

Permalink
Run Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
bertramakers authored and github-actions[bot] committed Oct 7, 2024
1 parent a057b3d commit 2280091
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Schema/Type/Number.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ public function validate(mixed $value, callable $fail): void
}
}

if ($this->multipleOf !== null && (float) $value !== 0.0 && $value % $this->multipleOf !== 0) {
if (
$this->multipleOf !== null &&
(float) $value !== 0.0 &&
$value % $this->multipleOf !== 0
) {
$fail(sprintf('must be a multiple of %d', $this->multipleOf));
}
}
Expand Down

0 comments on commit 2280091

Please sign in to comment.