aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/phpcs.xml
diff options
context:
space:
mode:
authorFrans de Jonge <fransdejonge@gmail.com>2022-01-05 00:52:24 +0100
committerGitHub <noreply@github.com>2022-01-05 00:52:24 +0100
commitd339b6dd454d814ffc323fa9077b70e33339c479 (patch)
treebf82e2b4beda3958502465ef76c223175a978afd /phpcs.xml
parenta6ea90e58b807d18fff601135e3e697b38895ca1 (diff)
downloadfreshrss-d339b6dd454d814ffc323fa9077b70e33339c479.tar.gz
freshrss-d339b6dd454d814ffc323fa9077b70e33339c479.zip
[CI] PHPCS: check for opening brace on same line (#4122)
* [CI] PHPCS: check for opening brace on same line * make fix-all * Minor comments Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'phpcs.xml')
-rw-r--r--phpcs.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/phpcs.xml b/phpcs.xml
index bded9723c..447c04f49 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -105,6 +105,8 @@
<rule ref="Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis">
<exclude-pattern>.phtml$</exclude-pattern>
</rule>
+ <!-- Opening brace on same line as function declaration -->
+ <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie" />
<!-- Newline required after opening brace -->
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
<exclude-pattern>.phtml$</exclude-pattern>