aboutsummaryrefslogtreecommitdiff
path: root/phpcs.xml
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2024-10-15 10:56:33 +0200
committerGravatar GitHub <noreply@github.com> 2024-10-15 10:56:33 +0200
commitb552d9f4bc900462bb44fa4c1731a9443ec3e476 (patch)
tree2a9a72b71fe3c040f817f6eeba8b5868deb40442 /phpcs.xml
parent93346bc3b3407fa547c138bcf33438ce508e5c38 (diff)
Fix PHPCS ControlSignature (#6896)
Regression from https://github.com/FreshRSS/FreshRSS/pull/6666 We were not checking anymore for whitespace rules in e.g. `if (true) {`
Diffstat (limited to 'phpcs.xml')
-rw-r--r--phpcs.xml5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpcs.xml b/phpcs.xml
index 5b29b81a2..05eeefe66 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -88,12 +88,17 @@
<exclude-pattern>*\.phtml$</exclude-pattern>
</rule>
<!-- <rule ref="Squiz.Commenting.ClassComment.Missing"/> --><!-- Consider adding -->
+
<rule ref="Squiz.ControlStructures.ControlSignature">
<include-pattern>*\.phtml$</include-pattern>
<properties>
<property name="requiredSpacesBeforeColon" value="0" />
</properties>
</rule>
+ <rule ref="Squiz.ControlStructures.ControlSignature">
+ <include-pattern>*\.php$</include-pattern>
+ </rule>
+
<rule ref="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace">
<exclude-pattern>*\.phtml$</exclude-pattern>
</rule>