[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:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Benni Mack <benni@typo3.org>
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/Page/LocalizationController.php 2 additions, 2 deletions...ackend/Classes/Controller/Page/LocalizationController.php
- typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php 1 addition, 1 deletion.../backend/Classes/Form/Container/InlineRecordContainer.php
- typo3/sysext/backend/Classes/Form/Element/NumberElement.php 1 addition, 1 deletiontypo3/sysext/backend/Classes/Form/Element/NumberElement.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/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/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/Functional/Middleware/BackendModuleValidatorTest.php 1 addition, 1 deletion...ests/Functional/Middleware/BackendModuleValidatorTest.php
- typo3/sysext/backend/Tests/Unit/ElementBrowser/ElementBrowserRegistryTest.php 2 additions, 2 deletions.../Tests/Unit/ElementBrowser/ElementBrowserRegistryTest.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/backend/Tests/Unit/Routing/PreviewUriBuilderTest.php 1 addition, 1 deletion...sext/backend/Tests/Unit/Routing/PreviewUriBuilderTest.php
Please register or sign in to comment