aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-10-31 21:47:57 +0900
committernsfisis <nsfisis@gmail.com>2025-10-31 21:47:57 +0900
commit76ca754957d3feaa2410ea327e36d56c07233e77 (patch)
tree55b722efcf69974181745586a1c97855cd9ae353
parent906d4ed33a4c0d7fe470133854ae714799f28d84 (diff)
downloadphp-next-after-76ca754957d3feaa2410ea327e36d56c07233e77.tar.gz
php-next-after-76ca754957d3feaa2410ea327e36d56c07233e77.tar.zst
php-next-after-76ca754957d3feaa2410ea327e36d56c07233e77.zip
style: formatHEADmain
-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);
}
/**