diff options
author | 2018-11-13 18:25:37 +0100 | |
---|---|---|
committer | 2018-11-13 18:25:37 +0100 | |
commit | c296e73c18d01bf3d6e848fc7bc7c7581301947b (patch) | |
tree | f8e1863f6a3b04ba3cb431c25c72d05572e46074 | |
parent | 007ee4d858ef9489f9ae191db4ccffb47f6258e9 (diff) | |
download | rss-bridge-c296e73c18d01bf3d6e848fc7bc7c7581301947b.tar.gz rss-bridge-c296e73c18d01bf3d6e848fc7bc7c7581301947b.tar.zst rss-bridge-c296e73c18d01bf3d6e848fc7bc7c7581301947b.zip |
[phpcs] Add rules for method declarations in classes
-rw-r--r-- | phpcs.xml | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -47,6 +47,9 @@ <rule ref="PEAR.Functions.ValidDefaultValue"/> <!-- Use PascalCase for class names --> <rule ref="PEAR.NamingConventions.ValidClassName"/> + <!-- abstract and final declarations MUST precede the visibility declaration --> + <!-- static declaration MUST come after the visibility declaration --> + <rule ref="PSR2.Methods.MethodDeclaration" /> <!-- Use 'elseif' instead of 'else if' --> <rule ref="PSR2.ControlStructures.ElseIfDeclaration"/> <!-- Do not add spaces after opening or before closing bracket --> |