Fork me on GitHub
a Sensio Labs Product

BoY42 (v3.15.1) edition

Rule statement_indentation

Each statement must be indented.

Examples

Example #1

--- Original
+++ New
 <?php
 if ($baz == true) {
-  echo "foo";
+    echo "foo";
 }
 else {
-      echo "bar";
+    echo "bar";
 }
The logo is © 2010-2022 Sensio Labs