======================================== Rule ``whitespace_after_comma_in_array`` ======================================== In array declaration, there MUST be a whitespace after each comma. Configuration ------------- ``ensure_single_space`` ~~~~~~~~~~~~~~~~~~~~~~~ If there are only horizontal whitespaces after the comma then ensure it is a single space. Allowed types: ``bool`` Default value: ``false`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New true]``. .. code-block:: diff --- Original +++ New `_ with config: ``['ensure_single_space' => true]`` - `@Symfony <./../../ruleSets/Symfony.rst>`_ References ---------- - Fixer class: `PhpCsFixer\\Fixer\\ArrayNotation\\WhitespaceAfterCommaInArrayFixer <./../../../src/Fixer/ArrayNotation/WhitespaceAfterCommaInArrayFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\ArrayNotation\\WhitespaceAfterCommaInArrayFixerTest <./../../../tests/Fixer/ArrayNotation/WhitespaceAfterCommaInArrayFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.