Skip to content

Commit 8bdb918

Browse files
Update References.php
Co-authored-by: Alex Rock <pierstoval@gmail.com>
1 parent da6c798 commit 8bdb918

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

References.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,9 @@ public function threshold(string $threshold): float
232232

233233
if (substr($threshold, -1) == '%') {
234234
$percent_num = substr($threshold, 0, -1);
235-
if (is_numeric($percent_num))
235+
if (is_numeric($percent_num)) {
236236
return $threshold;
237+
}
237238
} else {
238239
if (is_int(filter_var($threshold, FILTER_VALIDATE_INT)) && intval($threshold) >= 0)
239240
return $threshold;

0 commit comments

Comments
 (0)