[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/+/76100 Tested-by:core-ci <typo3@b13.com> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by: Christian Kuhn...
Showing
- Build/Scripts/composer/InstallerScripts.php 1 addition, 0 deletionsBuild/Scripts/composer/InstallerScripts.php
- Build/php-cs-fixer/config.php 3 additions, 2 deletionsBuild/php-cs-fixer/config.php
- typo3/sysext/adminpanel/Classes/Modules/Info/UserIntInformation.php 1 addition, 1 deletion...xt/adminpanel/Classes/Modules/Info/UserIntInformation.php
- typo3/sysext/backend/Classes/Clipboard/Clipboard.php 2 additions, 2 deletionstypo3/sysext/backend/Classes/Clipboard/Clipboard.php
- typo3/sysext/backend/Classes/Controller/HelpController.php 2 additions, 2 deletionstypo3/sysext/backend/Classes/Controller/HelpController.php
- typo3/sysext/backend/Classes/Controller/Page/LocalizationController.php 2 additions, 2 deletions...ackend/Classes/Controller/Page/LocalizationController.php
- typo3/sysext/backend/Classes/Form/Element/InputTextElement.php 1 addition, 1 deletion.../sysext/backend/Classes/Form/Element/InputTextElement.php
- typo3/sysext/backend/Classes/Form/Element/TextElement.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Form/Element/TextElement.php
- typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php 1 addition, 1 deletion...3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php
- typo3/sysext/backend/Classes/Routing/UriBuilder.php 3 additions, 3 deletionstypo3/sysext/backend/Classes/Routing/UriBuilder.php
- typo3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php 1 addition, 1 deletion...3/sysext/backend/Classes/Search/LiveSearch/LiveSearch.php
- typo3/sysext/backend/Classes/Search/LiveSearch/QueryParser.php 2 additions, 2 deletions.../sysext/backend/Classes/Search/LiveSearch/QueryParser.php
- typo3/sysext/backend/Classes/Template/Components/ButtonBar.php 2 additions, 2 deletions.../sysext/backend/Classes/Template/Components/ButtonBar.php
- typo3/sysext/backend/Classes/Toolbar/Enumeration/InformationStatus.php 6 additions, 6 deletions...backend/Classes/Toolbar/Enumeration/InformationStatus.php
- typo3/sysext/backend/Classes/Utility/BackendUtility.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Utility/BackendUtility.php
- typo3/sysext/backend/Configuration/Services.php 1 addition, 0 deletionstypo3/sysext/backend/Configuration/Services.php
- typo3/sysext/backend/Tests/Functional/Authentication/PasswordResetTest.php 1 addition, 1 deletion...end/Tests/Functional/Authentication/PasswordResetTest.php
- typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php 1 addition, 1 deletion...d/Tests/Unit/Form/FormDataProvider/TcaSelectItemsTest.php
- typo3/sysext/backend/Tests/Unit/Middleware/SiteResolverTest.php 1 addition, 1 deletion...sysext/backend/Tests/Unit/Middleware/SiteResolverTest.php
- typo3/sysext/belog/Classes/Domain/Model/Workspace.php 2 additions, 2 deletionstypo3/sysext/belog/Classes/Domain/Model/Workspace.php
Please register or sign in to comment