Fork me on GitHub
a Sensio Labs Product

Oliva (v3.13.0) edition

Rule control_structure_braces

The body of each control structure MUST be enclosed within braces.

Examples

Example #1

--- Original
+++ New
 <?php
-if (foo()) echo 'Hello!';
+if (foo()) { echo 'Hello!'; }
The logo is © 2010-2022 Sensio Labs