PSR-12 coding standards compliance

Add phpcs/phpcbf tooling (composer require-dev, scripts, .phpcs.xml).
Auto-fix tabs to spaces across all PHP files (phpcbf).
Add missing doc comments for classes and constructors.
Add missing @param tags on public/private methods.
This commit is contained in:
Laurent Dinclaux
2026-02-10 22:52:30 +11:00
parent 05a7a2967f
commit b9e16f186d
8 changed files with 2679 additions and 2433 deletions

View File

@@ -38,6 +38,9 @@
"roundcube/plugin-installer": ">=0.3.0",
"ext-ctype": "*"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.0"
},
"conflict": {
"boressoft/ident_switch": "*",
"elm/identity_smtp": "*",
@@ -51,5 +54,14 @@
"min-version": "1.6",
"sql-dir": "SQL"
}
},
"scripts": {
"phpcs": "phpcs",
"phpcbf": "phpcbf"
},
"config": {
"allow-plugins": {
"roundcube/plugin-installer": true
}
}
}