diff options
-rw-r--r-- | build/code_sniffer/ruleset-php-legacy.xml | 4 | ||||
-rw-r--r-- | build/code_sniffer/ruleset-php-strict.xml | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/build/code_sniffer/ruleset-php-legacy.xml b/build/code_sniffer/ruleset-php-legacy.xml index ebc85c4fef..ed8c7e98a0 100644 --- a/build/code_sniffer/ruleset-php-legacy.xml +++ b/build/code_sniffer/ruleset-php-legacy.xml @@ -7,9 +7,7 @@ <!-- The body of each structure MUST be enclosed by braces. --> <rule ref="Generic.ControlStructures.InlineControlStructure" /> - - <!-- All PHP files MUST end with a single blank line. --> - + <!-- Class constants MUST be declared in all upper case with underscore separators. --> <rule ref="Generic.NamingConventions.UpperCaseConstantName" /> diff --git a/build/code_sniffer/ruleset-php-strict.xml b/build/code_sniffer/ruleset-php-strict.xml index 8580090c69..65b6763c57 100644 --- a/build/code_sniffer/ruleset-php-strict.xml +++ b/build/code_sniffer/ruleset-php-strict.xml @@ -24,13 +24,13 @@ <!-- There MUST NOT be trailing whitespace at the end of lines. --> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace" /> - + <!-- There MUST NOT be whitespace before the first content of a file --> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.StartFile" /> <!-- There MUST NOT be whitespace after the last content of a file --> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EndFile" /> - + <!-- Functions MUST NOT contain multiple empty lines in a row --> <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines" /> |