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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user