============================== Rule ``space_after_semicolon`` ============================== Fix whitespace after a semicolon. Configuration ------------- ``remove_in_empty_for_expressions`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Whether spaces should be removed for empty ``for`` expressions. Allowed types: ``bool`` Default value: ``false`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New true]``. .. code-block:: diff --- Original +++ New `_ with config: ``['remove_in_empty_for_expressions' => true]`` - `@Symfony <./../../ruleSets/Symfony.rst>`_ with config: ``['remove_in_empty_for_expressions' => true]`` References ---------- - Fixer class: `PhpCsFixer\\Fixer\\Semicolon\\SpaceAfterSemicolonFixer <./../../../src/Fixer/Semicolon/SpaceAfterSemicolonFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Semicolon\\SpaceAfterSemicolonFixerTest <./../../../tests/Fixer/Semicolon/SpaceAfterSemicolonFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.