|
@@ -30,7 +30,7 @@ Default value: ``['abstract', 'as', 'attribute', 'break', 'case', 'catch', 'clas
|
|
|
|
|
|
List of constructs which must be preceded by a single space.
|
|
|
|
|
|
-Allowed values: a subset of ``['as', 'use_lambda']``
|
|
|
+Allowed values: a subset of ``['as', 'else', 'elseif', 'use_lambda']``
|
|
|
|
|
|
Default value: ``['as', 'use_lambda']``
|
|
|
|
|
@@ -113,6 +113,30 @@ Rule sets
|
|
|
|
|
|
The rule is part of the following rule sets:
|
|
|
|
|
|
+- `@PER <./../../ruleSets/PER.rst>`_ with config:
|
|
|
+
|
|
|
+ ``['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'const', 'const_import', 'do', 'else', 'elseif', 'enum', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'if', 'insteadof', 'interface', 'match', 'named_argument', 'namespace', 'new', 'private', 'protected', 'public', 'readonly', 'static', 'switch', 'trait', 'try', 'type_colon', 'use', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]``
|
|
|
+
|
|
|
+- `@PER-CS <./../../ruleSets/PER-CS.rst>`_ with config:
|
|
|
+
|
|
|
+ ``['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'const', 'const_import', 'do', 'else', 'elseif', 'enum', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'if', 'insteadof', 'interface', 'match', 'named_argument', 'namespace', 'new', 'private', 'protected', 'public', 'readonly', 'static', 'switch', 'trait', 'try', 'type_colon', 'use', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]``
|
|
|
+
|
|
|
+- `@PER-CS1.0 <./../../ruleSets/PER-CS1.0.rst>`_ with config:
|
|
|
+
|
|
|
+ ``['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'const_import', 'do', 'else', 'elseif', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'if', 'insteadof', 'interface', 'namespace', 'new', 'private', 'protected', 'public', 'static', 'switch', 'trait', 'try', 'use', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]``
|
|
|
+
|
|
|
+- `@PER-CS2.0 <./../../ruleSets/PER-CS2.0.rst>`_ with config:
|
|
|
+
|
|
|
+ ``['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'const', 'const_import', 'do', 'else', 'elseif', 'enum', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'if', 'insteadof', 'interface', 'match', 'named_argument', 'namespace', 'new', 'private', 'protected', 'public', 'readonly', 'static', 'switch', 'trait', 'try', 'type_colon', 'use', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]``
|
|
|
+
|
|
|
+- `@PSR2 <./../../ruleSets/PSR2.rst>`_ with config:
|
|
|
+
|
|
|
+ ``['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'do', 'else', 'elseif', 'final', 'for', 'foreach', 'function', 'if', 'interface', 'namespace', 'private', 'protected', 'public', 'static', 'switch', 'trait', 'try', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]``
|
|
|
+
|
|
|
+- `@PSR12 <./../../ruleSets/PSR12.rst>`_ with config:
|
|
|
+
|
|
|
+ ``['constructs_followed_by_a_single_space' => ['abstract', 'as', 'case', 'catch', 'class', 'const_import', 'do', 'else', 'elseif', 'final', 'finally', 'for', 'foreach', 'function', 'function_import', 'if', 'insteadof', 'interface', 'namespace', 'new', 'private', 'protected', 'public', 'static', 'switch', 'trait', 'try', 'use', 'use_lambda', 'while'], 'constructs_preceded_by_a_single_space' => ['as', 'else', 'elseif', 'use_lambda']]``
|
|
|
+
|
|
|
- `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
|
|
|
- `@Symfony <./../../ruleSets/Symfony.rst>`_
|
|
|
|