aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/NextAfter.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/NextAfter.php')
-rw-r--r--src/NextAfter.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/NextAfter.php b/src/NextAfter.php
index d985e6f..8bd6adc 100644
--- a/src/NextAfter.php
+++ b/src/NextAfter.php
@@ -84,9 +84,7 @@ final class NextAfter
return self::minValue();
}
$u = self::floatToInt($x);
- return $x > 0.0 ? self::intToFloat($u + 1) :
- self::intToFloat($u - 1);
-
+ return $x > 0.0 ? self::intToFloat($u + 1) : self::intToFloat($u - 1);
}
/**
@@ -120,9 +118,7 @@ final class NextAfter
return -self::minValue();
}
$u = self::floatToInt($x);
- return $x > 0.0 ? self::intToFloat($u - 1) :
- self::intToFloat($u + 1);
-
+ return $x > 0.0 ? self::intToFloat($u - 1) : self::intToFloat($u + 1);
}
/**