Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule array_indentationΒΆ

Each element of an array must be indented exactly once.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php
 $foo = [
-   'bar' => [
-    'baz' => true,
-  ],
+    'bar' => [
+        'baz' => true,
+    ],
 ];

Rule setsΒΆ

The rule is part of the following rule set:

Source classΒΆ

PhpCsFixer\Fixer\Whitespace\ArrayIndentationFixer