
empty_loop_body
¶Empty loop-body must be in configured style.
With configuration: ['style' => 'braces']
.
--- Original
+++ New
-<?php while(foo());
+<?php while(foo()){}
The rule is part of the following rule sets:
Using the @PhpCsFixer rule set will enable the empty_loop_body
rule with the default config.
Using the @Symfony rule set will enable the empty_loop_body
rule with the config below:
['style' => 'braces']