Run Rector on your code to see what it can do for you:

     }
 
     // The expression here is being replaced by the constant 500
-    $stats->maxRange = (intval(($stats->maxRange + 1) / 500) + 1) * 500;
+    $stats->maxRange = 500;
 
     return $stats->maxRange;
 }
PHP snippet to change

Applied Rules:

Not a change you expect?

Config  rector.php
Rector version: 036cfd - released at 2026-02-24 16:36