Empty loop-body must be in configured style.
Style of empty loop-bodies.
Allowed values: 'braces'
and 'semicolon'
Default value: 'semicolon'
Default configuration.
--- Original
+++ New
-<?php while(foo()){}
+<?php while(foo());
With configuration: ['style' => 'braces']
.
--- Original
+++ New
-<?php while(foo());
+<?php while(foo()){}
The rule is part of the following rule sets:
@Symfony with config:
['style' => 'braces']