============================ Rule ``heredoc_indentation`` ============================ Heredoc/nowdoc content must be properly indented. Configuration ------------- ``indentation`` ~~~~~~~~~~~~~~~ Whether the indentation should be the same as in the start token line or one level more. Allowed values: ``'same_as_start'`` and ``'start_plus_one'`` Default value: ``'start_plus_one'`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New 'same_as_start']``. .. code-block:: diff --- Original +++ New `_ - `@PHP74Migration <./../../ruleSets/PHP74Migration.rst>`_ - `@PHP80Migration <./../../ruleSets/PHP80Migration.rst>`_ - `@PHP81Migration <./../../ruleSets/PHP81Migration.rst>`_ - `@PHP82Migration <./../../ruleSets/PHP82Migration.rst>`_ - `@PHP83Migration <./../../ruleSets/PHP83Migration.rst>`_ - `@PHP84Migration <./../../ruleSets/PHP84Migration.rst>`_ References ---------- - Fixer class: `PhpCsFixer\\Fixer\\Whitespace\\HeredocIndentationFixer <./../../../src/Fixer/Whitespace/HeredocIndentationFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Whitespace\\HeredocIndentationFixerTest <./../../../tests/Fixer/Whitespace/HeredocIndentationFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.