diff options
| author | 2024-10-15 10:56:33 +0200 | |
|---|---|---|
| committer | 2024-10-15 10:56:33 +0200 | |
| commit | b552d9f4bc900462bb44fa4c1731a9443ec3e476 (patch) | |
| tree | 2a9a72b71fe3c040f817f6eeba8b5868deb40442 /phpcs.xml | |
| parent | 93346bc3b3407fa547c138bcf33438ce508e5c38 (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.xml | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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> |
