============================= Rule ``no_extra_blank_lines`` ============================= Removes extra blank lines and/or blank lines following configuration. Configuration ------------- ``tokens`` ~~~~~~~~~~ List of tokens to fix. Allowed values: a subset of ``['attribute', 'break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use', 'use_trait']`` Default value: ``['extra']`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New ['break']]``. .. code-block:: diff --- Original +++ New ['continue']]``. .. code-block:: diff --- Original +++ New ['curly_brace_block']]``. .. code-block:: diff --- Original +++ New ['extra']]``. .. code-block:: diff --- Original +++ New ['parenthesis_brace_block']]``. .. code-block:: diff --- Original +++ New ['return']]``. .. code-block:: diff --- Original +++ New ['square_brace_block']]``. .. code-block:: diff --- Original +++ New ['throw']]``. .. code-block:: diff --- Original +++ New ['use']]``. .. code-block:: diff --- Original +++ New ['switch', 'case', 'default']]``. .. code-block:: diff --- Original +++ New `_ with config: ``['tokens' => ['attribute', 'break', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'return', 'square_brace_block', 'switch', 'throw', 'use']]`` - `@Symfony <./../../ruleSets/Symfony.rst>`_ with config: ``['tokens' => ['attribute', 'case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'switch', 'throw', 'use']]``