Skip to content

Commit bfbff54

Browse files
bertramakersgithub-actions[bot]
authored andcommitted
Run Prettier
1 parent 9877134 commit bfbff54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Schema/Type/Number.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ public function validate(mixed $value, callable $fail): void
5252

5353
// Divide the value by multipleOf instead of using the modulo operator to avoid bugs when using a multipleOf
5454
// that has decimal places. (Since the modulo operator converts the multipleOf to int)
55-
if ($this->multipleOf !== null && $value/$this->multipleOf !== (float) round($value/$this->multipleOf)) {
55+
if (
56+
$this->multipleOf !== null &&
57+
$value / $this->multipleOf !== (float) round($value / $this->multipleOf)
58+
) {
5659
$fail(sprintf('must be a multiple of %d', $this->multipleOf));
5760
}
5861
}

0 commit comments

Comments
 (0)