Single-statement body with braces
Reports the control structures (such as loops or conditionals) whose bodies are enclosed in braces but only contain a single child statement. Using braces in such cases is not necessary.
See Control structures (php.net) for details.
PhpStorm 2023.3, Qodana for PHP 2023.3