From ce65f51d919bc4e32b9f25259e0a92d70490c6e5 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Wed, 26 Dec 2018 21:39:36 +0100 Subject: [PATCH] [phpcs] Fix blank line detection Squiz.WhiteSpace.SuperfluousWhitespace has problems detecting blank lines in functions when used together with the PSR2 standard. More information: https://github.com/squizlabs/PHP_CodeSniffer/issues/600 This commit fixes that issue by restoring the original behavior. It also adds rules for function spacing because the sniff mentioned above does only work within functions. --- phpcs.xml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/phpcs.xml b/phpcs.xml index 4dcadcf4..34822502 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -79,7 +79,22 @@ - + + + + + + + + + + + + +