Find the best Rector rule to solve your problem. Searching through 1011 rules.

Found 1 rule. That's the one:

MinMaxToClampRector

Convert nested min()/max() calls to clamp()

-$result = max(0, min(100, $value));
+$result = clamp($value, 0, 100);
SETS:  PHP 8.6