Review main Merged

76097[TASK] Update coding styleguide to PER + additional configs

Benni Mack CR +2 V +2 Expert +714 −703 updated 10/12/22, 10:42

Commit message

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)

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 191

Show 171 more files