Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurício Meneghini Fauth <mauricio@fauth.dev>2020-01-20 04:29:54 +0300
committerMaurício Meneghini Fauth <mauricio@fauth.dev>2020-01-20 04:29:54 +0300
commit285907991e61f47fe605b5b239526a05473e242e (patch)
tree4b24f80f60337981004838a398bbf5f7681fcd93 /phpcs.xml.dist
parent63dbcd01d9565679cb3bf20a53e1f6b5f3bb412a (diff)
Add coding standard rules for whitespace
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'phpcs.xml.dist')
-rw-r--r--phpcs.xml.dist16
1 files changed, 16 insertions, 0 deletions
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
index 53b9b708ca..6737fb7fcb 100644
--- a/phpcs.xml.dist
+++ b/phpcs.xml.dist
@@ -36,6 +36,22 @@
<rule ref="Squiz.Strings.DoubleQuoteUsage"/>
+ <rule ref="Squiz.WhiteSpace.FunctionOpeningBraceSpace"/>
+ <rule ref="Squiz.WhiteSpace.FunctionSpacing">
+ <properties>
+ <property name="spacing" value="1" />
+ <property name="spacingBeforeFirst" value="0"/>
+ <property name="spacingAfterLast" value="0"/>
+ </properties>
+ </rule>
+ <rule ref="Squiz.WhiteSpace.LogicalOperatorSpacing"/>
+ <rule ref="Squiz.WhiteSpace.SemicolonSpacing"/>
+ <rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
+ <properties>
+ <property name="ignoreBlankLines" value="false"/>
+ </properties>
+ </rule>
+
<arg value="sp"/>
<arg name="colors"/>
<arg name="extensions" value="php"/>