Skip to content
Snippets Groups Projects
Commit 60a66673 authored by Benni Mack's avatar Benni Mack
Browse files

[TASK] Update coding styleguide to PER + additional configs

This change adapts our coding guidelines
and rules with PHP-CS-Fixer, allowing for
* PER (a.k.a. PSR-12)
* no_useless_nullsafe_operator (only use nullsafe if allowed)
* only single-spaces in arrays

This effectively adapts our code base
* use "public const" instead of "const" where visibility is not defined
* one whitespace between "declare()" and "namespace" declarations
* Use (float) instead of (double) casting
* Additional space in annonymous classes (PER)
* grouped "use" statements (classes, function, constants)
* only one space between items in array lists
* Use (bool) instead of (boolean)

Resolves: #98585
Releases: main, 11.5
Change-Id: Idb83729d0e4f9dc3c41e4dc5346dab77e6fbce84
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/76097


Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent 30d00e54
Branches
Tags
No related merge requests found
Showing
with 34 additions and 31 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment