diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index 0b3cc298bb1df289a6e2cc457d164a170c9dfc44..43768fb78199ac0cdb9df5bb49d27a73215fa47c 100644 --- a/Build/phpstan/phpstan-baseline.neon +++ b/Build/phpstan/phpstan-baseline.neon @@ -2901,7 +2901,7 @@ parameters: path: ../../typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest.php - - message: "#^Property class@anonymous/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest\\.php\\:344\\:\\:\\$name is unused\\.$#" + message: "#^Property class@anonymous/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest\\.php\\:337\\:\\:\\$name is unused\\.$#" count: 1 path: ../../typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest.php diff --git a/composer.json b/composer.json index af0fc400c47cae78a67ce88908c5caf212bc7465..cd588f3456c0674b9c915bb797a00208541d1091 100644 --- a/composer.json +++ b/composer.json @@ -113,7 +113,7 @@ "composer/composer": "^2.2.22", "composer/package-versions-deprecated": "^1.11.99.4", "cweagans/composer-patches": "^1.7.1", - "friendsofphp/php-cs-fixer": "^3.26.1", + "friendsofphp/php-cs-fixer": "^3.35.1", "friendsoftypo3/phpstan-typo3": "^0.9.0", "jangregor/phpstan-prophecy": "^1.0", "php-webdriver/webdriver": "^1.12.0", diff --git a/composer.lock b/composer.lock index f2ae68be7b93326329bb43da155744bd9bef07af..6b39beeed988eea326f47d993e995b6dfa334c01 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "385fea3b246eff950eaee22577a2ee54", + "content-hash": "5d471b974acdd411bf42452990547621", "packages": [ { "name": "bacon/bacon-qr-code", @@ -6492,16 +6492,16 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.26.1", + "version": "v3.35.1", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "d023ba6684055f6ea1da1352d8a02baca0426983" + "reference": "ec1ccc264994b6764882669973ca435cf05bab08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d023ba6684055f6ea1da1352d8a02baca0426983", - "reference": "d023ba6684055f6ea1da1352d8a02baca0426983", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/ec1ccc264994b6764882669973ca435cf05bab08", + "reference": "ec1ccc264994b6764882669973ca435cf05bab08", "shasum": "" }, "require": { @@ -6534,8 +6534,6 @@ "phpspec/prophecy": "^1.16", "phpspec/prophecy-phpunit": "^2.0", "phpunit/phpunit": "^9.5", - "phpunitgoodpractices/polyfill": "^1.6", - "phpunitgoodpractices/traits": "^1.9.2", "symfony/phpunit-bridge": "^6.2.3", "symfony/yaml": "^5.4 || ^6.0" }, @@ -6575,7 +6573,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.26.1" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.35.1" }, "funding": [ { @@ -6583,7 +6581,7 @@ "type": "github" } ], - "time": "2023-09-08T19:09:07+00:00" + "time": "2023-10-12T13:47:26+00:00" }, { "name": "friendsoftypo3/phpstan-typo3", diff --git a/typo3/sysext/adminpanel/Classes/Exceptions/InvalidConfigurationException.php b/typo3/sysext/adminpanel/Classes/Exceptions/InvalidConfigurationException.php index b47b9b5d0092e350102062b07f809136df246098..4b915763b3e46f54f540177526308b966fc79182 100644 --- a/typo3/sysext/adminpanel/Classes/Exceptions/InvalidConfigurationException.php +++ b/typo3/sysext/adminpanel/Classes/Exceptions/InvalidConfigurationException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Adminpanel\Exceptions; /** * Exception class for invalid admin panel configuration */ -class InvalidConfigurationException extends \RuntimeException -{ -} +class InvalidConfigurationException extends \RuntimeException {} diff --git a/typo3/sysext/adminpanel/Classes/ModuleApi/ModuleData.php b/typo3/sysext/adminpanel/Classes/ModuleApi/ModuleData.php index 5ebf56190d666b3fa9c9ad15331a0ffe3a0152d2..90b16081d635d48137bf4d183f4314ff9e033799 100644 --- a/typo3/sysext/adminpanel/Classes/ModuleApi/ModuleData.php +++ b/typo3/sysext/adminpanel/Classes/ModuleApi/ModuleData.php @@ -23,6 +23,4 @@ namespace TYPO3\CMS\Adminpanel\ModuleApi; * * It's a separate class to add semantic meaning to its' usage */ -class ModuleData extends \ArrayObject -{ -} +class ModuleData extends \ArrayObject {} diff --git a/typo3/sysext/adminpanel/Tests/Unit/Fixtures/MainModuleFixture.php b/typo3/sysext/adminpanel/Tests/Unit/Fixtures/MainModuleFixture.php index cfcf9763676ffbaa8742791b4e514c1cea42bee9..5468540ac15cd7495b8e2745ed17fb8d3b7fd73a 100644 --- a/typo3/sysext/adminpanel/Tests/Unit/Fixtures/MainModuleFixture.php +++ b/typo3/sysext/adminpanel/Tests/Unit/Fixtures/MainModuleFixture.php @@ -108,9 +108,7 @@ class MainModuleFixture implements * @param array $configurationToSave * @param ServerRequestInterface $request */ - public function onSubmit(array $configurationToSave, ServerRequestInterface $request): void - { - } + public function onSubmit(array $configurationToSave, ServerRequestInterface $request): void {} /** * Returns a string array with javascript files that will be rendered after the module @@ -137,9 +135,7 @@ class MainModuleFixture implements * * @param ModuleInterface[] $subModules */ - public function setSubModules(array $subModules): void - { - } + public function setSubModules(array $subModules): void {} /** * Get SubModules for current module diff --git a/typo3/sysext/adminpanel/Tests/Unit/Fixtures/SubModuleFixture.php b/typo3/sysext/adminpanel/Tests/Unit/Fixtures/SubModuleFixture.php index 769647a760f02534fa4c84f8c09d13a2cecc6b10..b3cbcd4d079041cf146a4aa215ae3f23dfff2485 100644 --- a/typo3/sysext/adminpanel/Tests/Unit/Fixtures/SubModuleFixture.php +++ b/typo3/sysext/adminpanel/Tests/Unit/Fixtures/SubModuleFixture.php @@ -77,9 +77,7 @@ class SubModuleFixture implements ModuleInterface, ContentProviderInterface, Mod * @param array $configurationToSave * @param ServerRequestInterface $request */ - public function onSubmit(array $configurationToSave, ServerRequestInterface $request): void - { - } + public function onSubmit(array $configurationToSave, ServerRequestInterface $request): void {} /** * @param ServerRequestInterface $request diff --git a/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php b/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php index 3acd46803d9b34c5cccd9e84f864e786d20bce8f..c5bc3c4481ce0d5689b4c30a7ab0afbd07777aff 100644 --- a/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php +++ b/typo3/sysext/backend/Classes/Controller/ColumnSelectorController.php @@ -186,7 +186,7 @@ class ColumnSelectorController } // Sort standard columns by their resolved label - usort($columns, static fn ($a, $b) => $a['label'] <=> $b['label']); + usort($columns, static fn($a, $b) => $a['label'] <=> $b['label']); // Disabled columns go first, followed by standard columns // and special columns, which do not have a label. @@ -204,7 +204,7 @@ class ColumnSelectorController // Get all sys_file fields expect excluded ones $fileFields = array_filter( BackendUtility::getAllowedFieldsForTable('sys_file'), - static fn (string $field): bool => !in_array($field, self::EXCLUDE_FILE_FIELDS, true) + static fn(string $field): bool => !in_array($field, self::EXCLUDE_FILE_FIELDS, true) ); // Always add crdate and tstamp fields for files @@ -216,13 +216,13 @@ class ColumnSelectorController // Get all sys_file_metadata fields expect excluded ones $fileMetaDataFields = array_filter( BackendUtility::getAllowedFieldsForTable('sys_file_metadata'), - static fn (string $field): bool => !in_array($field, $excludeFields, true) + static fn(string $field): bool => !in_array($field, $excludeFields, true) ); // Merge sys_file and sys_file_metadata fields together, while adding the table name as prefix return array_merge( - array_map(static fn (string $value): string => 'sys_file|' . $value, $fileFields), - array_map(static fn (string $value): string => 'sys_file_metadata|' . $value, $fileMetaDataFields), + array_map(static fn(string $value): string => 'sys_file|' . $value, $fileFields), + array_map(static fn(string $value): string => 'sys_file_metadata|' . $value, $fileMetaDataFields), ); } diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index 4e9da6d962fb3769e6a35374748e5883c3a34132..70f327c1e853f072b2f412c8739a11adec44d037 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -2345,7 +2345,7 @@ class EditDocumentController // Fetch the current translations of this page, to only show the ones where there is a page translation $allLanguages = array_filter( GeneralUtility::makeInstance(TranslationConfigurationProvider::class)->getSystemLanguages($pageId), - static fn ($language) => (int)$language['uid'] !== -1 + static fn($language) => (int)$language['uid'] !== -1 ); if ($table !== 'pages' && $id > 0) { $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages'); diff --git a/typo3/sysext/backend/Classes/Controller/Page/TreeController.php b/typo3/sysext/backend/Classes/Controller/Page/TreeController.php index bf3e79d6b83b3462430fd27188796697f4e28b79..52a28104dce4556a1b06401ebd115353024c29c3 100644 --- a/typo3/sysext/backend/Classes/Controller/Page/TreeController.php +++ b/typo3/sysext/backend/Classes/Controller/Page/TreeController.php @@ -533,7 +533,7 @@ class TreeController //watch out for deleted pages returned as webmount $mountPoints = array_map('intval', $backendUser->returnWebmounts()); $mountPoints = array_unique($mountPoints); - $mountPoints = array_filter($mountPoints, fn ($id) => !in_array($id, $this->hiddenRecords, true)); + $mountPoints = array_filter($mountPoints, fn($id) => !in_array($id, $this->hiddenRecords, true)); // Switch to multiple-entryPoint-mode if the rootPage is to be mounted. // (other mounts would appear duplicated in the pid = 0 tree otherwise) @@ -558,7 +558,7 @@ class TreeController $entryPointRecords[] = $rootRecord; } else { - $entryPointIds = array_filter($entryPointIds, fn ($id) => !in_array($id, $this->hiddenRecords, true)); + $entryPointIds = array_filter($entryPointIds, fn($id) => !in_array($id, $this->hiddenRecords, true)); $this->calculateBackgroundColors($entryPointIds); foreach ($entryPointIds as $k => $entryPointId) { if ($entryPointId === 0) { diff --git a/typo3/sysext/backend/Classes/Exception.php b/typo3/sysext/backend/Classes/Exception.php index e9531b460a15c73db12942ce2b2fb38af749eee6..c609c2ffc4adf90426a681e84d71c77361d03621 100644 --- a/typo3/sysext/backend/Classes/Exception.php +++ b/typo3/sysext/backend/Classes/Exception.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception as CoreException; /** * Generic Backend exception */ -class Exception extends CoreException -{ -} +class Exception extends CoreException {} diff --git a/typo3/sysext/backend/Classes/Exception/BackendAccessDeniedException.php b/typo3/sysext/backend/Classes/Exception/BackendAccessDeniedException.php index 4795bf66fdb62c7a6e9b4358a979c5b46354eb51..0f75ea9b3d5cb4cbfd2a38326386c15098b65b06 100644 --- a/typo3/sysext/backend/Classes/Exception/BackendAccessDeniedException.php +++ b/typo3/sysext/backend/Classes/Exception/BackendAccessDeniedException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Backend\Exception; use TYPO3\CMS\Core\Error\Http\AbstractClientErrorException; -class BackendAccessDeniedException extends AbstractClientErrorException -{ -} +class BackendAccessDeniedException extends AbstractClientErrorException {} diff --git a/typo3/sysext/backend/Classes/Exception/BackendLockedException.php b/typo3/sysext/backend/Classes/Exception/BackendLockedException.php index 7843e7a616b3aca2c6223d3f55597e636b3aa69d..fcbba1c22ad95f0b7653554da9821d4cbbfb2aba 100644 --- a/typo3/sysext/backend/Classes/Exception/BackendLockedException.php +++ b/typo3/sysext/backend/Classes/Exception/BackendLockedException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Backend\Exception; use TYPO3\CMS\Core\Error\Http\AbstractClientErrorException; -class BackendLockedException extends AbstractClientErrorException -{ -} +class BackendLockedException extends AbstractClientErrorException {} diff --git a/typo3/sysext/backend/Classes/Exception/SiteValidationErrorException.php b/typo3/sysext/backend/Classes/Exception/SiteValidationErrorException.php index f34fb3bbeb5d03df269ff7c7d50272603b858be8..73acaed99edbcf245e63143e6ebc3bc5a7cbfb8e 100644 --- a/typo3/sysext/backend/Classes/Exception/SiteValidationErrorException.php +++ b/typo3/sysext/backend/Classes/Exception/SiteValidationErrorException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Backend\Exception; /** * Exception thrown if site configuration for a page is not found */ -class SiteValidationErrorException extends Exception -{ -} +class SiteValidationErrorException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php b/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php index a2b8c45f81acfe9fdd9012e33a1b7cfa47845ef2..aa7e4c279eac133e37a24d3d03f1d6b5845bf129 100644 --- a/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php +++ b/typo3/sysext/backend/Classes/Form/Element/SelectSingleElement.php @@ -109,7 +109,7 @@ class SelectSingleElement extends AbstractFormElement ) { $uniqueIds[] = $this->data['inlineParentUid']; } - $uniqueIds = array_map(static fn ($item) => (int)$item, $uniqueIds); + $uniqueIds = array_map(static fn($item) => (int)$item, $uniqueIds); } // Initialization: diff --git a/typo3/sysext/backend/Classes/Form/Exception.php b/typo3/sysext/backend/Classes/Form/Exception.php index cde029db52044393ba08aae1e934a093de42efd8..e1d61076cb3d15e382f25cee277907a039442d2c 100644 --- a/typo3/sysext/backend/Classes/Form/Exception.php +++ b/typo3/sysext/backend/Classes/Form/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form; /** * Generic backend form exception */ -class Exception extends \TYPO3\CMS\Backend\Exception -{ -} +class Exception extends \TYPO3\CMS\Backend\Exception {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedContentEditException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedContentEditException.php index 2d6d0cdac9b24a111cfbfb4efe2494e9e1a1d6f3..f1aa58de6e8fd132f5056c28a54d28749454aaea 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedContentEditException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedContentEditException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form\Exception; /** * User is not allowed to edit this content elements */ -class AccessDeniedContentEditException extends AccessDeniedException -{ -} +class AccessDeniedContentEditException extends AccessDeniedException {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedEditInternalsException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedEditInternalsException.php index 39c0f847168044fddd22f5af789cb7309884211c..49bac0c847dcddbeaf320fb3f85514fe99ec2b54 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedEditInternalsException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedEditInternalsException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form\Exception; /** * User check did not survive "recordEditAccessInternals" to edit record */ -class AccessDeniedEditInternalsException extends AccessDeniedException -{ -} +class AccessDeniedEditInternalsException extends AccessDeniedException {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedException.php index c7f09ec1ef5e4b01018554ef63cfa28db463077c..5e587003b7d3d1dd3a0fbd33e2a83ef96b611eec 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Backend\Form\Exception; * This indicated a recoverable error that should be changed to a user message. * This abstract exception is extended by more fine grained exceptions. */ -abstract class AccessDeniedException extends Exception -{ -} +abstract class AccessDeniedException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedHookException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedHookException.php index 32d7b6d6ca480776101d5d9bceb82b19c694bc9c..bdfc381280b8acec715418e9a11985062205f1bd 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedHookException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedHookException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form\Exception; /** * User access to record was denied by a makeEditForm_accessCheck hook */ -class AccessDeniedHookException extends AccessDeniedException -{ -} +class AccessDeniedHookException extends AccessDeniedException {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageEditException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageEditException.php index 219959cc2df57e9c95a3646f6fb69a683bcfb934..b8282f24e270395d4a56f97578a66dda22c1967e 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageEditException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageEditException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form\Exception; /** * User is not allowed to edit this page */ -class AccessDeniedPageEditException extends AccessDeniedException -{ -} +class AccessDeniedPageEditException extends AccessDeniedException {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageNewException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageNewException.php index 71aefeeca6bf7f7257e90d91ddce1a0d1b73df74..a90dc04ca77f0ea986c2734d58f00fa39c0f870e 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageNewException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedPageNewException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form\Exception; /** * User is not allowed to add a new page */ -class AccessDeniedPageNewException extends AccessDeniedException -{ -} +class AccessDeniedPageNewException extends AccessDeniedException {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedRootNodeException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedRootNodeException.php index 014c9bc76f4dc32984672f348b37ba8c17e7d168..067f1496c46364d8fd4cce227ba3879e4510771a 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedRootNodeException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedRootNodeException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form\Exception; /** * User has no sufficient rights to modify a row that is located at root node */ -class AccessDeniedRootNodeException extends AccessDeniedException -{ -} +class AccessDeniedRootNodeException extends AccessDeniedException {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedTableModifyException.php b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedTableModifyException.php index 56b5265eb63271e4d3847ae5540142a8ea1eb3c1..5b09d87bd5250858a0c8f9c019c8731ed80e5820 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedTableModifyException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/AccessDeniedTableModifyException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Form\Exception; /** * User has no modify table access to a table record */ -class AccessDeniedTableModifyException extends AccessDeniedException -{ -} +class AccessDeniedTableModifyException extends AccessDeniedException {} diff --git a/typo3/sysext/backend/Classes/Form/Exception/DatabaseDefaultLanguageException.php b/typo3/sysext/backend/Classes/Form/Exception/DatabaseDefaultLanguageException.php index 3c3ca10aaef911e1b367dcfa1939bc1f268fc112..767b8361973adcc16ba661357a0fd97006f746af 100644 --- a/typo3/sysext/backend/Classes/Form/Exception/DatabaseDefaultLanguageException.php +++ b/typo3/sysext/backend/Classes/Form/Exception/DatabaseDefaultLanguageException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Backend\Form\Exception; /** * Thrown if a language overlay record is handled and no default language record is found. */ -class DatabaseDefaultLanguageException extends Exception -{ -} +class DatabaseDefaultLanguageException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaCategory.php b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaCategory.php index 85094ec389a1f2b4b03e38a660554d9ca321a4d0..2603837e462f49476f681392c3b7e18ced3154a5 100644 --- a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaCategory.php +++ b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaCategory.php @@ -98,7 +98,7 @@ class TcaCategory extends AbstractItemProvider implements FormDataProviderInterf // Finally, the only data needed for the tree code are the valid uids of the possible records $uidListOfAllDynamicItems = array_map('intval', array_filter( array_values(array_column($dynamicItems, 1)), - static fn ($uid) => (int)$uid > 0 + static fn($uid) => (int)$uid > 0 )); $fullRowsOfDynamicItems = []; foreach ($dynamicItems as $item) { diff --git a/typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php b/typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php index 97787e30d15eb6077a9e01ab7e546a28d856e008..64f0c1550bd77c84535d817071b1dc1ab7748383 100644 --- a/typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php +++ b/typo3/sysext/backend/Classes/Form/Wizard/SuggestWizardDefaultReceiver.php @@ -326,9 +326,7 @@ class SuggestWizardDefaultReceiver * * @param array $row */ - protected function manipulateRecord(&$row) - { - } + protected function manipulateRecord(&$row) {} /** * Selects whether the logged in Backend User is allowed to read a specific record diff --git a/typo3/sysext/backend/Classes/Routing/Exception/InvalidRequestTokenException.php b/typo3/sysext/backend/Classes/Routing/Exception/InvalidRequestTokenException.php index 4a8d0e381fef08f920d9159d13e4f0a3e773c05b..bfce79102d5d348c69da8358d03c3c1a427853ad 100644 --- a/typo3/sysext/backend/Classes/Routing/Exception/InvalidRequestTokenException.php +++ b/typo3/sysext/backend/Classes/Routing/Exception/InvalidRequestTokenException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when request token was invalid */ -class InvalidRequestTokenException extends Exception -{ -} +class InvalidRequestTokenException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Routing/Exception/MethodNotAllowedException.php b/typo3/sysext/backend/Classes/Routing/Exception/MethodNotAllowedException.php index 3ffd71894de2fa1ae9c5416dc0ffee28bdeb2aad..36095b30169bc5df9a90fd3d1cb11c828cfe27ae 100644 --- a/typo3/sysext/backend/Classes/Routing/Exception/MethodNotAllowedException.php +++ b/typo3/sysext/backend/Classes/Routing/Exception/MethodNotAllowedException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when a resource was found but the methods did not match. */ -class MethodNotAllowedException extends Exception -{ -} +class MethodNotAllowedException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Routing/Exception/MissingRequestTokenException.php b/typo3/sysext/backend/Classes/Routing/Exception/MissingRequestTokenException.php index dd087f497b88d1093ec19bf1c4cc4b971932d8db..2bc1e51b3dd4f783ce60e229105d9de6083e56ff 100644 --- a/typo3/sysext/backend/Classes/Routing/Exception/MissingRequestTokenException.php +++ b/typo3/sysext/backend/Classes/Routing/Exception/MissingRequestTokenException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when request token was missing. */ -class MissingRequestTokenException extends Exception -{ -} +class MissingRequestTokenException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Routing/Exception/ResourceNotFoundException.php b/typo3/sysext/backend/Classes/Routing/Exception/ResourceNotFoundException.php index 80fdf4182fa4180d2d16dc683f984297ddec930a..45e19e87c281b4a6366e470812280786be08c42c 100644 --- a/typo3/sysext/backend/Classes/Routing/Exception/ResourceNotFoundException.php +++ b/typo3/sysext/backend/Classes/Routing/Exception/ResourceNotFoundException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when a resource was not found. */ -class ResourceNotFoundException extends Exception -{ -} +class ResourceNotFoundException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Routing/Exception/RouteNotFoundException.php b/typo3/sysext/backend/Classes/Routing/Exception/RouteNotFoundException.php index 39f6b63dda83cd8ea218e311372b171724654f29..ed347dd73beed1dcb3cd4a0c8ca65fddf33a3586 100644 --- a/typo3/sysext/backend/Classes/Routing/Exception/RouteNotFoundException.php +++ b/typo3/sysext/backend/Classes/Routing/Exception/RouteNotFoundException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Backend\Routing\Exception; /** * Exception thrown when a route does not exist */ -class RouteNotFoundException extends \TYPO3\CMS\Core\Routing\RouteNotFoundException -{ -} +class RouteNotFoundException extends \TYPO3\CMS\Core\Routing\RouteNotFoundException {} diff --git a/typo3/sysext/backend/Classes/Routing/Exception/RouteTypeNotAllowedException.php b/typo3/sysext/backend/Classes/Routing/Exception/RouteTypeNotAllowedException.php index c8cd10c07e5b3bcb301b0e16de525d51cf385e39..67f29572a5fbaf716ebfc2fa675ea2b50535e980 100644 --- a/typo3/sysext/backend/Classes/Routing/Exception/RouteTypeNotAllowedException.php +++ b/typo3/sysext/backend/Classes/Routing/Exception/RouteTypeNotAllowedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when a resource was found but the type (e.g. AJAX routes) did not match. */ -class RouteTypeNotAllowedException extends Exception -{ -} +class RouteTypeNotAllowedException extends Exception {} diff --git a/typo3/sysext/backend/Classes/Tree/View/AbstractContentPagePositionMap.php b/typo3/sysext/backend/Classes/Tree/View/AbstractContentPagePositionMap.php index e65bc28016033f76b05f90e05d2f1a175dfa761a..e6ed6e7b16b83e8240cfc93bdf674aad00f06481 100644 --- a/typo3/sysext/backend/Classes/Tree/View/AbstractContentPagePositionMap.php +++ b/typo3/sysext/backend/Classes/Tree/View/AbstractContentPagePositionMap.php @@ -215,7 +215,7 @@ abstract class AbstractContentPagePositionMap if (!empty($lines[$columnKey])) { $cellContent .= ' <ul class="list-unstyled"> - ' . implode(LF, array_map(static fn (string $line): string => '<li>' . $line . '</li>', $lines[$columnKey])) . ' + ' . implode(LF, array_map(static fn(string $line): string => '<li>' . $line . '</li>', $lines[$columnKey])) . ' </ul>'; } } @@ -255,7 +255,7 @@ abstract class AbstractContentPagePositionMap if (!empty($lines[$tcaColumnConfiguration['colPos']])) { $cellContent .= ' <ul class="list-unstyled"> - ' . implode(LF, array_map(static fn (string $line): string => '<li>' . $line . '</li>', $lines[$tcaColumnConfiguration['colPos']])) . ' + ' . implode(LF, array_map(static fn(string $line): string => '<li>' . $line . '</li>', $lines[$tcaColumnConfiguration['colPos']])) . ' </ul>'; } } diff --git a/typo3/sysext/backend/Classes/View/Event/AfterSectionMarkupGeneratedEvent.php b/typo3/sysext/backend/Classes/View/Event/AfterSectionMarkupGeneratedEvent.php index afd9991c845e61b8a046ae31ad201b00272d47b8..3e75c9c1b709d7caeea53bf61e5fab8d94534bf9 100644 --- a/typo3/sysext/backend/Classes/View/Event/AfterSectionMarkupGeneratedEvent.php +++ b/typo3/sysext/backend/Classes/View/Event/AfterSectionMarkupGeneratedEvent.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Backend\View\Event; * This event can be triggered to display content in any colpos after * the last content element. */ -final class AfterSectionMarkupGeneratedEvent extends AbstractSectionMarkupGeneratedEvent -{ -} +final class AfterSectionMarkupGeneratedEvent extends AbstractSectionMarkupGeneratedEvent {} diff --git a/typo3/sysext/backend/Classes/View/Event/BeforeSectionMarkupGeneratedEvent.php b/typo3/sysext/backend/Classes/View/Event/BeforeSectionMarkupGeneratedEvent.php index 1cd876bad40e8d6680ad3fcb9248e84ccc5c6b26..51543d368662abb658e7fb22b491cb1fe6bfb910 100644 --- a/typo3/sysext/backend/Classes/View/Event/BeforeSectionMarkupGeneratedEvent.php +++ b/typo3/sysext/backend/Classes/View/Event/BeforeSectionMarkupGeneratedEvent.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Backend\View\Event; * This event can be triggered to display content in any colPos * before the first content element. */ -final class BeforeSectionMarkupGeneratedEvent extends AbstractSectionMarkupGeneratedEvent -{ -} +final class BeforeSectionMarkupGeneratedEvent extends AbstractSectionMarkupGeneratedEvent {} diff --git a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/BarElement.php b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/BarElement.php index 32dde7d93f7ae9f269c4ff644c713bd0f02bf1a3..6f67aacdd16c31501d5159485c6f9ef5129b1b30 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/BarElement.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/BarElement.php @@ -9,9 +9,7 @@ use TYPO3\CMS\Backend\Form\NodeInterface; class BarElement implements NodeInterface { - public function __construct(NodeFactory $nodeFactory, array $data) - { - } + public function __construct(NodeFactory $nodeFactory, array $data) {} public function render(): array { diff --git a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/FooElement.php b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/FooElement.php index dcf06fa6f358c377cfb98d6a33405ed6c9a173a5..7df8fe047129ccb4518e13cf06bda7cdc5965ec3 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/FooElement.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeElements/FooElement.php @@ -9,9 +9,7 @@ use TYPO3\CMS\Backend\Form\NodeInterface; class FooElement implements NodeInterface { - public function __construct(NodeFactory $nodeFactory, array $data) - { - } + public function __construct(NodeFactory $nodeFactory, array $data) {} public function render(): array { diff --git a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/BarResolver.php b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/BarResolver.php index 54b7395b8221b209a6655ebb3978a0287dcecb72..bc66b4a05c50aa3b80443dbd00f11ae2297ebc9c 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/BarResolver.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/BarResolver.php @@ -10,9 +10,7 @@ use TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeElements\BarEleme class BarResolver implements NodeResolverInterface { - public function __construct(NodeFactory $nodeFactory, array $data) - { - } + public function __construct(NodeFactory $nodeFactory, array $data) {} public function resolve(): string { diff --git a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/FooResolver.php b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/FooResolver.php index 038ffeb474f9ac8bd01fc688fd6202e0f80d8560..c883e13628578561ba9ec58a248c508c3f0368d7 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/FooResolver.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/FooResolver.php @@ -10,9 +10,7 @@ use TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeElements\FooEleme class FooResolver implements NodeResolverInterface { - public function __construct(NodeFactory $nodeFactory, array $data) - { - } + public function __construct(NodeFactory $nodeFactory, array $data) {} public function resolve(): string { diff --git a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/InvalidNodeResolverClass.php b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/InvalidNodeResolverClass.php index 4d90e47d88f4ae0731b4f7e167b8b06285b548fc..73bcd28fd7724471e0af9981e1f4442ddf59a597 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/InvalidNodeResolverClass.php +++ b/typo3/sysext/backend/Tests/Unit/Form/Fixtures/NodeFactory/NodeResolvers/InvalidNodeResolverClass.php @@ -4,6 +4,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeResolvers; -class InvalidNodeResolverClass -{ -} +class InvalidNodeResolverClass {} diff --git a/typo3/sysext/backend/Tests/Unit/Http/Fixtures/RouteDispatcherClassWithoutInvokeFixture.php b/typo3/sysext/backend/Tests/Unit/Http/Fixtures/RouteDispatcherClassWithoutInvokeFixture.php index 0473d2ef42c202f62317259f6bc11484b4a6070e..7942ac6e393ece1c3c1b83ece69b16d27f891954 100644 --- a/typo3/sysext/backend/Tests/Unit/Http/Fixtures/RouteDispatcherClassWithoutInvokeFixture.php +++ b/typo3/sysext/backend/Tests/Unit/Http/Fixtures/RouteDispatcherClassWithoutInvokeFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Backend\Tests\Unit\Http\Fixtures; /** * Test fixture */ -class RouteDispatcherClassWithoutInvokeFixture -{ -} +class RouteDispatcherClassWithoutInvokeFixture {} diff --git a/typo3/sysext/beuser/Classes/Exception.php b/typo3/sysext/beuser/Classes/Exception.php index 432d9e546655ac9bb4a6668af6e9fd78e33475e6..4be47bf4fabfa652d66634d0cbb36bce311aa688 100644 --- a/typo3/sysext/beuser/Classes/Exception.php +++ b/typo3/sysext/beuser/Classes/Exception.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Core\Exception as CoreException; * Generic Beuser exception * @internal */ -class Exception extends CoreException -{ -} +class Exception extends CoreException {} diff --git a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php index dd111504a0b2dbd2fb84d422600e9eecb93851d6..23ea562f8503dbf5e31d1c9c8f6961c003c1e3f3 100644 --- a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php +++ b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php @@ -1271,9 +1271,7 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface * @param int|string $recuid Special field used by tce_main.php. These ($tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.) * @param int|string $recpid Special field used by tce_main.php. These ($tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.) */ - public function writelog($type, $action, $error, $details_nr, $details, $data, $tablename, $recuid, $recpid) - { - } + public function writelog($type, $action, $error, $details_nr, $details, $data, $tablename, $recuid, $recpid) {} /** * Raw initialization of the be_user with uid=$uid diff --git a/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php b/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php index 42c31e45a51e6843319ab87e617f1a7bd48cc5fe..08febfc7ec6cda9a0bc90f2c8f0d3275fdded041 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/ApcuBackend.php @@ -290,7 +290,5 @@ class ApcuBackend extends AbstractBackend implements TaggableBackendInterface /** * Does nothing, as APCu does GC itself */ - public function collectGarbage() - { - } + public function collectGarbage() {} } diff --git a/typo3/sysext/core/Classes/Cache/Backend/MemcachedBackend.php b/typo3/sysext/core/Classes/Cache/Backend/MemcachedBackend.php index b2aa5b394a0e8ca1803b69a8ab8d01be7244f2e3..d8f24f9d88b45b1dc85e178061e4c8fc906985d5 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/MemcachedBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/MemcachedBackend.php @@ -443,7 +443,5 @@ class MemcachedBackend extends AbstractBackend implements TaggableBackendInterfa /** * Does nothing, as memcached does GC itself */ - public function collectGarbage() - { - } + public function collectGarbage() {} } diff --git a/typo3/sysext/core/Classes/Cache/Backend/NullBackend.php b/typo3/sysext/core/Classes/Cache/Backend/NullBackend.php index c45d5dff46edae91b0bfc1e445385fc78c96fc6f..e815621ed7f7b202ef30f298b373ac9160ca0a39 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/NullBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/NullBackend.php @@ -28,18 +28,14 @@ class NullBackend extends AbstractBackend implements PhpCapableBackendInterface, * @param array $tags ignored * @param int $lifetime ignored */ - public function set($entryIdentifier, $data, array $tags = [], $lifetime = null) - { - } + public function set($entryIdentifier, $data, array $tags = [], $lifetime = null) {} /** * Acts as if it would enable data compression * * @param bool $compression ignored */ - public function setCompression($compression) - { - } + public function setCompression($compression) {} /** * Returns False @@ -88,25 +84,19 @@ class NullBackend extends AbstractBackend implements PhpCapableBackendInterface, /** * Does nothing */ - public function flush() - { - } + public function flush() {} /** * Does nothing * * @param string $tag ignored */ - public function flushByTag($tag) - { - } + public function flushByTag($tag) {} /** * Does nothing */ - public function collectGarbage() - { - } + public function collectGarbage() {} /** * Does nothing diff --git a/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php b/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php index 17eb78981dfa3287d1c9d939a990854ade5c3be2..b07ebf36742df7e07d2d557d646c9f22c3990a44 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/SimpleFileBackend.php @@ -334,9 +334,7 @@ class SimpleFileBackend extends AbstractBackend implements PhpCapableBackendInte /** * Not necessary */ - public function collectGarbage() - { - } + public function collectGarbage() {} /** * Tries to find the cache entry for the specified identifier. diff --git a/typo3/sysext/core/Classes/Cache/Backend/TransientBackendInterface.php b/typo3/sysext/core/Classes/Cache/Backend/TransientBackendInterface.php index 751fd9ccd18a7c61c6a3cd8c0acc610da8d88237..990d51cc53a1b990cc7fc04ebb71b957402f8a6f 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/TransientBackendInterface.php +++ b/typo3/sysext/core/Classes/Cache/Backend/TransientBackendInterface.php @@ -29,6 +29,4 @@ namespace TYPO3\CMS\Core\Cache\Backend; * the value directly without serializing it to a string, and does * not attempt to unserialize the string on every get() request. */ -interface TransientBackendInterface extends BackendInterface -{ -} +interface TransientBackendInterface extends BackendInterface {} diff --git a/typo3/sysext/core/Classes/Cache/Backend/TransientMemoryBackend.php b/typo3/sysext/core/Classes/Cache/Backend/TransientMemoryBackend.php index 49fa403acf4ad706323267ead12e0341c5a16aa3..769ae6cdf3cddac6405beb64f40893c132cf3833 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/TransientMemoryBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/TransientMemoryBackend.php @@ -135,7 +135,5 @@ class TransientMemoryBackend extends AbstractBackend implements TaggableBackendI /** * Does nothing */ - public function collectGarbage() - { - } + public function collectGarbage() {} } diff --git a/typo3/sysext/core/Classes/Cache/Backend/WincacheBackend.php b/typo3/sysext/core/Classes/Cache/Backend/WincacheBackend.php index 025c105c000076d1ace004e37f9783a734174052..cf942f2974f8f88a74db823d39baa914f718bdcb 100644 --- a/typo3/sysext/core/Classes/Cache/Backend/WincacheBackend.php +++ b/typo3/sysext/core/Classes/Cache/Backend/WincacheBackend.php @@ -257,7 +257,5 @@ class WincacheBackend extends AbstractBackend implements TaggableBackendInterfac /** * Does nothing, as wincache does GC itself */ - public function collectGarbage() - { - } + public function collectGarbage() {} } diff --git a/typo3/sysext/core/Classes/Cache/Exception.php b/typo3/sysext/core/Classes/Cache/Exception.php index 1a5505860f38d5d4a3cc617b0024ae137ac6f976..a41f9bcc2684494774ef26e8e547f613fbf363bb 100644 --- a/typo3/sysext/core/Classes/Cache/Exception.php +++ b/typo3/sysext/core/Classes/Cache/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Cache; /** * A generic Cache exception */ -class Exception extends \Exception -{ -} +class Exception extends \Exception {} diff --git a/typo3/sysext/core/Classes/Cache/Exception/DuplicateIdentifierException.php b/typo3/sysext/core/Classes/Cache/Exception/DuplicateIdentifierException.php index a98f53c31e94a543573e3d0838368f0645120733..68bfac05bd60fb0ed1ad6690275756c6a35774b0 100644 --- a/typo3/sysext/core/Classes/Cache/Exception/DuplicateIdentifierException.php +++ b/typo3/sysext/core/Classes/Cache/Exception/DuplicateIdentifierException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Cache\Exception; /** * A "Duplicate Identifier" exception */ -class DuplicateIdentifierException extends Exception -{ -} +class DuplicateIdentifierException extends Exception {} diff --git a/typo3/sysext/core/Classes/Cache/Exception/InvalidBackendException.php b/typo3/sysext/core/Classes/Cache/Exception/InvalidBackendException.php index a342bfd4c4218e8556299d361712476b46349212..b1056b5eb3ff3b5ba1d65f00c6a353baac6f6333 100644 --- a/typo3/sysext/core/Classes/Cache/Exception/InvalidBackendException.php +++ b/typo3/sysext/core/Classes/Cache/Exception/InvalidBackendException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Cache\Exception; /** * An "Invalid Backend" exception */ -class InvalidBackendException extends Exception -{ -} +class InvalidBackendException extends Exception {} diff --git a/typo3/sysext/core/Classes/Cache/Exception/InvalidCacheException.php b/typo3/sysext/core/Classes/Cache/Exception/InvalidCacheException.php index 3603171a1ad74373c0e2ef1bbc6f0a2724e0a9ca..ab330ce3cf92d68140e2151e5253903bec2a370b 100644 --- a/typo3/sysext/core/Classes/Cache/Exception/InvalidCacheException.php +++ b/typo3/sysext/core/Classes/Cache/Exception/InvalidCacheException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Cache\Exception; /** * An "Invalid Cache" exception */ -class InvalidCacheException extends Exception -{ -} +class InvalidCacheException extends Exception {} diff --git a/typo3/sysext/core/Classes/Cache/Exception/InvalidDataException.php b/typo3/sysext/core/Classes/Cache/Exception/InvalidDataException.php index 8744a5dc9eb7b59f4c0a89dce5e8c8f2059cfbf5..7dece2602ef6851509ade1c5d0d2164ba3df0611 100644 --- a/typo3/sysext/core/Classes/Cache/Exception/InvalidDataException.php +++ b/typo3/sysext/core/Classes/Cache/Exception/InvalidDataException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Cache\Exception; /** * An "Invalid Data" exception */ -class InvalidDataException extends Exception -{ -} +class InvalidDataException extends Exception {} diff --git a/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheException.php b/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheException.php index 23252d9d5d06e983ef2250cdbcc2a6e001d1aad2..3ac50fab40ce4bfba9077cbc2ae53e79e0b9dc21 100644 --- a/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheException.php +++ b/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Cache\Exception; /** * A "No Such Cache" exception */ -class NoSuchCacheException extends Exception -{ -} +class NoSuchCacheException extends Exception {} diff --git a/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheGroupException.php b/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheGroupException.php index 03907f151a6d718d94fac279e13bb83642618871..d9c14a305be613d70ae0fe4b8d70b25d1f0f7a65 100644 --- a/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheGroupException.php +++ b/typo3/sysext/core/Classes/Cache/Exception/NoSuchCacheGroupException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Cache\Exception; /** * A "No Such Cache Group" exception */ -class NoSuchCacheGroupException extends Exception -{ -} +class NoSuchCacheGroupException extends Exception {} diff --git a/typo3/sysext/core/Classes/Charset/UnknownCharsetException.php b/typo3/sysext/core/Classes/Charset/UnknownCharsetException.php index 2435eed5afd10d7888eeed9ddaa60a54bace3c73..a3933bbfbbf597912b1ae7df6951f906f0e6b04d 100644 --- a/typo3/sysext/core/Classes/Charset/UnknownCharsetException.php +++ b/typo3/sysext/core/Classes/Charset/UnknownCharsetException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception for unknown charsets */ -class UnknownCharsetException extends Exception -{ -} +class UnknownCharsetException extends Exception {} diff --git a/typo3/sysext/core/Classes/Collection/CollectionInterface.php b/typo3/sysext/core/Classes/Collection/CollectionInterface.php index 4c097cb28dc16a432bde2ae6037f38c159086caa..036b719f03771d267e1d5fcfa285f6c740ae28b1 100644 --- a/typo3/sysext/core/Classes/Collection/CollectionInterface.php +++ b/typo3/sysext/core/Classes/Collection/CollectionInterface.php @@ -26,6 +26,4 @@ namespace TYPO3\CMS\Core\Collection; * @template T * @@deprecated Drop \Serializable in v12 */ -interface CollectionInterface extends \Iterator, \Serializable, \Countable -{ -} +interface CollectionInterface extends \Iterator, \Serializable, \Countable {} diff --git a/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationExtensionNotConfiguredException.php b/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationExtensionNotConfiguredException.php index 4c4d54efb3d1209cecc42b02abc3e98af567f8e6..18077892b9c05b7b0c44571566635f8b2154fd53 100644 --- a/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationExtensionNotConfiguredException.php +++ b/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationExtensionNotConfiguredException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Core\Exception; * An exception thrown if ExtensionConfiguration->get() is called for * an extension that has no configuration. */ -class ExtensionConfigurationExtensionNotConfiguredException extends Exception -{ -} +class ExtensionConfigurationExtensionNotConfiguredException extends Exception {} diff --git a/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationPathDoesNotExistException.php b/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationPathDoesNotExistException.php index ce54090bab24847db3a6976b0c97e3bb11a0458f..0414e0d98172c471766c06b314dec73527dbc229 100644 --- a/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationPathDoesNotExistException.php +++ b/typo3/sysext/core/Classes/Configuration/Exception/ExtensionConfigurationPathDoesNotExistException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Core\Exception; * An exception thrown if ExtensionConfiguration->get() is called with * a path that does not exist within the extension configuration. */ -class ExtensionConfigurationPathDoesNotExistException extends Exception -{ -} +class ExtensionConfigurationPathDoesNotExistException extends Exception {} diff --git a/typo3/sysext/core/Classes/Configuration/Exception/SiteConfigurationWriteException.php b/typo3/sysext/core/Classes/Configuration/Exception/SiteConfigurationWriteException.php index 6123d481757519ce980aca00d3df01fe1fb6a9ce..19255a40b936c39b21fb23ca3f8226ab0d1c0c62 100644 --- a/typo3/sysext/core/Classes/Configuration/Exception/SiteConfigurationWriteException.php +++ b/typo3/sysext/core/Classes/Configuration/Exception/SiteConfigurationWriteException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; * * @internal */ -class SiteConfigurationWriteException extends Exception -{ -} +class SiteConfigurationWriteException extends Exception {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/AbstractInvalidDataStructureException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/AbstractInvalidDataStructureException.php index 54bac7b0ed471bcb14681cf9f8b8dbbc8d868030..ef6ab0998cbddb3b25a1b0619074ffb57f00d0a4 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/AbstractInvalidDataStructureException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/AbstractInvalidDataStructureException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Core\Exception; * Abstract exception thrown if data structures can not be resolved, * found or parsed. */ -abstract class AbstractInvalidDataStructureException extends Exception -{ -} +abstract class AbstractInvalidDataStructureException extends Exception {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidCombinedPointerFieldException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidCombinedPointerFieldException.php index 614da003a00c690ffd56bbcca312a28360955d55..5e2d52f5fc9ffb27a2d67f128c41c6c3c7edf608 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidCombinedPointerFieldException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidCombinedPointerFieldException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; /** * Thrown if a combined ds_pointerField can not be resolved. */ -class InvalidCombinedPointerFieldException extends AbstractInvalidDataStructureException -{ -} +class InvalidCombinedPointerFieldException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidIdentifierException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidIdentifierException.php index d1d6b474a9fd894c0f80288d192a1d1e3ad1032f..784fece47d1a994b456652cfb817c610d765a838 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidIdentifierException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidIdentifierException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; /** * Thrown if parseFlexFormDataStructureByIdentifier() is given an empty string */ -class InvalidIdentifierException extends AbstractInvalidDataStructureException -{ -} +class InvalidIdentifierException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowException.php index cc8bfb1d77d195d5d55e71685e3f765558e86a5c..62c52f46a2232c5d74bc3d73f46c5245a2801da6 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; * Exception thrown if lookup of a parent row in a tree does not return a valid result * during flex from structure lookup. */ -class InvalidParentRowException extends AbstractInvalidDataStructureException -{ -} +class InvalidParentRowException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowLoopException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowLoopException.php index 814ec3292d0d42cb2addb048ed38d798ceaaa3b0..ae5f9b717af5bb87f8bbe2f284641360a0002b09 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowLoopException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowLoopException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; /** * Exception thrown if lookup of a parent row in a tree results in a loop. */ -class InvalidParentRowLoopException extends AbstractInvalidDataStructureException -{ -} +class InvalidParentRowLoopException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowRootException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowRootException.php index 54cef3bcffc41a3e4a89b9388dc695d199136282..ae90ac4c942faae6d56e2edf0bb75ec1dcbaac73 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowRootException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidParentRowRootException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; /** * Exception thrown if lookup of a parent row in a tree is root node and still nothing was found. */ -class InvalidParentRowRootException extends AbstractInvalidDataStructureException -{ -} +class InvalidParentRowRootException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidPointerFieldValueException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidPointerFieldValueException.php index 8de8c01e81b045dc798e35ecb7a393ede94b74b5..c3963d284ed864617ddbed73193baa95591b0b48 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidPointerFieldValueException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidPointerFieldValueException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; /** * Exception thrown if ds_pointerField does not point to a valid value. */ -class InvalidPointerFieldValueException extends AbstractInvalidDataStructureException -{ -} +class InvalidPointerFieldValueException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidSinglePointerFieldException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidSinglePointerFieldException.php index 5fb68a7d5311a27aa1bcd6d2d234fde14ec40e93..7d6582c73e036438ffaa6f9fa64cb08b6f295b27 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidSinglePointerFieldException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidSinglePointerFieldException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; /** * Thrown if a single ds_pointerField can not be resolved. */ -class InvalidSinglePointerFieldException extends AbstractInvalidDataStructureException -{ -} +class InvalidSinglePointerFieldException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidTcaException.php b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidTcaException.php index e97f07bad3461957dffc906dd3a0ade7fa1b297c..121c9ea6b152ddf4a235bafdceb41044a3ccaf83 100644 --- a/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidTcaException.php +++ b/typo3/sysext/core/Classes/Configuration/FlexForm/Exception/InvalidTcaException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Configuration\FlexForm\Exception; * This may happen if a record is opened that points to a data structure of * a no longer loaded extension */ -class InvalidTcaException extends AbstractInvalidDataStructureException -{ -} +class InvalidTcaException extends AbstractInvalidDataStructureException {} diff --git a/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlFileLoadingException.php b/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlFileLoadingException.php index f12ec1b4e43514d3fe927397e95afdc4185559d9..cc40921baeface01c2d05a6c250792fd67817822 100644 --- a/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlFileLoadingException.php +++ b/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlFileLoadingException.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Configuration\Loader\Exception; -class YamlFileLoadingException extends \RuntimeException -{ -} +class YamlFileLoadingException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlParseException.php b/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlParseException.php index 09f137a2545fb8ea1985dc69af7c0f91a27ff6d5..dd7fda432c502abb0886f52ea733f7f8e7e761f4 100644 --- a/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlParseException.php +++ b/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlParseException.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Configuration\Loader\Exception; -class YamlParseException extends \RuntimeException -{ -} +class YamlParseException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlPlaceholderException.php b/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlPlaceholderException.php index 3457557b2c1021ba0bf7a3c81b8783bea752658b..b4e82dfa390eaf552816445db3569643c1ed7a6a 100644 --- a/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlPlaceholderException.php +++ b/typo3/sysext/core/Classes/Configuration/Loader/Exception/YamlPlaceholderException.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Configuration\Loader\Exception; -class YamlPlaceholderException extends \RuntimeException -{ -} +class YamlPlaceholderException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Configuration/TypoScript/Exception/InvalidTypoScriptConditionException.php b/typo3/sysext/core/Classes/Configuration/TypoScript/Exception/InvalidTypoScriptConditionException.php index 8005c190438ad8208d10b4dc7ab455ac3d9dcf35..ce0fcf796820cc267e32c1c3b11f99710a28821a 100644 --- a/typo3/sysext/core/Classes/Configuration/TypoScript/Exception/InvalidTypoScriptConditionException.php +++ b/typo3/sysext/core/Classes/Configuration/TypoScript/Exception/InvalidTypoScriptConditionException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Core\Exception; * A "Your TypoScript condition is invalid" exception * used when a TypoScript condition is called with invalid syntax. */ -class InvalidTypoScriptConditionException extends Exception -{ -} +class InvalidTypoScriptConditionException extends Exception {} diff --git a/typo3/sysext/core/Classes/Console/CommandNameAlreadyInUseException.php b/typo3/sysext/core/Classes/Console/CommandNameAlreadyInUseException.php index 0a3b2e0698f04dc185373a48be94cb40b4455dbd..6afb645d1ac6358da454afdc74515b0dbdcc9037 100644 --- a/typo3/sysext/core/Classes/Console/CommandNameAlreadyInUseException.php +++ b/typo3/sysext/core/Classes/Console/CommandNameAlreadyInUseException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Exception; * * @todo: deprecate */ -class CommandNameAlreadyInUseException extends Exception -{ -} +class CommandNameAlreadyInUseException extends Exception {} diff --git a/typo3/sysext/core/Classes/Console/UnknownCommandException.php b/typo3/sysext/core/Classes/Console/UnknownCommandException.php index 15c6365d3f62240384b31ec3bf2b75838681c13e..9ca3abaff0bc5a9a2fbd556fe47df8ce46e4e7bf 100644 --- a/typo3/sysext/core/Classes/Console/UnknownCommandException.php +++ b/typo3/sysext/core/Classes/Console/UnknownCommandException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when an unregistered command is asked for */ -class UnknownCommandException extends Exception -{ -} +class UnknownCommandException extends Exception {} diff --git a/typo3/sysext/core/Classes/Context/Exception/AspectNotFoundException.php b/typo3/sysext/core/Classes/Context/Exception/AspectNotFoundException.php index ece741c372fca3525f0fb62983995239b8652c03..2083ad50352a268ebbee15049b8b74b1ccdc701c 100644 --- a/typo3/sysext/core/Classes/Context/Exception/AspectNotFoundException.php +++ b/typo3/sysext/core/Classes/Context/Exception/AspectNotFoundException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Used when an aspect is requested but not found. */ -class AspectNotFoundException extends Exception -{ -} +class AspectNotFoundException extends Exception {} diff --git a/typo3/sysext/core/Classes/Context/Exception/AspectPropertyNotFoundException.php b/typo3/sysext/core/Classes/Context/Exception/AspectPropertyNotFoundException.php index 338b2a910114cd8e3198ce6ae24fca423b4d0d53..4668715f72ac99f686d53132508b9cd29c590159 100644 --- a/typo3/sysext/core/Classes/Context/Exception/AspectPropertyNotFoundException.php +++ b/typo3/sysext/core/Classes/Context/Exception/AspectPropertyNotFoundException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Used when an aspect property is requested but not found. */ -class AspectPropertyNotFoundException extends Exception -{ -} +class AspectPropertyNotFoundException extends Exception {} diff --git a/typo3/sysext/core/Classes/Crypto/PasswordHashing/InvalidPasswordHashException.php b/typo3/sysext/core/Classes/Crypto/PasswordHashing/InvalidPasswordHashException.php index b52dd0058e6b5dc9b1b02dbaaaed2119acbe828d..cabeb0ac7c5073333286218e2fc39ea71068fa7b 100644 --- a/typo3/sysext/core/Classes/Crypto/PasswordHashing/InvalidPasswordHashException.php +++ b/typo3/sysext/core/Classes/Crypto/PasswordHashing/InvalidPasswordHashException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * InvalidPasswordHashException thrown if salting went wrong. */ -class InvalidPasswordHashException extends Exception -{ -} +class InvalidPasswordHashException extends Exception {} diff --git a/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php b/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php index b71650489a24f001aef53ddd90b1b59512d96770..91ada38c60eb0d804500869e0bb07723cd3ffa77 100644 --- a/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php +++ b/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php @@ -96,7 +96,7 @@ class CompositeExpression extends \Doctrine\DBAL\Query\Expression\CompositeExpre public static function and($part = null, ...$parts): self { $mergedParts = array_merge([$part], $parts); - array_filter($mergedParts, static fn ($value) => !is_null($value)); + array_filter($mergedParts, static fn($value) => !is_null($value)); return (new self(self::TYPE_AND, []))->with(...$mergedParts); } @@ -107,7 +107,7 @@ class CompositeExpression extends \Doctrine\DBAL\Query\Expression\CompositeExpre public static function or($part = null, ...$parts): self { $mergedParts = array_merge([$part], $parts); - array_filter($mergedParts, static fn ($value) => !is_null($value)); + array_filter($mergedParts, static fn($value) => !is_null($value)); return (new self(self::TYPE_OR, []))->with(...$mergedParts); } diff --git a/typo3/sysext/core/Classes/Database/QueryGenerator.php b/typo3/sysext/core/Classes/Database/QueryGenerator.php index a19e5a8b8d664b4245392db5b3078df74c3f6ef0..865a9173d98ad22c60c87fe0f5a40637cad2ad10 100644 --- a/typo3/sysext/core/Classes/Database/QueryGenerator.php +++ b/typo3/sysext/core/Classes/Database/QueryGenerator.php @@ -1205,9 +1205,7 @@ class QueryGenerator /** * Init user definition */ - public function initUserDef() - { - } + public function initUserDef() {} /** * User definition @@ -1396,9 +1394,7 @@ class QueryGenerator * @param array $qcArr * @param bool $first */ - public function getUserDefQuery($qcArr, $first) - { - } + public function getUserDefQuery($qcArr, $first) {} /** * Update icon diff --git a/typo3/sysext/core/Classes/Database/Schema/Exception/DefaultTcaSchemaTablePositionException.php b/typo3/sysext/core/Classes/Database/Schema/Exception/DefaultTcaSchemaTablePositionException.php index e59a4d423a5bfdf5f7dc6685a55b5e266b7c54be..62d8d0f8fc4b10bbccb9e144169aeb50783823ef 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Exception/DefaultTcaSchemaTablePositionException.php +++ b/typo3/sysext/core/Classes/Database/Schema/Exception/DefaultTcaSchemaTablePositionException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Core\Exception; * * @internal */ -class DefaultTcaSchemaTablePositionException extends Exception -{ -} +class DefaultTcaSchemaTablePositionException extends Exception {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php b/typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php index 6dc8485ddb187e8e5971d908343e1b6076b16d4f..da44a8ce466ba03d36530e5343341df263279270 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php +++ b/typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Exception; /** * An exception thrown if the return value type of a signal is not the expected one. */ -class UnexpectedSignalReturnValueTypeException extends \Exception -{ -} +class UnexpectedSignalReturnValueTypeException extends \Exception {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateDefinitionItem.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateDefinitionItem.php index 315089ad2561631d7366ac4fccef268132042550..fbb3108865abaebe5d4e2421a63366bad231bf5e 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateDefinitionItem.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateDefinitionItem.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST; * Base class for all definition items that can occur in the definition * of a table, namely fields, indexes and foreign keys. */ -abstract class AbstractCreateDefinitionItem -{ -} +abstract class AbstractCreateDefinitionItem {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateStatement.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateStatement.php index 892a9ef1ba3071cb3985af34674c844ce17139e0..bf9a787963099eb7b568d946df9fff00da5e5a7b 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateStatement.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateStatement.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST; * Base class for all create type statements like CREATE TABLE * or CREATE VIEW. */ -abstract class AbstractCreateStatement -{ -} +abstract class AbstractCreateStatement {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BigIntDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BigIntDataType.php index 1b7b9ace8cecab291e3f8248a6400a851542e2b4..e87fc5d552faa8b5cfd2a24023976a1bb14b7729 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BigIntDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BigIntDataType.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; /** * Node representing the BIGINT SQL column type */ -class BigIntDataType extends IntegerDataType -{ -} +class BigIntDataType extends IntegerDataType {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DateDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DateDataType.php index a876191f9285f215c0404fd7455e40e7df91c6e2..09768ca0187becc73d52be57f21a7088271fb4ef 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DateDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DateDataType.php @@ -25,7 +25,5 @@ class DateDataType extends AbstractDataType /** * DateDataType constructor. */ - public function __construct() - { - } + public function __construct() {} } diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DoubleDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DoubleDataType.php index 9ff80f04bc0d8461163b6d102e75e165269f02dd..04578703945dac744f6841836af1b21d00470cbb 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DoubleDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DoubleDataType.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; /** * Node representing the DOUBLE SQL column type */ -class DoubleDataType extends FloatDataType -{ -} +class DoubleDataType extends FloatDataType {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/MediumIntDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/MediumIntDataType.php index abc4ce806c3ba24ab515f9c2df22050ba1d3909f..592707f07035eae9efa0336c678c7975a11e9ff9 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/MediumIntDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/MediumIntDataType.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; /** * Node representing the MEDIUMINT SQL column type */ -class MediumIntDataType extends IntegerDataType -{ -} +class MediumIntDataType extends IntegerDataType {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/NumericDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/NumericDataType.php index 2b45178bbe9e4ae266f4fe8ad8800f16b5fc0b98..fd2026bd52953fd8cc288a608225f04adcc8c908 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/NumericDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/NumericDataType.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; /** * Node representing the NUMERIC SQL column type */ -class NumericDataType extends DecimalDataType -{ -} +class NumericDataType extends DecimalDataType {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/RealDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/RealDataType.php index 63f3b3cea94099bd9d4b582a426f96c5e208eb94..4844ac12177ba013dede0a4d08f24737ed5e31ae 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/RealDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/RealDataType.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; /** * Node representing the REAL SQL column type */ -class RealDataType extends FloatDataType -{ -} +class RealDataType extends FloatDataType {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/SmallIntDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/SmallIntDataType.php index 96d2c1a81af4096dc01b4afdd1ff35caceffe5d6..599c7689802c14f9690223362ce975b6f3203e1b 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/SmallIntDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/SmallIntDataType.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; /** * Node representing the SMALLINT SQL column type */ -class SmallIntDataType extends IntegerDataType -{ -} +class SmallIntDataType extends IntegerDataType {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TinyIntDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TinyIntDataType.php index 25ed0b6ae725c0e40c163de4822fd100bde4b0d3..df3684319d6e3e0b783d719f7aef8b4e3361574b 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TinyIntDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TinyIntDataType.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Database\Schema\Parser\AST\DataType; /** * Node representing the TINYINT SQL column type */ -class TinyIntDataType extends IntegerDataType -{ -} +class TinyIntDataType extends IntegerDataType {} diff --git a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/YearDataType.php b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/YearDataType.php index 61768dc61ba27c001309009c4a97130408344dee..e0f6f44473080e0b7148f128aecafb46336caee7 100644 --- a/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/YearDataType.php +++ b/typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/YearDataType.php @@ -25,7 +25,5 @@ class YearDataType extends AbstractDataType /** * YearDataType constructor. */ - public function __construct() - { - } + public function __construct() {} } diff --git a/typo3/sysext/core/Classes/DependencyInjection/ContainerException.php b/typo3/sysext/core/Classes/DependencyInjection/ContainerException.php index b0c012c7b2d10781cc0e04e8a9ba01092e54ee28..e919be82e7d1a62a00702930262138646ae90534 100644 --- a/typo3/sysext/core/Classes/DependencyInjection/ContainerException.php +++ b/typo3/sysext/core/Classes/DependencyInjection/ContainerException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Exception; /** * @internal */ -class ContainerException extends Exception implements ContainerExceptionInterface -{ -} +class ContainerException extends Exception implements ContainerExceptionInterface {} diff --git a/typo3/sysext/core/Classes/DependencyInjection/NotFoundException.php b/typo3/sysext/core/Classes/DependencyInjection/NotFoundException.php index eb6c6e4d084e54d253f848f6e10c07c2de05dd9a..31ecae6f19b3f0113a913847feee156810cedb1d 100644 --- a/typo3/sysext/core/Classes/DependencyInjection/NotFoundException.php +++ b/typo3/sysext/core/Classes/DependencyInjection/NotFoundException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Exception; /** * @internal */ -class NotFoundException extends Exception implements NotFoundExceptionInterface -{ -} +class NotFoundException extends Exception implements NotFoundExceptionInterface {} diff --git a/typo3/sysext/core/Classes/Error/Exception.php b/typo3/sysext/core/Classes/Error/Exception.php index c4d656defc3c8000b18504e101763fb8a5a53be7..4f2d8f83d4295abfc4280b977250e3b715792c9e 100644 --- a/typo3/sysext/core/Classes/Error/Exception.php +++ b/typo3/sysext/core/Classes/Error/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Error; /** * An exception which represents a PHP error. */ -class Exception extends \TYPO3\CMS\Core\Exception -{ -} +class Exception extends \TYPO3\CMS\Core\Exception {} diff --git a/typo3/sysext/core/Classes/Error/Http/AbstractClientErrorException.php b/typo3/sysext/core/Classes/Error/Http/AbstractClientErrorException.php index c55a84f66bfac7345dbca6066a53d3470006cc6f..6f60ab308e6541361ef7dc645ec58459b5704603 100644 --- a/typo3/sysext/core/Classes/Error/Http/AbstractClientErrorException.php +++ b/typo3/sysext/core/Classes/Error/Http/AbstractClientErrorException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Error\Http; /** * HTTP Client Error Exception (Error 4xx) */ -abstract class AbstractClientErrorException extends StatusException -{ -} +abstract class AbstractClientErrorException extends StatusException {} diff --git a/typo3/sysext/core/Classes/Error/Http/AbstractServerErrorException.php b/typo3/sysext/core/Classes/Error/Http/AbstractServerErrorException.php index 600c4f0ba2f35e3659729eadcd72c04dc778dfbd..e2cb98b5c7f489fc5becb09c6e65151939b1a983 100644 --- a/typo3/sysext/core/Classes/Error/Http/AbstractServerErrorException.php +++ b/typo3/sysext/core/Classes/Error/Http/AbstractServerErrorException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Error\Http; /** * HTTP Server Error Exception (Error 5xx) */ -abstract class AbstractServerErrorException extends StatusException -{ -} +abstract class AbstractServerErrorException extends StatusException {} diff --git a/typo3/sysext/core/Classes/Error/Http/ShortcutTargetPageNotFoundException.php b/typo3/sysext/core/Classes/Error/Http/ShortcutTargetPageNotFoundException.php index 3f32fdf051241f4d4d4980d46293fa71d185dadb..ed29a751692649898854a9ff59e18b011f70db9c 100644 --- a/typo3/sysext/core/Classes/Error/Http/ShortcutTargetPageNotFoundException.php +++ b/typo3/sysext/core/Classes/Error/Http/ShortcutTargetPageNotFoundException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Error\Http; /** * Exception when a shortcut target page could not be resolved */ -class ShortcutTargetPageNotFoundException extends PageNotFoundException -{ -} +class ShortcutTargetPageNotFoundException extends PageNotFoundException {} diff --git a/typo3/sysext/core/Classes/Error/PageErrorHandler/InvalidPageErrorHandlerException.php b/typo3/sysext/core/Classes/Error/PageErrorHandler/InvalidPageErrorHandlerException.php index 332850dc1ce1054a9c19b5bee4819be74b6adfbb..9501711d403cfebff991d5b8be4905ce3344ec39 100644 --- a/typo3/sysext/core/Classes/Error/PageErrorHandler/InvalidPageErrorHandlerException.php +++ b/typo3/sysext/core/Classes/Error/PageErrorHandler/InvalidPageErrorHandlerException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Error\Exception; * Is typically used, when a site configuration has a page-error handler configured but this does not implement * the PageErrorHandlerInterface */ -class InvalidPageErrorHandlerException extends Exception -{ -} +class InvalidPageErrorHandlerException extends Exception {} diff --git a/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php b/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php index 280ca04027386727a5942c9ed2547c76d4f78494..8de4f07bcc6c0e351f3d092c41d7e1f4736abeef 100644 --- a/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php +++ b/typo3/sysext/core/Classes/Error/PageErrorHandler/PageContentErrorHandler.php @@ -111,13 +111,13 @@ class PageContentErrorHandler implements PageErrorHandlerInterface if ($this->useSubrequest) { // Create a sub-request and do not take any special query parameters into account $subRequest = $request->withQueryParams([])->withUri(new Uri($resolvedUrl))->withMethod('GET'); - $subResponse = $this->stashEnvironment(fn (): ResponseInterface => $this->sendSubRequest($subRequest, $this->pageUid, $request)); + $subResponse = $this->stashEnvironment(fn(): ResponseInterface => $this->sendSubRequest($subRequest, $this->pageUid, $request)); } else { $cacheIdentifier = 'errorPage_' . md5($resolvedUrl); try { $subResponse = $this->cachePageRequest( $this->pageUid, - fn () => $this->sendRawRequest($resolvedUrl), + fn() => $this->sendRawRequest($resolvedUrl), $cacheIdentifier ); } catch (\Exception $e) { diff --git a/typo3/sysext/core/Classes/Error/PageErrorHandler/PageErrorHandlerNotConfiguredException.php b/typo3/sysext/core/Classes/Error/PageErrorHandler/PageErrorHandlerNotConfiguredException.php index b0b89ddc7537dc284313a727555069189d887f08..ae2fda7badfe563ea7168b59473f1d79fa276725 100644 --- a/typo3/sysext/core/Classes/Error/PageErrorHandler/PageErrorHandlerNotConfiguredException.php +++ b/typo3/sysext/core/Classes/Error/PageErrorHandler/PageErrorHandlerNotConfiguredException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Error\Exception; * Is typically used, when a site configuration has no page-error handler configured * for a specific HTTP Status type that is requested. */ -class PageErrorHandlerNotConfiguredException extends Exception -{ -} +class PageErrorHandlerNotConfiguredException extends Exception {} diff --git a/typo3/sysext/core/Classes/Exception.php b/typo3/sysext/core/Classes/Exception.php index db31eb51fa732bcf88b4a2919d706e905ba6f923..ddbc5f47b9009550e1cbb94430d6d3ffb5db4c2e 100644 --- a/typo3/sysext/core/Classes/Exception.php +++ b/typo3/sysext/core/Classes/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core; /** * An exception */ -class Exception extends \Exception -{ -} +class Exception extends \Exception {} diff --git a/typo3/sysext/core/Classes/Exception/Archive/ExtractException.php b/typo3/sysext/core/Classes/Exception/Archive/ExtractException.php index 824db9312947511a834a4c273e22a6ca0f8aa817..c8f22f0bfd2ac5d525282c9d5c40c3bb0ca2ab89 100644 --- a/typo3/sysext/core/Classes/Exception/Archive/ExtractException.php +++ b/typo3/sysext/core/Classes/Exception/Archive/ExtractException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * An exception thrown when extracting an archive fails */ -class ExtractException extends Exception -{ -} +class ExtractException extends Exception {} diff --git a/typo3/sysext/core/Classes/Exception/MissingTsfeException.php b/typo3/sysext/core/Classes/Exception/MissingTsfeException.php index a2941b312577a95982c19ccc004b140b7e9ccad5..5dfa729a6e4ff4d2b0bca4727a4560a8e0ca8d4b 100644 --- a/typo3/sysext/core/Classes/Exception/MissingTsfeException.php +++ b/typo3/sysext/core/Classes/Exception/MissingTsfeException.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Core\Exception; -class MissingTsfeException extends \RuntimeException -{ -} +class MissingTsfeException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Exception/Page/BrokenRootLineException.php b/typo3/sysext/core/Classes/Exception/Page/BrokenRootLineException.php index 24ebf82ba50f86971ab0f682350b2cfed3be5302..2682f543c4f0e21e103473d668875c064d858d9b 100644 --- a/typo3/sysext/core/Classes/Exception/Page/BrokenRootLineException.php +++ b/typo3/sysext/core/Classes/Exception/Page/BrokenRootLineException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Exception\Page; /** * Exception for root line traversal when a page within the root line traversal is missing / can not be resolved */ -class BrokenRootLineException extends RootLineException -{ -} +class BrokenRootLineException extends RootLineException {} diff --git a/typo3/sysext/core/Classes/Exception/Page/CircularRootLineException.php b/typo3/sysext/core/Classes/Exception/Page/CircularRootLineException.php index 7fba7c7f2a29b26fe0268c7a291ee4cf0b01b9db..a7cf408ad90525da8fc18ee7e25bc63fa17ce6ff 100644 --- a/typo3/sysext/core/Classes/Exception/Page/CircularRootLineException.php +++ b/typo3/sysext/core/Classes/Exception/Page/CircularRootLineException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Exception\Page; /** * Exception for root line traversal when a loop is detected */ -class CircularRootLineException extends RootLineException -{ -} +class CircularRootLineException extends RootLineException {} diff --git a/typo3/sysext/core/Classes/Exception/Page/MountPointException.php b/typo3/sysext/core/Classes/Exception/Page/MountPointException.php index da57596f5cc5fb3ff4fae558659081ed9df3d7c0..18a92da012a9abd32c69ce34d7b446dfecbd3ba2 100644 --- a/typo3/sysext/core/Classes/Exception/Page/MountPointException.php +++ b/typo3/sysext/core/Classes/Exception/Page/MountPointException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Exception\Page; /** * Exception thrown if a mount point is used */ -class MountPointException extends RootLineException -{ -} +class MountPointException extends RootLineException {} diff --git a/typo3/sysext/core/Classes/Exception/Page/MountPointsDisabledException.php b/typo3/sysext/core/Classes/Exception/Page/MountPointsDisabledException.php index 00bc8677256f0e94ab47a540dfc13cb745265c40..f7359682dc6ba8f774df043731b4d9f0ca467b0b 100644 --- a/typo3/sysext/core/Classes/Exception/Page/MountPointsDisabledException.php +++ b/typo3/sysext/core/Classes/Exception/Page/MountPointsDisabledException.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Core\Exception\Page; * Exception thrown if a mount point is used but disabled via * "$GLOBALS['TYPO3_CONF_VARS']['FE']['enable_mount_pids']" */ -class MountPointsDisabledException extends MountPointException -{ -} +class MountPointsDisabledException extends MountPointException {} diff --git a/typo3/sysext/core/Classes/Exception/Page/PageNotFoundException.php b/typo3/sysext/core/Classes/Exception/Page/PageNotFoundException.php index 6b4e560e361bd4779275b8e3bb9366dca22f518f..ec0d18da6c3ff3fc6c1089efd64a3c21f4aad5d5 100644 --- a/typo3/sysext/core/Classes/Exception/Page/PageNotFoundException.php +++ b/typo3/sysext/core/Classes/Exception/Page/PageNotFoundException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Exception\Page; /** * Exception thrown if a page can not be fetched from the DB */ -class PageNotFoundException extends RootLineException -{ -} +class PageNotFoundException extends RootLineException {} diff --git a/typo3/sysext/core/Classes/Exception/Page/PagePropertyRelationNotFoundException.php b/typo3/sysext/core/Classes/Exception/Page/PagePropertyRelationNotFoundException.php index f08d0d90086dcaf5cb6f05e08c6daf136ce296e0..b0da6a5c47b32ef244d7b208e2c84d54e1265a1e 100644 --- a/typo3/sysext/core/Classes/Exception/Page/PagePropertyRelationNotFoundException.php +++ b/typo3/sysext/core/Classes/Exception/Page/PagePropertyRelationNotFoundException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Exception\Page; /** * Exception thrown if a page property relation can not be fetched from the DB */ -class PagePropertyRelationNotFoundException extends \RuntimeException -{ -} +class PagePropertyRelationNotFoundException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Exception/Page/RootLineException.php b/typo3/sysext/core/Classes/Exception/Page/RootLineException.php index 8e5594e71dcb69f01ef4e50179ea23a951c3eb31..dd53d83e924d6a18c73422977bc6ae85f0ca9d89 100644 --- a/typo3/sysext/core/Classes/Exception/Page/RootLineException.php +++ b/typo3/sysext/core/Classes/Exception/Page/RootLineException.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Core\Exception\Page; * Base exception for root line traversal. This extends from RuntimeException for historical reasons * and bw compatibility */ -class RootLineException extends \RuntimeException -{ -} +class RootLineException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Exception/SiteNotFoundException.php b/typo3/sysext/core/Classes/Exception/SiteNotFoundException.php index 76aea25264690a5b3a59b09c0190ce46de477930..c5d91f295b065f419b75d9e1888af15184ba2fcb 100644 --- a/typo3/sysext/core/Classes/Exception/SiteNotFoundException.php +++ b/typo3/sysext/core/Classes/Exception/SiteNotFoundException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown if site configuration or incoming data is invalid */ -class SiteNotFoundException extends Exception -{ -} +class SiteNotFoundException extends Exception {} diff --git a/typo3/sysext/core/Classes/FormProtection/DisabledFormProtection.php b/typo3/sysext/core/Classes/FormProtection/DisabledFormProtection.php index 711c20e52536f0892b49cfd18922aab3e8570969..9deec3877c9c9fb91afb4176ac93cc3549792f3e 100644 --- a/typo3/sysext/core/Classes/FormProtection/DisabledFormProtection.php +++ b/typo3/sysext/core/Classes/FormProtection/DisabledFormProtection.php @@ -60,7 +60,5 @@ class DisabledFormProtection extends AbstractFormProtection /** * Dummy implementation */ - public function persistSessionToken() - { - } + public function persistSessionToken() {} } diff --git a/typo3/sysext/core/Classes/FormProtection/Exception.php b/typo3/sysext/core/Classes/FormProtection/Exception.php index 3d16508f144ceade34308437fff5e36cf7977eb8..78f0286d9a36eb35eddf82512c0834182c899ec5 100644 --- a/typo3/sysext/core/Classes/FormProtection/Exception.php +++ b/typo3/sysext/core/Classes/FormProtection/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\FormProtection; /** * Invalid token exception */ -class Exception extends \UnexpectedValueException -{ -} +class Exception extends \UnexpectedValueException {} diff --git a/typo3/sysext/core/Classes/FormProtection/FormProtectionFactory.php b/typo3/sysext/core/Classes/FormProtection/FormProtectionFactory.php index 3b21ab716422390edd485c2490da2d7e43ecd30b..0123831b8fd1026aac5613b8f9195925f7c0c47a 100644 --- a/typo3/sysext/core/Classes/FormProtection/FormProtectionFactory.php +++ b/typo3/sysext/core/Classes/FormProtection/FormProtectionFactory.php @@ -56,9 +56,7 @@ class FormProtectionFactory /** * Private constructor to prevent instantiation. */ - private function __construct() - { - } + private function __construct() {} /** * Gets a form protection instance for the requested type or class. diff --git a/typo3/sysext/core/Classes/Http/PropagateResponseException.php b/typo3/sysext/core/Classes/Http/PropagateResponseException.php index b0a417139f7a9de37ee5bd63242f71a5571fb6b3..5898dac4a63f3f4c9004e5c89a55a8d3d6c518b9 100644 --- a/typo3/sysext/core/Classes/Http/PropagateResponseException.php +++ b/typo3/sysext/core/Classes/Http/PropagateResponseException.php @@ -44,6 +44,4 @@ namespace TYPO3\CMS\Core\Http; * * @internal */ -class PropagateResponseException extends ImmediateResponseException -{ -} +class PropagateResponseException extends ImmediateResponseException {} diff --git a/typo3/sysext/core/Classes/Http/Security/InvalidReferrerException.php b/typo3/sysext/core/Classes/Http/Security/InvalidReferrerException.php index be9068f1e7391dd25e65a0a8181764fa7dcaaad3..615cbb1f1cfc5e79a8d70b30bd714f347b6f82d0 100644 --- a/typo3/sysext/core/Classes/Http/Security/InvalidReferrerException.php +++ b/typo3/sysext/core/Classes/Http/Security/InvalidReferrerException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when route requires referrer, which does not match current base URL. */ -class InvalidReferrerException extends Exception -{ -} +class InvalidReferrerException extends Exception {} diff --git a/typo3/sysext/core/Classes/Http/Security/MissingReferrerException.php b/typo3/sysext/core/Classes/Http/Security/MissingReferrerException.php index bc21cb952ab683c1c6ed4f2737773eabd0cc9de1..13ec7fac59b664e638a775b40ace57f0e7ad34b5 100644 --- a/typo3/sysext/core/Classes/Http/Security/MissingReferrerException.php +++ b/typo3/sysext/core/Classes/Http/Security/MissingReferrerException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when route requires referrer, which is missing. */ -class MissingReferrerException extends Exception -{ -} +class MissingReferrerException extends Exception {} diff --git a/typo3/sysext/core/Classes/Imaging/Exception/UnsupportedFileException.php b/typo3/sysext/core/Classes/Imaging/Exception/UnsupportedFileException.php index d9298200243a01c0e84952b65da5c9ff5f637950..3f13ce40b97756182d53a2052aeb5534dc5f5cf6 100644 --- a/typo3/sysext/core/Classes/Imaging/Exception/UnsupportedFileException.php +++ b/typo3/sysext/core/Classes/Imaging/Exception/UnsupportedFileException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Thrown when a file type is not supported. */ -class UnsupportedFileException extends Exception -{ -} +class UnsupportedFileException extends Exception {} diff --git a/typo3/sysext/core/Classes/Imaging/Exception/ZeroImageDimensionException.php b/typo3/sysext/core/Classes/Imaging/Exception/ZeroImageDimensionException.php index afc706757e659fd56c3f1813da99e15efbc86d6f..b963bafe3610bc1046dc4762c58ea12fb30ceeca 100644 --- a/typo3/sysext/core/Classes/Imaging/Exception/ZeroImageDimensionException.php +++ b/typo3/sysext/core/Classes/Imaging/Exception/ZeroImageDimensionException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Exception; * This exception is thrown when an image is tasked to be processed with * dimensions of zero. */ -class ZeroImageDimensionException extends Exception -{ -} +class ZeroImageDimensionException extends Exception {} diff --git a/typo3/sysext/core/Classes/Imaging/ImageManipulation/InvalidConfigurationException.php b/typo3/sysext/core/Classes/Imaging/ImageManipulation/InvalidConfigurationException.php index 366eb8cd59c43f5bb1700893ded606cf11fde759..329320ef648c19c2e53314704626b47e31b00333 100644 --- a/typo3/sysext/core/Classes/Imaging/ImageManipulation/InvalidConfigurationException.php +++ b/typo3/sysext/core/Classes/Imaging/ImageManipulation/InvalidConfigurationException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Imaging\ImageManipulation; /** * Thrown when an invalid TCA configuration for the image manipulation is detected */ -class InvalidConfigurationException extends \Exception -{ -} +class InvalidConfigurationException extends \Exception {} diff --git a/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownLinkHandlerException.php b/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownLinkHandlerException.php index 7e8d88621e5438c4e83f7da71c1528597b6d752a..09f5fd9ec6a05dd0d3ccdce65165df62e9c6fe5f 100644 --- a/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownLinkHandlerException.php +++ b/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownLinkHandlerException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception raised if no matching link handler is found. */ -class UnknownLinkHandlerException extends Exception -{ -} +class UnknownLinkHandlerException extends Exception {} diff --git a/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownUrnException.php b/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownUrnException.php index aae459c962f3702767fadb84b7c072084ca95566..03ee2be1ab0c7d2f198db675c2242b6038c6035d 100644 --- a/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownUrnException.php +++ b/typo3/sysext/core/Classes/LinkHandling/Exception/UnknownUrnException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception raised if urn is not known. */ -class UnknownUrnException extends Exception -{ -} +class UnknownUrnException extends Exception {} diff --git a/typo3/sysext/core/Classes/Localization/Exception/FileNotFoundException.php b/typo3/sysext/core/Classes/Localization/Exception/FileNotFoundException.php index c3da70826c3b576b5aa3102cd423d0d3ea3e8391..c01cfc2f7e3842b21eb52e4553fd87f7696ac2ad 100644 --- a/typo3/sysext/core/Classes/Localization/Exception/FileNotFoundException.php +++ b/typo3/sysext/core/Classes/Localization/Exception/FileNotFoundException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Localization\Exception; /** * File not found exception */ -class FileNotFoundException extends \RuntimeException -{ -} +class FileNotFoundException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Localization/Exception/InvalidParserException.php b/typo3/sysext/core/Classes/Localization/Exception/InvalidParserException.php index f0741265ca10d9ffc73a4ae596af9968489096e7..64405c1ad2659495ff8042077cf91990d4dc58b3 100644 --- a/typo3/sysext/core/Classes/Localization/Exception/InvalidParserException.php +++ b/typo3/sysext/core/Classes/Localization/Exception/InvalidParserException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Localization\Exception; /** * Invalid Parser exception */ -class InvalidParserException extends \RuntimeException -{ -} +class InvalidParserException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Localization/Exception/InvalidXmlFileException.php b/typo3/sysext/core/Classes/Localization/Exception/InvalidXmlFileException.php index 388b8c2d156ab655544c2e7b727c21f107d14ed7..b17006aabe31c578dfab753178ad4fb43a6c1101 100644 --- a/typo3/sysext/core/Classes/Localization/Exception/InvalidXmlFileException.php +++ b/typo3/sysext/core/Classes/Localization/Exception/InvalidXmlFileException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Localization\Exception; /** * Invalid XML file exception */ -class InvalidXmlFileException extends \RuntimeException -{ -} +class InvalidXmlFileException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Localization/Locale.php b/typo3/sysext/core/Classes/Localization/Locale.php index 69c4772f82825985df5908acaf3a8bc26be0a510..36818759aae90c4e550623175241062f17100289 100644 --- a/typo3/sysext/core/Classes/Localization/Locale.php +++ b/typo3/sysext/core/Classes/Localization/Locale.php @@ -98,7 +98,7 @@ class Locale implements \Stringable } $this->locale = $this->languageCode . ($this->languageScript ? '-' . $this->languageScript : '') . ($this->countryCode ? '-' . $this->countryCode : ''); - $this->dependencies = array_map(fn ($dep) => $this->normalize($dep), $dependencies); + $this->dependencies = array_map(fn($dep) => $this->normalize($dep), $dependencies); } public function getName(): string diff --git a/typo3/sysext/core/Classes/Locking/Exception.php b/typo3/sysext/core/Classes/Locking/Exception.php index dd5b8cbd436c7bca2dd746eba15a535b3f07902b..33603a0f60f81d919f3febad3aa51d4abdcc8093 100644 --- a/typo3/sysext/core/Classes/Locking/Exception.php +++ b/typo3/sysext/core/Classes/Locking/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Locking; /** * A locking exception */ -class Exception extends \TYPO3\CMS\Core\Exception -{ -} +class Exception extends \TYPO3\CMS\Core\Exception {} diff --git a/typo3/sysext/core/Classes/Locking/Exception/LockAcquireException.php b/typo3/sysext/core/Classes/Locking/Exception/LockAcquireException.php index 21fe4955ec77fe3755a05610e03bcd2af17212cc..2ab6deede9985454825e0f75407d6c243043f790 100644 --- a/typo3/sysext/core/Classes/Locking/Exception/LockAcquireException.php +++ b/typo3/sysext/core/Classes/Locking/Exception/LockAcquireException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Locking\Exception; /** * An exception indicating a lock acquisition error */ -class LockAcquireException extends Exception -{ -} +class LockAcquireException extends Exception {} diff --git a/typo3/sysext/core/Classes/Locking/Exception/LockAcquireWouldBlockException.php b/typo3/sysext/core/Classes/Locking/Exception/LockAcquireWouldBlockException.php index b1f3f8829b0e1c38c69674e9fd957b45831af417..dbd14897a424ebc988063792ffbf29716162e7c5 100644 --- a/typo3/sysext/core/Classes/Locking/Exception/LockAcquireWouldBlockException.php +++ b/typo3/sysext/core/Classes/Locking/Exception/LockAcquireWouldBlockException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Locking\Exception; /** * An exception indicating that acquiring a lock would have blocked */ -class LockAcquireWouldBlockException extends LockAcquireException -{ -} +class LockAcquireWouldBlockException extends LockAcquireException {} diff --git a/typo3/sysext/core/Classes/Locking/Exception/LockCreateException.php b/typo3/sysext/core/Classes/Locking/Exception/LockCreateException.php index b8ee401c3a5ae76635fa921ab1dac298e7396013..c123ad1b2dea7eeef510cc5dff4a57d43aeccae2 100644 --- a/typo3/sysext/core/Classes/Locking/Exception/LockCreateException.php +++ b/typo3/sysext/core/Classes/Locking/Exception/LockCreateException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Locking\Exception; /** * An exception indicating a lock creation error */ -class LockCreateException extends Exception -{ -} +class LockCreateException extends Exception {} diff --git a/typo3/sysext/core/Classes/Log/Exception.php b/typo3/sysext/core/Classes/Log/Exception.php index e6ecdcde5c6b50c2f4dad965b92d246f31ab3234..4c93e0893bcf2d481bfe1af0e06666ca09517390 100644 --- a/typo3/sysext/core/Classes/Log/Exception.php +++ b/typo3/sysext/core/Classes/Log/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Log; /** * An exception when something is wrong with the file handling */ -class Exception extends \TYPO3\CMS\Core\Exception -{ -} +class Exception extends \TYPO3\CMS\Core\Exception {} diff --git a/typo3/sysext/core/Classes/Log/Exception/InvalidLogProcessorConfigurationException.php b/typo3/sysext/core/Classes/Log/Exception/InvalidLogProcessorConfigurationException.php index 2da3b74744d7c288b97967cea2d5428068f399bf..91068fe2ff73936343a289659f185518e47e59f5 100644 --- a/typo3/sysext/core/Classes/Log/Exception/InvalidLogProcessorConfigurationException.php +++ b/typo3/sysext/core/Classes/Log/Exception/InvalidLogProcessorConfigurationException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Log\Exception; /** * An exception when something is wrong with the configuration for a LogProcessor */ -class InvalidLogProcessorConfigurationException extends Exception -{ -} +class InvalidLogProcessorConfigurationException extends Exception {} diff --git a/typo3/sysext/core/Classes/Log/Exception/InvalidLogWriterConfigurationException.php b/typo3/sysext/core/Classes/Log/Exception/InvalidLogWriterConfigurationException.php index 6d07d625de4b14c57e4a4cf9dfbcf45cb00ed5d3..36d5e23a125d74ffaa5fb992012f131e9f1891b1 100644 --- a/typo3/sysext/core/Classes/Log/Exception/InvalidLogWriterConfigurationException.php +++ b/typo3/sysext/core/Classes/Log/Exception/InvalidLogWriterConfigurationException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Log\Exception; /** * An exception when something is wrong with the configuration for a LogWriter */ -class InvalidLogWriterConfigurationException extends Exception -{ -} +class InvalidLogWriterConfigurationException extends Exception {} diff --git a/typo3/sysext/core/Classes/Log/LogLevel.php b/typo3/sysext/core/Classes/Log/LogLevel.php index eb7c6be14faea17de0a9e1be977df38cd507689c..9c7ff7e88298812259013577cef7a32094fd88aa 100644 --- a/typo3/sysext/core/Classes/Log/LogLevel.php +++ b/typo3/sysext/core/Classes/Log/LogLevel.php @@ -113,6 +113,6 @@ class LogLevel extends \Psr\Log\LogLevel public static function atLeast($level): array { $level = self::normalizeLevel($level); - return array_filter(self::$levels, static fn ($intLevel) => $intLevel <= $level, ARRAY_FILTER_USE_KEY); + return array_filter(self::$levels, static fn($intLevel) => $intLevel <= $level, ARRAY_FILTER_USE_KEY); } } diff --git a/typo3/sysext/core/Classes/Log/LogManager.php b/typo3/sysext/core/Classes/Log/LogManager.php index 04038d93bc28b516106d36daff18df140ec15f8e..469715451c0d732a696d3c3f6f43511c5bbbba1f 100644 --- a/typo3/sysext/core/Classes/Log/LogManager.php +++ b/typo3/sysext/core/Classes/Log/LogManager.php @@ -137,7 +137,7 @@ class LogManager implements SingletonInterface, LogManagerInterface { $configuration = $this->getConfigurationForLogger(self::CONFIGURATION_TYPE_WRITER, $logger->getName()); foreach ($configuration as $severityLevel => $writer) { - $writer = array_filter($writer, static fn (array $options) => !($options['disabled'] ?? false)); + $writer = array_filter($writer, static fn(array $options) => !($options['disabled'] ?? false)); foreach ($writer as $logWriterClassName => $logWriterOptions) { try { unset($logWriterOptions['disabled']); diff --git a/typo3/sysext/core/Classes/Package/Event/PackagesMayHaveChangedEvent.php b/typo3/sysext/core/Classes/Package/Event/PackagesMayHaveChangedEvent.php index 04e834a02774f6014878588edf295e16d73f9b27..2790410c15ff24ff04b12b7988657ffda6bef45a 100644 --- a/typo3/sysext/core/Classes/Package/Event/PackagesMayHaveChangedEvent.php +++ b/typo3/sysext/core/Classes/Package/Event/PackagesMayHaveChangedEvent.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Package\Event; /** * Marker event to ensure that Core is re-triggering the package ordering and package listings */ -final class PackagesMayHaveChangedEvent -{ -} +final class PackagesMayHaveChangedEvent {} diff --git a/typo3/sysext/core/Classes/Package/Exception.php b/typo3/sysext/core/Classes/Package/Exception.php index 03cddb2223645caed188e7abc26a7d98e0088252..c6280d58dcce7fc7586b7d264f7a248979ef0785 100644 --- a/typo3/sysext/core/Classes/Package/Exception.php +++ b/typo3/sysext/core/Classes/Package/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Package; /** * A package exception */ -class Exception extends \TYPO3\CMS\Core\Exception -{ -} +class Exception extends \TYPO3\CMS\Core\Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/InvalidPackageKeyException.php b/typo3/sysext/core/Classes/Package/Exception/InvalidPackageKeyException.php index d73a0b70514d31bf329b9b03230990df7d7f2856..7b10ed20051c10f1648baf9490b202e188441d0a 100644 --- a/typo3/sysext/core/Classes/Package/Exception/InvalidPackageKeyException.php +++ b/typo3/sysext/core/Classes/Package/Exception/InvalidPackageKeyException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * An "Invalid Package Key" exception */ -class InvalidPackageKeyException extends Exception -{ -} +class InvalidPackageKeyException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/InvalidPackageManifestException.php b/typo3/sysext/core/Classes/Package/Exception/InvalidPackageManifestException.php index 44897384317a2188d98a8a89423bea939d039186..841c818f70a59f8b9dff618ab058afb604525508 100644 --- a/typo3/sysext/core/Classes/Package/Exception/InvalidPackageManifestException.php +++ b/typo3/sysext/core/Classes/Package/Exception/InvalidPackageManifestException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * An "Invalid Package Manifest" exception */ -class InvalidPackageManifestException extends Exception -{ -} +class InvalidPackageManifestException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/InvalidPackagePathException.php b/typo3/sysext/core/Classes/Package/Exception/InvalidPackagePathException.php index e88933f48f006a2d3ed2ef0dee1eba0672130a5e..6a5b25e521b162ce5c361453d50d65ee7e49f8a9 100644 --- a/typo3/sysext/core/Classes/Package/Exception/InvalidPackagePathException.php +++ b/typo3/sysext/core/Classes/Package/Exception/InvalidPackagePathException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * "Invalid Package Path" Exception */ -class InvalidPackagePathException extends Exception -{ -} +class InvalidPackagePathException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/InvalidPackageStateException.php b/typo3/sysext/core/Classes/Package/Exception/InvalidPackageStateException.php index 8f4307b12fd15166e6e4d0abbc74cbb9a6eb9667..12e81ec32da6e8be03acb2628afa46ac093ba55e 100644 --- a/typo3/sysext/core/Classes/Package/Exception/InvalidPackageStateException.php +++ b/typo3/sysext/core/Classes/Package/Exception/InvalidPackageStateException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * An "Invalid Package State" exception */ -class InvalidPackageStateException extends Exception -{ -} +class InvalidPackageStateException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/MissingPackageManifestException.php b/typo3/sysext/core/Classes/Package/Exception/MissingPackageManifestException.php index 3ba8aeca5b9651ca3323bdbe13a9d5a8d316a25d..457a4e6ee44d02299f352406af84c5c7bdfbc473 100644 --- a/typo3/sysext/core/Classes/Package/Exception/MissingPackageManifestException.php +++ b/typo3/sysext/core/Classes/Package/Exception/MissingPackageManifestException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Core\Package\Exception; * An "Invalid Package Key" exception * @internal not in use anymore, can be removed in TYPO3 v12.0. */ -class MissingPackageManifestException extends Exception -{ -} +class MissingPackageManifestException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/PackageStatesFileNotWritableException.php b/typo3/sysext/core/Classes/Package/Exception/PackageStatesFileNotWritableException.php index 22543103943779a96b01ef38ce28df2d52f96c86..3f90bfc4064a8139d8a9899ec284988e28624801 100644 --- a/typo3/sysext/core/Classes/Package/Exception/PackageStatesFileNotWritableException.php +++ b/typo3/sysext/core/Classes/Package/Exception/PackageStatesFileNotWritableException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * "Package states file not writable" Exception */ -class PackageStatesFileNotWritableException extends Exception -{ -} +class PackageStatesFileNotWritableException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/PackageStatesUnavailableException.php b/typo3/sysext/core/Classes/Package/Exception/PackageStatesUnavailableException.php index a6c739f4cd033e3c668b3115e7ffe6b0cedf91ab..55980d46e17c6b06c1b3f545faf26c296f701680 100644 --- a/typo3/sysext/core/Classes/Package/Exception/PackageStatesUnavailableException.php +++ b/typo3/sysext/core/Classes/Package/Exception/PackageStatesUnavailableException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * A package unavailable exception */ -class PackageStatesUnavailableException extends Exception -{ -} +class PackageStatesUnavailableException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/ProtectedPackageKeyException.php b/typo3/sysext/core/Classes/Package/Exception/ProtectedPackageKeyException.php index d215b844f0598bf39ba99c0525667f28f0fafc20..55905ae83f5d2df4e26df7e3fd20b26f5e064af5 100644 --- a/typo3/sysext/core/Classes/Package/Exception/ProtectedPackageKeyException.php +++ b/typo3/sysext/core/Classes/Package/Exception/ProtectedPackageKeyException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * A "Protected Package Key" exception */ -class ProtectedPackageKeyException extends Exception -{ -} +class ProtectedPackageKeyException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/UnknownPackageException.php b/typo3/sysext/core/Classes/Package/Exception/UnknownPackageException.php index 1965d6e95c6b59f3390ee6d266956ab44283e74d..3bc3d22aa48e364733153f9fa7c7c35f86a78512 100644 --- a/typo3/sysext/core/Classes/Package/Exception/UnknownPackageException.php +++ b/typo3/sysext/core/Classes/Package/Exception/UnknownPackageException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * "Unknown Package" Exception */ -class UnknownPackageException extends Exception -{ -} +class UnknownPackageException extends Exception {} diff --git a/typo3/sysext/core/Classes/Package/Exception/UnknownPackagePathException.php b/typo3/sysext/core/Classes/Package/Exception/UnknownPackagePathException.php index 82b3259f7456ba95cebebd65d73503b028224141..5e97e44ad349165a766e33d040b06ca920d0eb94 100644 --- a/typo3/sysext/core/Classes/Package/Exception/UnknownPackagePathException.php +++ b/typo3/sysext/core/Classes/Package/Exception/UnknownPackagePathException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Package\Exception; /** * "Unknown Package Path" Exception */ -class UnknownPackagePathException extends Exception -{ -} +class UnknownPackagePathException extends Exception {} diff --git a/typo3/sysext/core/Classes/Page/PageRenderer.php b/typo3/sysext/core/Classes/Page/PageRenderer.php index be818de45525c21c59ac12a88f0b49e8ddbd9d6a..7cb966e53c46d32adbf8143cfde5308a8eb57e35 100644 --- a/typo3/sysext/core/Classes/Page/PageRenderer.php +++ b/typo3/sysext/core/Classes/Page/PageRenderer.php @@ -1962,7 +1962,7 @@ class PageRenderer implements SingletonInterface 'JS_INLINE_FOOTER' => $jsFooterInline, 'BODY' => $this->bodyContent, ]; - $markerArray = array_map(static fn ($item) => (trim((string)$item)), $markerArray); + $markerArray = array_map(static fn($item) => (trim((string)$item)), $markerArray); return $markerArray; } @@ -1997,7 +1997,7 @@ class PageRenderer implements SingletonInterface 'JS_INCLUDE_FOOTER' => '<!-- ###JS_INCLUDE_FOOTER' . $substituteHash . '### -->', 'JS_INLINE_FOOTER' => '<!-- ###JS_INLINE_FOOTER' . $substituteHash . '### -->', ]; - $markerArray = array_map(static fn ($item) => (trim((string)$item)), $markerArray); + $markerArray = array_map(static fn($item) => (trim((string)$item)), $markerArray); return $markerArray; } diff --git a/typo3/sysext/core/Classes/RateLimiter/RequestRateLimitedException.php b/typo3/sysext/core/Classes/RateLimiter/RequestRateLimitedException.php index 58dbd76b48ad34c28b8167a63c833c66357a2ff0..b1e3c4a8a4335992c035a0efee89f6aa4de3b461 100644 --- a/typo3/sysext/core/Classes/RateLimiter/RequestRateLimitedException.php +++ b/typo3/sysext/core/Classes/RateLimiter/RequestRateLimitedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Error\Http\AbstractClientErrorException; /** * Exception thrown when a rate limiter has disallowed further processing */ -class RequestRateLimitedException extends AbstractClientErrorException -{ -} +class RequestRateLimitedException extends AbstractClientErrorException {} diff --git a/typo3/sysext/core/Classes/Resource/AbstractRepository.php b/typo3/sysext/core/Classes/Resource/AbstractRepository.php index 9409e7444a821c17a7f388dc5c126512302855b7..e4f920d0fad06b991023618f97ca25acb7936667 100644 --- a/typo3/sysext/core/Classes/Resource/AbstractRepository.php +++ b/typo3/sysext/core/Classes/Resource/AbstractRepository.php @@ -70,18 +70,14 @@ abstract class AbstractRepository implements RepositoryInterface, SingletonInter * * @param object $object The object to add */ - public function add($object) - { - } + public function add($object) {} /** * Removes an object from this repository. * * @param object $object The object to remove */ - public function remove($object) - { - } + public function remove($object) {} /** * Replaces an object by another. @@ -89,18 +85,14 @@ abstract class AbstractRepository implements RepositoryInterface, SingletonInter * @param object $existingObject The existing object * @param object $newObject The new object */ - public function replace($existingObject, $newObject) - { - } + public function replace($existingObject, $newObject) {} /** * Replaces an existing object with the same identifier by the given object * * @param object $modifiedObject The modified object */ - public function update($modifiedObject) - { - } + public function update($modifiedObject) {} /** * Returns all objects of this repository add()ed but not yet persisted to @@ -182,9 +174,7 @@ abstract class AbstractRepository implements RepositoryInterface, SingletonInter * Removes all objects of this repository as if remove() was called for * all of them. */ - public function removeAll() - { - } + public function removeAll() {} /** * Finds an object matching the given identifier. diff --git a/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php b/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php index f95073070931ec245aa06a64e4ac2dffaf383261..38bb6ed4086756bf45a2dbb5a2cbc3698c2702fc 100644 --- a/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php +++ b/typo3/sysext/core/Classes/Resource/Driver/LocalDriver.php @@ -119,9 +119,7 @@ class LocalDriver extends AbstractHierarchicalFilesystemDriver implements Stream * Initializes this object. This is called by the storage after the driver * has been attached. */ - public function initialize() - { - } + public function initialize() {} /** * Determines the base URL for this driver, from the configuration or diff --git a/typo3/sysext/core/Classes/Resource/Exception.php b/typo3/sysext/core/Classes/Resource/Exception.php index 6ee529780fc92b9e5ee053495dda7bc19f0f3e22..406404b822d1e98c8f606897042f7896d9be2e7e 100644 --- a/typo3/sysext/core/Classes/Resource/Exception.php +++ b/typo3/sysext/core/Classes/Resource/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource; /** * An exception when something is wrong with the file handling */ -class Exception extends \TYPO3\CMS\Core\Exception -{ -} +class Exception extends \TYPO3\CMS\Core\Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/AbstractFileOperationException.php b/typo3/sysext/core/Classes/Resource/Exception/AbstractFileOperationException.php index a82f8b805337ece0597f7fbcd5c47077fbf26c69..d06773df19c5cd0330d7cd26168c9c03f1a9c65f 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/AbstractFileOperationException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/AbstractFileOperationException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -abstract class AbstractFileOperationException extends Exception -{ -} +abstract class AbstractFileOperationException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFileNameException.php b/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFileNameException.php index 2e2416086544a545a8f7c7655a00c72231d5579e..a7539432db6d3fed7212d811a8cf44400b226d6f 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFileNameException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFileNameException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class ExistingTargetFileNameException extends Exception -{ -} +class ExistingTargetFileNameException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFolderException.php b/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFolderException.php index 9c3892e6db720e0e57fc52fef99d1cb38e11d6e5..a8053a54fcab5c5e9ac7c7511f21e6919801cb63 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFolderException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/ExistingTargetFolderException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class ExistingTargetFolderException extends Exception -{ -} +class ExistingTargetFolderException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/FileDoesNotExistException.php b/typo3/sysext/core/Classes/Resource/Exception/FileDoesNotExistException.php index 25e74c85ab3bd79a0f9e9177e01a0ac1f4077f61..058a2660765a00873c59baf9a70ff5afaabc576d 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/FileDoesNotExistException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/FileDoesNotExistException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception to throw if a file does not exist */ -class FileDoesNotExistException extends ResourceDoesNotExistException -{ -} +class FileDoesNotExistException extends ResourceDoesNotExistException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/FileOperationErrorException.php b/typo3/sysext/core/Classes/Resource/Exception/FileOperationErrorException.php index 0d0bd04ccab12a6dd8a0148306e3747942683869..1777ca87c4cce141269ab10f292123446cbf4efb 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/FileOperationErrorException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/FileOperationErrorException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class FileOperationErrorException extends AbstractFileOperationException -{ -} +class FileOperationErrorException extends AbstractFileOperationException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/FolderDoesNotExistException.php b/typo3/sysext/core/Classes/Resource/Exception/FolderDoesNotExistException.php index 6cb160ef9ac4b140e31543bdc7e09769cd04e333..7702b9f7c541b5740c125d16ca184572dc6a0cc4 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/FolderDoesNotExistException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/FolderDoesNotExistException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception to throw if a folder does not exist */ -class FolderDoesNotExistException extends ResourceDoesNotExistException -{ -} +class FolderDoesNotExistException extends ResourceDoesNotExistException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/IllegalFileExtensionException.php b/typo3/sysext/core/Classes/Resource/Exception/IllegalFileExtensionException.php index 94601104544cdb243df8e877a4d58db25ff10910..cb54901a54cf3af7c0a1db865d550fa354122cfa 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/IllegalFileExtensionException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/IllegalFileExtensionException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class IllegalFileExtensionException extends Exception -{ -} +class IllegalFileExtensionException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileAccessPermissionsException.php b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileAccessPermissionsException.php index 0f300bb0357773043ccaff527bbb6f68036ab3cb..e034ae8863a560228d8bd8a5fd76a1b8149e65dd 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileAccessPermissionsException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileAccessPermissionsException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InsufficientFileAccessPermissionsException extends Exception -{ -} +class InsufficientFileAccessPermissionsException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileReadPermissionsException.php b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileReadPermissionsException.php index dc00ba1043783416932cb53973742a2e678dd5c0..fb0dc5f6dfd7aa9a8841053aaebe094dc3a8f13a 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileReadPermissionsException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileReadPermissionsException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InsufficientFileReadPermissionsException extends InsufficientFileAccessPermissionsException -{ -} +class InsufficientFileReadPermissionsException extends InsufficientFileAccessPermissionsException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileWritePermissionsException.php b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileWritePermissionsException.php index 04ae67cbf2bd1442b6d72d9489eb011015c20017..34c818580062cdcfb76c730344159dd94d615c9e 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileWritePermissionsException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFileWritePermissionsException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InsufficientFileWritePermissionsException extends InsufficientFileAccessPermissionsException -{ -} +class InsufficientFileWritePermissionsException extends InsufficientFileAccessPermissionsException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderAccessPermissionsException.php b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderAccessPermissionsException.php index 6bd4c8efdf99534c02d62ed41ad21896831e2454..47a2bf0d3beaaad2da9bf4366519649e13145a85 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderAccessPermissionsException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderAccessPermissionsException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InsufficientFolderAccessPermissionsException extends Exception -{ -} +class InsufficientFolderAccessPermissionsException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderReadPermissionsException.php b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderReadPermissionsException.php index 8e26c651015ce3577bf7263736b6eda8b6b7ec61..11dcf2c5834f14688bcaf76ec266593c887d5e8d 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderReadPermissionsException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderReadPermissionsException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InsufficientFolderReadPermissionsException extends InsufficientFolderAccessPermissionsException -{ -} +class InsufficientFolderReadPermissionsException extends InsufficientFolderAccessPermissionsException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderWritePermissionsException.php b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderWritePermissionsException.php index 9362109df378a7490fe10de4422b2871b3c01c2f..4f709f68a950479ff98c502adcc4a506eaba02f2 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderWritePermissionsException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InsufficientFolderWritePermissionsException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InsufficientFolderWritePermissionsException extends InsufficientFolderAccessPermissionsException -{ -} +class InsufficientFolderWritePermissionsException extends InsufficientFolderAccessPermissionsException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InsufficientUserPermissionsException.php b/typo3/sysext/core/Classes/Resource/Exception/InsufficientUserPermissionsException.php index e0efe365b1e4338c0fa079fb717952021a3d6e56..5faf58f71b20f625b95a54906d9d120c532de6b5 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InsufficientUserPermissionsException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InsufficientUserPermissionsException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InsufficientUserPermissionsException extends Exception -{ -} +class InsufficientUserPermissionsException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidConfigurationException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidConfigurationException.php index 3fd5035720a96abcd2e4d3b02cc0c1c137517a9b..07f4f1df19d2918df984b942ef436fcdaf969a81 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidConfigurationException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidConfigurationException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the configuration */ -class InvalidConfigurationException extends Exception -{ -} +class InvalidConfigurationException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidFileException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidFileException.php index bd08e5e0885f0095dbb33093cf0f9511a9963811..9433c83a0164f9edc2fa7a78ee6df9e428016741 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidFileException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidFileException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the File */ -class InvalidFileException extends Exception -{ -} +class InvalidFileException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidFileNameException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidFileNameException.php index 02a12ad7e786527762944c76964d4c879d701cd8..79b9ff2e0b18979d190a4e86f91b4a43ad76047e 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidFileNameException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidFileNameException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the File name */ -class InvalidFileNameException extends Exception -{ -} +class InvalidFileNameException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidFolderException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidFolderException.php index 6e49001d5e99a46d02e6ac5f9ba6d9cb1fdb7bb3..a6051eb1b59c549c7ff87ae01bbcf465653f5e41 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidFolderException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidFolderException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the Folder */ -class InvalidFolderException extends Exception -{ -} +class InvalidFolderException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidHashException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidHashException.php index 3279f8deceaa0c29191cc655225f92c464a6db80..1d57be76292ac4f47ad48c448c149bd60cfe7fd0 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidHashException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidHashException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Resource\Exception; * An exception when something is wrong with the Hash * Is thrown for example when the driver returns an unexpected (non-string) hash value */ -class InvalidHashException extends Exception -{ -} +class InvalidHashException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidPathException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidPathException.php index b390e53592f201c62d46cbd08a2a8d75b8de2950..0efa7e5682a8d00cf084d259b8671964d81a7008 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidPathException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidPathException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the path */ -class InvalidPathException extends Exception -{ -} +class InvalidPathException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidTargetFolderException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidTargetFolderException.php index 77da64ee86112d14b9e6d7a5b07bf7268a933fe3..0cf90746354887abae1393198788c96b9951677e 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidTargetFolderException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidTargetFolderException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the file handling */ -class InvalidTargetFolderException extends Exception -{ -} +class InvalidTargetFolderException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/InvalidUidException.php b/typo3/sysext/core/Classes/Resource/Exception/InvalidUidException.php index 75af07af4f06c773cc23b143bbc121563c788246..cdad06faa818df486a619185d4b3ec1c4d2bf7c7 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/InvalidUidException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/InvalidUidException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * Thrown if an invalid uid is handled. */ -class InvalidUidException extends Exception -{ -} +class InvalidUidException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/NotInMountPointException.php b/typo3/sysext/core/Classes/Resource/Exception/NotInMountPointException.php index f10d2ad60c3b1ad434d8059ee9c6819fe0619d73..dd799189e2d63396c2cba115c35982061cc14262 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/NotInMountPointException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/NotInMountPointException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception when something is wrong with the Mount Point */ -class NotInMountPointException extends Exception -{ -} +class NotInMountPointException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/ResourceDoesNotExistException.php b/typo3/sysext/core/Classes/Resource/Exception/ResourceDoesNotExistException.php index e6ec5b9665de48692b5948904260194a8e882522..d60403fd3d964859f8d704e7108fb0b8d2cf9dd7 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/ResourceDoesNotExistException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/ResourceDoesNotExistException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Resource\Exception; /** * An exception to throw if a resource (file/folder) does not exist */ -class ResourceDoesNotExistException extends Exception -{ -} +class ResourceDoesNotExistException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/ResourcePermissionsUnavailableException.php b/typo3/sysext/core/Classes/Resource/Exception/ResourcePermissionsUnavailableException.php index f0f5b252c320bc7de24cb0849e9256b71b5bb888..45fe7745e6ed6af1dde1065cc9796d474d1bd179 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/ResourcePermissionsUnavailableException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/ResourcePermissionsUnavailableException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Resource\Exception; * * Extending \RuntimeException for backwards compatibility. */ -class ResourcePermissionsUnavailableException extends Exception -{ -} +class ResourcePermissionsUnavailableException extends Exception {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/UploadException.php b/typo3/sysext/core/Classes/Resource/Exception/UploadException.php index 0944c22a8393dc5c5d910471f56efc1b86ffb9d1..7e35f4dcea69b49980615c25cc33969615e275c6 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/UploadException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/UploadException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception when the upload goes wrong */ -class UploadException extends AbstractFileOperationException -{ -} +class UploadException extends AbstractFileOperationException {} diff --git a/typo3/sysext/core/Classes/Resource/Exception/UploadSizeException.php b/typo3/sysext/core/Classes/Resource/Exception/UploadSizeException.php index 2ad4e07f6a16fdd4804ca19b2b2329e880767cc4..4164527264e4af6f05e25c5734acf2e3e7e70a1b 100644 --- a/typo3/sysext/core/Classes/Resource/Exception/UploadSizeException.php +++ b/typo3/sysext/core/Classes/Resource/Exception/UploadSizeException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Resource\Exception; /** * An exception when the size of the uploaded file has exceeded */ -class UploadSizeException extends AbstractFileOperationException -{ -} +class UploadSizeException extends AbstractFileOperationException {} diff --git a/typo3/sysext/core/Classes/Resource/Search/Result/FileSearchResultInterface.php b/typo3/sysext/core/Classes/Resource/Search/Result/FileSearchResultInterface.php index 5278359f63d705a85a50d55550058745ffb9aa7a..9c329b54185a3a78df1abdc85f8e5401bc7cb7fe 100644 --- a/typo3/sysext/core/Classes/Resource/Search/Result/FileSearchResultInterface.php +++ b/typo3/sysext/core/Classes/Resource/Search/Result/FileSearchResultInterface.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Core\Resource\Search\Result; * Representation of a result for a search for files performed by FileSearchQuery, * which is a collection of matching files. */ -interface FileSearchResultInterface extends \Countable, \Iterator -{ -} +interface FileSearchResultInterface extends \Countable, \Iterator {} diff --git a/typo3/sysext/core/Classes/Routing/Aspect/AspectInterface.php b/typo3/sysext/core/Classes/Routing/Aspect/AspectInterface.php index 2a91e55c31da7c32b71a591568c44345390a216b..e70b63eebe52625aeabf858550fc1f16dfcdd5c1 100644 --- a/typo3/sysext/core/Classes/Routing/Aspect/AspectInterface.php +++ b/typo3/sysext/core/Classes/Routing/Aspect/AspectInterface.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Routing\Aspect; /** * Base interface for all aspects */ -interface AspectInterface -{ -} +interface AspectInterface {} diff --git a/typo3/sysext/core/Classes/Routing/Aspect/PersistedMappableAspectInterface.php b/typo3/sysext/core/Classes/Routing/Aspect/PersistedMappableAspectInterface.php index f4a2e511c1312bf77112a40922dde8dc3e0bd49e..8fe3088f8a4568e5306782330e27db72aeb702ca 100644 --- a/typo3/sysext/core/Classes/Routing/Aspect/PersistedMappableAspectInterface.php +++ b/typo3/sysext/core/Classes/Routing/Aspect/PersistedMappableAspectInterface.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Core\Routing\Aspect; * Used for anything that invokes (more expensive) persistence invocations. * Basically used to improve performance by deferring their execution. */ -interface PersistedMappableAspectInterface extends MappableAspectInterface -{ -} +interface PersistedMappableAspectInterface extends MappableAspectInterface {} diff --git a/typo3/sysext/core/Classes/Routing/Aspect/StaticMappableAspectInterface.php b/typo3/sysext/core/Classes/Routing/Aspect/StaticMappableAspectInterface.php index 4fd09be065f631131d1590cc2c1a9726e3ce67d2..eea9ac17d2f3fb6943f21c85186aa0bbc8df124f 100644 --- a/typo3/sysext/core/Classes/Routing/Aspect/StaticMappableAspectInterface.php +++ b/typo3/sysext/core/Classes/Routing/Aspect/StaticMappableAspectInterface.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Routing\Aspect; /** * Used for anything that has a fixed list of values mapped against route arguments. */ -interface StaticMappableAspectInterface extends MappableAspectInterface -{ -} +interface StaticMappableAspectInterface extends MappableAspectInterface {} diff --git a/typo3/sysext/core/Classes/Routing/InvalidRouteArgumentsException.php b/typo3/sysext/core/Classes/Routing/InvalidRouteArgumentsException.php index fcd62fb0f5a3ff520ae33bbd389c5b25cf3ad29e..8490bc7a31b21c97814b08fac36931ab68bbd33d 100644 --- a/typo3/sysext/core/Classes/Routing/InvalidRouteArgumentsException.php +++ b/typo3/sysext/core/Classes/Routing/InvalidRouteArgumentsException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when a route does not exist or does not match the Route Arguments */ -class InvalidRouteArgumentsException extends Exception -{ -} +class InvalidRouteArgumentsException extends Exception {} diff --git a/typo3/sysext/core/Classes/Routing/RouteCollection.php b/typo3/sysext/core/Classes/Routing/RouteCollection.php index 3fe2b9a67c176f955bf45764667b56bc53e38623..b2d0c126dd1f03f8f73f763ebb3fe333f390067e 100644 --- a/typo3/sysext/core/Classes/Routing/RouteCollection.php +++ b/typo3/sysext/core/Classes/Routing/RouteCollection.php @@ -24,6 +24,4 @@ use Symfony\Component\Routing\RouteCollection as SymfonyRouteCollection; * * @internal as this is tightly coupled to Symfony's Routing and we try to encapsulate this, please note that this might change */ -class RouteCollection extends SymfonyRouteCollection -{ -} +class RouteCollection extends SymfonyRouteCollection {} diff --git a/typo3/sysext/core/Classes/Routing/RouteNotFoundException.php b/typo3/sysext/core/Classes/Routing/RouteNotFoundException.php index cf1e62518128f0fdc6df5227385312ae8fe51b69..0f2f03d648985f42b3106ceedcd016da8f2c71db 100644 --- a/typo3/sysext/core/Classes/Routing/RouteNotFoundException.php +++ b/typo3/sysext/core/Classes/Routing/RouteNotFoundException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when a route does not exist */ -class RouteNotFoundException extends Exception -{ -} +class RouteNotFoundException extends Exception {} diff --git a/typo3/sysext/core/Classes/Routing/RouteResultInterface.php b/typo3/sysext/core/Classes/Routing/RouteResultInterface.php index 3facadf7d6cddd6b3ad40ebfa99f5d8b6a2d8f36..decad1a6d5bcdbaa9c76dc45b5fc05b3415c729c 100644 --- a/typo3/sysext/core/Classes/Routing/RouteResultInterface.php +++ b/typo3/sysext/core/Classes/Routing/RouteResultInterface.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Routing; /** * An object that is usually returned by a Router to contain all results. */ -interface RouteResultInterface extends \ArrayAccess -{ -} +interface RouteResultInterface extends \ArrayAccess {} diff --git a/typo3/sysext/core/Classes/Routing/UnableToLinkToPageException.php b/typo3/sysext/core/Classes/Routing/UnableToLinkToPageException.php index 4a1bc5e6130c7a69c62e5107ad79055792181070..1ce551e0f038bbff5581c4f9951f272824f7a0d2 100644 --- a/typo3/sysext/core/Classes/Routing/UnableToLinkToPageException.php +++ b/typo3/sysext/core/Classes/Routing/UnableToLinkToPageException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * Exception thrown when a link to a page (or page in a specific translation) cannot be built. */ -class UnableToLinkToPageException extends Exception -{ -} +class UnableToLinkToPageException extends Exception {} diff --git a/typo3/sysext/core/Classes/Serializer/Exception/InvalidDataException.php b/typo3/sysext/core/Classes/Serializer/Exception/InvalidDataException.php index bced45ffd3e5cf618f5ae2060e65c8daf2eb182e..00121691bea2ec1d7df1d8c84a78adb725505a62 100644 --- a/typo3/sysext/core/Classes/Serializer/Exception/InvalidDataException.php +++ b/typo3/sysext/core/Classes/Serializer/Exception/InvalidDataException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * An exception if something is wrong with the data to be encoded or decoded */ -class InvalidDataException extends Exception -{ -} +class InvalidDataException extends Exception {} diff --git a/typo3/sysext/core/Classes/Session/Backend/Exception/AbstractBackendException.php b/typo3/sysext/core/Classes/Session/Backend/Exception/AbstractBackendException.php index 29329632e807be5a6af71aead321f1acd7e4ee81..0374dcc5f3762092f16c110a75be9e2cf537d91f 100644 --- a/typo3/sysext/core/Classes/Session/Backend/Exception/AbstractBackendException.php +++ b/typo3/sysext/core/Classes/Session/Backend/Exception/AbstractBackendException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception; /** * An abstract session backend exception, specific exceptions extend this. */ -abstract class AbstractBackendException extends Exception -{ -} +abstract class AbstractBackendException extends Exception {} diff --git a/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotCreatedException.php b/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotCreatedException.php index 5662d583bc95ebd690ee6e691eaa5b30ca8a59d3..941e053a2ac1c41dfe3b0832e57ac7749017ab4f 100644 --- a/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotCreatedException.php +++ b/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotCreatedException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Session\Backend\Exception; /** * Class SessionNotCreatedException */ -class SessionNotCreatedException extends AbstractBackendException -{ -} +class SessionNotCreatedException extends AbstractBackendException {} diff --git a/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotFoundException.php b/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotFoundException.php index 97ff4902a4d076157dedc2b19a4227cabadb75b5..1bbe87494a9f2565811a4fc3ed6226d702a85a24 100644 --- a/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotFoundException.php +++ b/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotFoundException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Session\Backend\Exception; /** * Class SessionNotFoundException */ -class SessionNotFoundException extends AbstractBackendException -{ -} +class SessionNotFoundException extends AbstractBackendException {} diff --git a/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotUpdatedException.php b/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotUpdatedException.php index eca5d64f208cdcd46aded9c24210dc1b9e9ffc03..72c103c0464c4c125afeb315e3600283e0c0f9d3 100644 --- a/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotUpdatedException.php +++ b/typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotUpdatedException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Session\Backend\Exception; /** * Class SessionNotUpdatedException */ -class SessionNotUpdatedException extends AbstractBackendException -{ -} +class SessionNotUpdatedException extends AbstractBackendException {} diff --git a/typo3/sysext/core/Classes/SingletonInterface.php b/typo3/sysext/core/Classes/SingletonInterface.php index 139f534c4a1a4aaafc72fdf54b05b0f2b83d99b2..8c95257de00bd258472d07317afe80552c9ccd68 100644 --- a/typo3/sysext/core/Classes/SingletonInterface.php +++ b/typo3/sysext/core/Classes/SingletonInterface.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Core; * "empty" interface for singletons (marker interface pattern) * @see \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance() */ -interface SingletonInterface -{ -} +interface SingletonInterface {} diff --git a/typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php b/typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php index 5575dcf080046a49bad0b8802559f41d332fbb43..f79125daea81d26a021bd6935aae9fdb65b720ff 100644 --- a/typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php +++ b/typo3/sysext/core/Classes/Tree/TableConfiguration/DatabaseTreeDataProvider.php @@ -192,9 +192,7 @@ class DatabaseTreeDataProvider extends AbstractTableConfigurationTreeDataProvide * * @param TreeNode $node */ - public function getNodes(TreeNode $node) - { - } + public function getNodes(TreeNode $node) {} /** * Gets the root node diff --git a/typo3/sysext/core/Classes/Type/Exception.php b/typo3/sysext/core/Classes/Type/Exception.php index a205a841088ddf5ed73b25d8d5dbca5379bfa371..0f196424c9188bf23b7eedb8556cf5e7d339f464 100644 --- a/typo3/sysext/core/Classes/Type/Exception.php +++ b/typo3/sysext/core/Classes/Type/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Type; /** * A generic Type exception */ -class Exception extends \TYPO3\CMS\Core\Exception -{ -} +class Exception extends \TYPO3\CMS\Core\Exception {} diff --git a/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationDefinitionException.php b/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationDefinitionException.php index 51f3987c8c90d0850bf65133a22830bd33f3786b..b56cb19342f316ffa8db1b6bd78ef8adf10dfb79 100644 --- a/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationDefinitionException.php +++ b/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationDefinitionException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Type\Exception; /** * Exception for an invalid enumeration definition */ -class InvalidEnumerationDefinitionException extends Exception -{ -} +class InvalidEnumerationDefinitionException extends Exception {} diff --git a/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationValueException.php b/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationValueException.php index 1d42a7fef7b18164cc0ab51fd3a696118bff4efa..df5d746657ffd1ae5354f19edd6c5781f3a98d25 100644 --- a/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationValueException.php +++ b/typo3/sysext/core/Classes/Type/Exception/InvalidEnumerationValueException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Type\Exception; /** * Exception for an invalid enumeration value */ -class InvalidEnumerationValueException extends Exception implements InvalidValueExceptionInterface -{ -} +class InvalidEnumerationValueException extends Exception implements InvalidValueExceptionInterface {} diff --git a/typo3/sysext/core/Classes/Type/Exception/InvalidValueExceptionInterface.php b/typo3/sysext/core/Classes/Type/Exception/InvalidValueExceptionInterface.php index f5a47ecf374a4613f99d41d5f99c92372ec9b08d..89c61e8389906ffec3d558f11afd735086f1d04d 100644 --- a/typo3/sysext/core/Classes/Type/Exception/InvalidValueExceptionInterface.php +++ b/typo3/sysext/core/Classes/Type/Exception/InvalidValueExceptionInterface.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Core\Type\Exception; /** * Interface for Invalid value exception */ -interface InvalidValueExceptionInterface -{ -} +interface InvalidValueExceptionInterface {} diff --git a/typo3/sysext/core/Classes/Utility/Exception/MissingArrayPathException.php b/typo3/sysext/core/Classes/Utility/Exception/MissingArrayPathException.php index 4801a1587ccba2d55d4a43f310d88b01110512a3..3d0ceb154178fc890ee926cedc27ea6aaa416110 100644 --- a/typo3/sysext/core/Classes/Utility/Exception/MissingArrayPathException.php +++ b/typo3/sysext/core/Classes/Utility/Exception/MissingArrayPathException.php @@ -24,6 +24,4 @@ namespace TYPO3\CMS\Core\Utility\Exception; * Note this extends from \RuntimeException to be backwards compatible with the * formerly thrown \RuntimeException in the method. */ -class MissingArrayPathException extends \RuntimeException -{ -} +class MissingArrayPathException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Utility/Exception/NotImplementedMethodException.php b/typo3/sysext/core/Classes/Utility/Exception/NotImplementedMethodException.php index eb22ccec9b33d553818d39950184a4b6e7ef2d5f..75685c7c8fd5c665da704ef760bd747092738c2e 100644 --- a/typo3/sysext/core/Classes/Utility/Exception/NotImplementedMethodException.php +++ b/typo3/sysext/core/Classes/Utility/Exception/NotImplementedMethodException.php @@ -23,6 +23,4 @@ namespace TYPO3\CMS\Core\Utility\Exception; * Note this extends from \RuntimeException to be backwards compatible with the * formerly thrown \RuntimeException in the methods. */ -class NotImplementedMethodException extends \RuntimeException -{ -} +class NotImplementedMethodException extends \RuntimeException {} diff --git a/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php b/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php index 806c1917a1b36e04f18977087809c1f62d5b078e..a5c22e7da5ab4d9fe247f2c267a7f095fabacdf7 100644 --- a/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php +++ b/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php @@ -1087,7 +1087,7 @@ class ExtendedFileUtility extends BasicFileUtility ]; } $uploadedFileData['name'] = array_map( - static fn (string $name) => \Normalizer::normalize($name), + static fn(string $name) => \Normalizer::normalize($name), $uploadedFileData['name'] ); $resultObjects = []; diff --git a/typo3/sysext/core/Classes/Utility/GeneralUtility.php b/typo3/sysext/core/Classes/Utility/GeneralUtility.php index 8c22887f0810563b05c751dab991bdbd7650ce73..fa57cf9f5a5f156320f07505f1dba19454e9ab5a 100644 --- a/typo3/sysext/core/Classes/Utility/GeneralUtility.php +++ b/typo3/sysext/core/Classes/Utility/GeneralUtility.php @@ -85,9 +85,7 @@ class GeneralUtility */ protected static $indpEnvCache = []; - final private function __construct() - { - } + final private function __construct() {} /************************* * @@ -1008,7 +1006,7 @@ class GeneralUtility $result = explode($delim, (string)$string) ?: []; if ($removeEmptyValues) { // Remove items that are just whitespace, but leave whitespace intact for the rest. - $result = array_values(array_filter($result, static fn ($item) => trim($item) !== '')); + $result = array_values(array_filter($result, static fn($item) => trim($item) !== '')); } if ($limit === 0) { diff --git a/typo3/sysext/core/Classes/Utility/String/StringFragmentCollection.php b/typo3/sysext/core/Classes/Utility/String/StringFragmentCollection.php index c00133734b9056be9b5e3ce0f6dedcd058e1e6ea..d20a51f5496fa53c210f68779107cd07f1652d4a 100644 --- a/typo3/sysext/core/Classes/Utility/String/StringFragmentCollection.php +++ b/typo3/sysext/core/Classes/Utility/String/StringFragmentCollection.php @@ -34,7 +34,7 @@ class StringFragmentCollection implements \Countable public function __construct(StringFragment ...$fragments) { - $lengths = array_map(static fn (StringFragment $fragment) => $fragment->getLength(), $fragments); + $lengths = array_map(static fn(StringFragment $fragment) => $fragment->getLength(), $fragments); $this->length = array_sum($lengths); $this->fragments = $fragments; } @@ -63,7 +63,7 @@ class StringFragmentCollection implements \Countable { $fragments = array_filter( $this->fragments, - static fn (StringFragment $item) => $item->getType() === $type + static fn(StringFragment $item) => $item->getType() === $type ); return new self(...$fragments); } @@ -72,7 +72,7 @@ class StringFragmentCollection implements \Countable { $fragments = array_filter( $this->fragments, - static fn (StringFragment $item) => $item->getType() !== $type + static fn(StringFragment $item) => $item->getType() !== $type ); return new self(...$fragments); } @@ -95,7 +95,7 @@ class StringFragmentCollection implements \Countable $otherFragmentIdents = $other->getFragmentIdents(); $differentFragments = array_filter( $this->fragments, - static fn (StringFragment $item) => !in_array($item->getIdent(), $otherFragmentIdents, true) + static fn(StringFragment $item) => !in_array($item->getIdent(), $otherFragmentIdents, true) ); return new self(...$differentFragments); } @@ -105,7 +105,7 @@ class StringFragmentCollection implements \Countable $otherFragmentIdents = $other->getFragmentIdents(); $sameFragments = array_filter( $this->fragments, - static fn (StringFragment $item) => in_array($item->getIdent(), $otherFragmentIdents, true) + static fn(StringFragment $item) => in_array($item->getIdent(), $otherFragmentIdents, true) ); return new self(...$sameFragments); } @@ -115,6 +115,6 @@ class StringFragmentCollection implements \Countable */ protected function getFragmentIdents(): array { - return array_map(static fn (StringFragment $item) => $item->getIdent(), $this->fragments); + return array_map(static fn(StringFragment $item) => $item->getIdent(), $this->fragments); } } diff --git a/typo3/sysext/core/Classes/Utility/String/StringFragmentSplitter.php b/typo3/sysext/core/Classes/Utility/String/StringFragmentSplitter.php index 9607ab46a77d24768b57ac2f7ca1b92f9c44f861..e2cbf6ef2ff5f6f041384dc7a9ae44a42251d626 100644 --- a/typo3/sysext/core/Classes/Utility/String/StringFragmentSplitter.php +++ b/typo3/sysext/core/Classes/Utility/String/StringFragmentSplitter.php @@ -71,7 +71,7 @@ class StringFragmentSplitter // filters string keys (e.g. `expression_a1b2c3d4e5`) from matches, skips numeric indexes $types = array_filter( array_keys($match), - static fn ($type) => is_string($type) && $type !== '' + static fn($type) => is_string($type) && $type !== '' ); foreach ($types as $type) { $matchOffset = $match[$type][1]; @@ -103,7 +103,7 @@ class StringFragmentSplitter protected function preparePatterns(): array { return array_map( - static fn (StringFragmentPattern $pattern) => $pattern->compilePattern(), + static fn(StringFragmentPattern $pattern) => $pattern->compilePattern(), $this->patterns ); } diff --git a/typo3/sysext/core/Tests/Functional/Html/Fixtures/ExtendedSanitizerBuilder.php b/typo3/sysext/core/Tests/Functional/Html/Fixtures/ExtendedSanitizerBuilder.php index 53f212c9c21b72926f885b55d88743ce463cf81f..875f58a702af0fa4f5cce0a6bd70a6bc1e31d423 100644 --- a/typo3/sysext/core/Tests/Functional/Html/Fixtures/ExtendedSanitizerBuilder.php +++ b/typo3/sysext/core/Tests/Functional/Html/Fixtures/ExtendedSanitizerBuilder.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Html\DefaultSanitizerBuilder; * Extends default builder, just to ensure internal behavior * is cached in-memory for corresponding class scope. */ -class ExtendedSanitizerBuilder extends DefaultSanitizerBuilder -{ -} +class ExtendedSanitizerBuilder extends DefaultSanitizerBuilder {} diff --git a/typo3/sysext/core/Tests/Unit/Cache/Backend/Fixtures/ConcreteBackendFixture.php b/typo3/sysext/core/Tests/Unit/Cache/Backend/Fixtures/ConcreteBackendFixture.php index dee0359a7494c35a3fde9a9bb67a137914d61cad..42f81361b4a47f852974b7b8af9a0691b8c5a963 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Backend/Fixtures/ConcreteBackendFixture.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Backend/Fixtures/ConcreteBackendFixture.php @@ -26,37 +26,21 @@ class ConcreteBackendFixture extends AbstractBackend { protected string $someOption; - public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void - { - } + public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void {} - public function get($entryIdentifier) - { - } + public function get($entryIdentifier) {} - public function has($entryIdentifier) - { - } + public function has($entryIdentifier) {} - public function remove($entryIdentifier) - { - } + public function remove($entryIdentifier) {} - public function flush(): void - { - } + public function flush(): void {} - public function flushByTag($tag): void - { - } + public function flushByTag($tag): void {} - public function findIdentifiersByTag($tag): void - { - } + public function findIdentifiersByTag($tag): void {} - public function collectGarbage(): void - { - } + public function collectGarbage(): void {} public function setSomeOption($value): void { diff --git a/typo3/sysext/core/Tests/Unit/Cache/Fixtures/BackendFixture.php b/typo3/sysext/core/Tests/Unit/Cache/Fixtures/BackendFixture.php index 1412df7d6f25fd0635173fc3a6fdec428505125e..3d411024ef199e5594b3027d825599ceae13947a 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Fixtures/BackendFixture.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Fixtures/BackendFixture.php @@ -25,31 +25,17 @@ use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface; */ class BackendFixture implements BackendInterface { - public function setCache(FrontendInterface $cache): void - { - } + public function setCache(FrontendInterface $cache): void {} - public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void - { - } + public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void {} - public function get($entryIdentifier) - { - } + public function get($entryIdentifier) {} - public function has($entryIdentifier) - { - } + public function has($entryIdentifier) {} - public function remove($entryIdentifier) - { - } + public function remove($entryIdentifier) {} - public function flush(): void - { - } + public function flush(): void {} - public function collectGarbage(): void - { - } + public function collectGarbage(): void {} } diff --git a/typo3/sysext/core/Tests/Unit/Cache/Fixtures/FrontendFixture.php b/typo3/sysext/core/Tests/Unit/Cache/Fixtures/FrontendFixture.php index 6ee7088172ce541e642e92cda54b4d8b8d7303a7..6b13f5ddfee642d551380cb6664a3774e280ef76 100644 --- a/typo3/sysext/core/Tests/Unit/Cache/Fixtures/FrontendFixture.php +++ b/typo3/sysext/core/Tests/Unit/Cache/Fixtures/FrontendFixture.php @@ -36,47 +36,25 @@ class FrontendFixture implements FrontendInterface return $this->identifier; } - public function getBackend() - { - } + public function getBackend() {} - public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void - { - } + public function set($entryIdentifier, $data, array $tags = [], $lifetime = null): void {} - public function get($entryIdentifier) - { - } + public function get($entryIdentifier) {} - public function has($entryIdentifier) - { - } + public function has($entryIdentifier) {} - public function remove($entryIdentifier) - { - } + public function remove($entryIdentifier) {} - public function flush(): void - { - } + public function flush(): void {} - public function flushByTag($tag): void - { - } + public function flushByTag($tag): void {} - public function flushByTags(array $tags): void - { - } + public function flushByTags(array $tags): void {} - public function collectGarbage(): void - { - } + public function collectGarbage(): void {} - public function isValidEntryIdentifier($identifier) - { - } + public function isValidEntryIdentifier($identifier) {} - public function isValidTag($tag) - { - } + public function isValidTag($tag) {} } diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php index 6077a8d7b20bd2be4203b8476cf9add832e6d26f..e34f2db9625e85d1248a7b82d08b42e2d6077a2a 100644 --- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php +++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Core\Fixtures\test_extension\Resources\PHP; /** * Class Test */ -class AnotherTestFile -{ -} +class AnotherTestFile {} diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php index 7c404ea9deba4a7ca106a356ffb25b12a7a8be1c..41a0f91a95fe6bb545c9df39008c9efc65574d9d 100644 --- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php +++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Core\Fixtures\test_extension\Resources\PHP\S /** * Class Test */ -class SubdirectoryTest -{ -} +class SubdirectoryTest {} diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php index eecb6036d3451ea88f200eabed4ecbdcb42132da..aaec814df9276e832e5070e53e83cc4cf5b914e7 100644 --- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php +++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Core\Fixtures\test_extension\Resources\PHP; /** * Class Test */ -class Test -{ -} +class Test {} diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php index e47c94a8736a2f6a1e7aafdd535ac42cc33de820..7499f0816eb4465a3af7852cb4cbbc65529d9dfa 100644 --- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php +++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php @@ -15,6 +15,4 @@ declare(strict_types=1); * The TYPO3 project - inspiring people to share! */ -class TestClass -{ -} +class TestClass {} diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php index 780313428c5bf7b675d143bcafb911cb1c989a6b..e87815bdd8d8b49508ebb05e8e1cb5045ff42f63 100644 --- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php +++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php @@ -18,6 +18,4 @@ declare(strict_types=1); /** * Class ext_update */ -class ext_update -{ -} +class ext_update {} diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/InvalidHookFixture.php b/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/InvalidHookFixture.php index 3198378db8eb307e1eec86bf710b5e9ae18dd037..48a9bbca56f181bc8ab85935f76b52a5c692c6ab 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/InvalidHookFixture.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/InvalidHookFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\DataHandling\Fixtures; /** * Fixture invalid hook */ -class InvalidHookFixture -{ -} +class InvalidHookFixture {} diff --git a/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/UserOddNumberFilter.php b/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/UserOddNumberFilter.php index 07cb2a5ea3db1a6cbd79ba3a83b93725a3b06d35..f5defe43619404bfa141e0c4b92cc02845f1b812 100644 --- a/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/UserOddNumberFilter.php +++ b/typo3/sysext/core/Tests/Unit/DataHandling/Fixtures/UserOddNumberFilter.php @@ -27,9 +27,9 @@ class UserOddNumberFilter return null; } $values = $parameters['values']; - $values = array_filter($values, static fn ($number) => $number % 2 !== 0); + $values = array_filter($values, static fn($number) => $number % 2 !== 0); if (isset($parameters['exclude'])) { - $values = array_filter($values, static fn ($number) => $number !== $parameters['exclude']); + $values = array_filter($values, static fn($number) => $number !== $parameters['exclude']); } return $values; } diff --git a/typo3/sysext/core/Tests/Unit/Database/Mocks/InstantiatableAbstractRestrictionContainer.php b/typo3/sysext/core/Tests/Unit/Database/Mocks/InstantiatableAbstractRestrictionContainer.php index 2803b76de5eb0c6962efab38b733e0c895737a4c..121496d8b89139fe1ed49e78d34a171bcf3449b4 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Mocks/InstantiatableAbstractRestrictionContainer.php +++ b/typo3/sysext/core/Tests/Unit/Database/Mocks/InstantiatableAbstractRestrictionContainer.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Database\Mocks; use TYPO3\CMS\Core\Database\Query\Restriction\AbstractRestrictionContainer; -class InstantiatableAbstractRestrictionContainer extends AbstractRestrictionContainer -{ -} +class InstantiatableAbstractRestrictionContainer extends AbstractRestrictionContainer {} diff --git a/typo3/sysext/core/Tests/Unit/Database/Mocks/MockPlatform.php b/typo3/sysext/core/Tests/Unit/Database/Mocks/MockPlatform.php index 543f7cd4232626618d5a9a38d7ca4edd6827e84e..7baf61ce79ce9ca0b4b65825d7ecaab67bda0b69 100644 --- a/typo3/sysext/core/Tests/Unit/Database/Mocks/MockPlatform.php +++ b/typo3/sysext/core/Tests/Unit/Database/Mocks/MockPlatform.php @@ -138,9 +138,7 @@ class MockPlatform extends AbstractPlatform /** * Lazy load Doctrine Type Mappings. */ - protected function initializeDoctrineTypeMappings(): void - { - } + protected function initializeDoctrineTypeMappings(): void {} /** * @param int $length diff --git a/typo3/sysext/core/Tests/Unit/FormProtection/Fixtures/FormProtectionTesting.php b/typo3/sysext/core/Tests/Unit/FormProtection/Fixtures/FormProtectionTesting.php index c6062f9e8bbca0a758ba40ba2b93ab629a1679da..5ab698a29c078e76ab00b5f8cf1b3c10936d9f7b 100644 --- a/typo3/sysext/core/Tests/Unit/FormProtection/Fixtures/FormProtectionTesting.php +++ b/typo3/sysext/core/Tests/Unit/FormProtection/Fixtures/FormProtectionTesting.php @@ -41,7 +41,5 @@ class FormProtectionTesting extends AbstractFormProtection * Saves the tokens so that they can be used by a later incarnation of this * class. */ - public function persistSessionToken(): void - { - } + public function persistSessionToken(): void {} } diff --git a/typo3/sysext/core/Tests/Unit/Http/ClientTest.php b/typo3/sysext/core/Tests/Unit/Http/ClientTest.php index d7ed13dea60b23ec4fcf5acad0edf1896d697f00..e45e13b52e4012a61b3848465c4d8b910b65878c 100644 --- a/typo3/sysext/core/Tests/Unit/Http/ClientTest.php +++ b/typo3/sysext/core/Tests/Unit/Http/ClientTest.php @@ -125,8 +125,7 @@ class ClientTest extends UnitTestCase { $request = new Request('https://example.com', 'GET', 'php://temp'); $mock = new GuzzleMockHandler([ - new class () extends \RuntimeException implements GuzzleExceptionInterface { - }, + new class () extends \RuntimeException implements GuzzleExceptionInterface {}, ]); $handler = GuzzleHandlerStack::create($mock); $client = new Client(['handler' => $handler]); diff --git a/typo3/sysext/core/Tests/Unit/Locking/Fixtures/DummyLock.php b/typo3/sysext/core/Tests/Unit/Locking/Fixtures/DummyLock.php index 14682520466904de54349f9843093b7f9e80b66d..b5e8e1c0e232ce3db5539f44a20a642780ee2685 100644 --- a/typo3/sysext/core/Tests/Unit/Locking/Fixtures/DummyLock.php +++ b/typo3/sysext/core/Tests/Unit/Locking/Fixtures/DummyLock.php @@ -43,9 +43,7 @@ class DummyLock implements LockingStrategyInterface /** * @param string $subject ID to identify this lock in the system */ - public function __construct($subject) - { - } + public function __construct($subject) {} /** * Try to acquire a lock @@ -81,7 +79,5 @@ class DummyLock implements LockingStrategyInterface /** * Destroys the resource associated with the lock */ - public function destroy(): void - { - } + public function destroy(): void {} } diff --git a/typo3/sysext/core/Tests/Unit/Mail/Fixtures/FakeInvalidSpoolFixture.php b/typo3/sysext/core/Tests/Unit/Mail/Fixtures/FakeInvalidSpoolFixture.php index c36fee23f839fbb87f2dd92471c322ff4db4ac06..f1c3778c85e62b8e8ff41345ea932ca35d0be8b6 100644 --- a/typo3/sysext/core/Tests/Unit/Mail/Fixtures/FakeInvalidSpoolFixture.php +++ b/typo3/sysext/core/Tests/Unit/Mail/Fixtures/FakeInvalidSpoolFixture.php @@ -36,7 +36,5 @@ class FakeInvalidSpoolFixture return $this->settings; } - public function queueMessage(RawMessage $message): void - { - } + public function queueMessage(RawMessage $message): void {} } diff --git a/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php b/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php index a6b98c720a47431e7d3c3e1e8f430c5917ec7dbb..87d21b5e94c14621dac134788686c90b34d07e16 100644 --- a/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php +++ b/typo3/sysext/core/Tests/Unit/Site/Entity/SiteTest.php @@ -174,30 +174,22 @@ class SiteTest extends UnitTestCase $app = new class () extends Application { // This is ugly but php-cs-fixer insists. - public function __construct() - { - } + public function __construct() {} }; $link = new class () extends LinkService { // This is ugly but php-cs-fixer insists. - public function __construct() - { - } + public function __construct() {} }; $siteFinder = new class () extends SiteFinder { // This is ugly but php-cs-fixer insists. - public function __construct() - { - } + public function __construct() {} }; $cacheManager = new class () extends CacheManager { public function getCache($identifier) { return new class () extends PhpFrontend { // This is ugly but php-cs-fixer insists. - public function __construct() - { - } + public function __construct() {} }; } }; diff --git a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/Fixtures/TreeDataProviderFixture.php b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/Fixtures/TreeDataProviderFixture.php index fe2e7c0ff097811c75d2da65db3a2d61a4c139b8..4b1dfc817f2e2a5a715bb4c21f488e8da130320d 100644 --- a/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/Fixtures/TreeDataProviderFixture.php +++ b/typo3/sysext/core/Tests/Unit/Tree/TableConfiguration/Fixtures/TreeDataProviderFixture.php @@ -25,7 +25,5 @@ class TreeDataProviderFixture /** * @param array $configuration */ - public function __construct(array $configuration) - { - } + public function __construct(array $configuration) {} } diff --git a/typo3/sysext/core/Tests/Unit/Type/Fixture/Enumeration/MissingConstantsEnumeration.php b/typo3/sysext/core/Tests/Unit/Type/Fixture/Enumeration/MissingConstantsEnumeration.php index 4545e00b611d3e9ae86819ca994236296c05c3bb..3710f9abbaf329310a1d60ddfc6b8b9f30f462df 100644 --- a/typo3/sysext/core/Tests/Unit/Type/Fixture/Enumeration/MissingConstantsEnumeration.php +++ b/typo3/sysext/core/Tests/Unit/Type/Fixture/Enumeration/MissingConstantsEnumeration.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Type\Enumeration; /** * This is an invalid enumeration because no constants are defined */ -final class MissingConstantsEnumeration extends Enumeration -{ -} +final class MissingConstantsEnumeration extends Enumeration {} diff --git a/typo3/sysext/core/Tests/Unit/Utility/AccessibleProxies/ExtensionManagementUtilityAccessibleProxy.php b/typo3/sysext/core/Tests/Unit/Utility/AccessibleProxies/ExtensionManagementUtilityAccessibleProxy.php index 991c87099bb7c2edd55abcce8ddaa9259636b05c..0d8d6b3ec41690123652cb9a006a963bc158069f 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/AccessibleProxies/ExtensionManagementUtilityAccessibleProxy.php +++ b/typo3/sysext/core/Tests/Unit/Utility/AccessibleProxies/ExtensionManagementUtilityAccessibleProxy.php @@ -77,9 +77,7 @@ class ExtensionManagementUtilityAccessibleProxy extends ExtensionManagementUtili $GLOBALS['TCA'] = []; } - public static function dispatchTcaIsBeingBuiltEvent(array $tca): void - { - } + public static function dispatchTcaIsBeingBuiltEvent(array $tca): void {} public static function removeDuplicatesForInsertion($insertionList, $list = ''): string { diff --git a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php index 26613ee9fdb035d843fbb9c409d6c3ec842bf887..9bc6642b8f0902af867a84a7968230e56476db99 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/ArrayUtilityTest.php @@ -3441,13 +3441,13 @@ class ArrayUtilityTest extends UnitTestCase 'only keep2 key is kept' => [ $input, ['keep2' => 'keep'], - static fn ($key): bool => $key === 'keep2', + static fn($key): bool => $key === 'keep2', ARRAY_FILTER_USE_KEY, ], 'keys baz, keep1 and empty arrays are removed' => [ $input, ['foo' => 'remove', 'keep2' => 'keep'], - static fn ($value, $key): bool => $value !== [] && !in_array($key, ['baz', 'keep1'], true), + static fn($value, $key): bool => $value !== [] && !in_array($key, ['baz', 'keep1'], true), ARRAY_FILTER_USE_BOTH, ], ]; diff --git a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ExtendedSingletonClassFixture.php b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ExtendedSingletonClassFixture.php index 73033c3725f132ac3bc8f09c81e104f72631bcb3..dbc2cd3604921d41ab4acb8c436e51c69bb35512 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ExtendedSingletonClassFixture.php +++ b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ExtendedSingletonClassFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures; /** * Fixture for a class extending another singleton class */ -class ExtendedSingletonClassFixture extends SingletonClassFixture -{ -} +class ExtendedSingletonClassFixture extends SingletonClassFixture {} diff --git a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OriginalClassFixture.php b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OriginalClassFixture.php index 1c95fd4173b2f2cc8422eafeadd801f16440e590..f3fcc74f080c311725acc2fbe3613c9346d4f2d2 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OriginalClassFixture.php +++ b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OriginalClassFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures; /** * Fixture for an original class */ -class OriginalClassFixture -{ -} +class OriginalClassFixture {} diff --git a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OtherReplacementClassFixture.php b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OtherReplacementClassFixture.php index e97daa40add3a407d24375511f202d005248b45f..3595c0bdff8c0166b3853c482259f32d28bc0afe 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OtherReplacementClassFixture.php +++ b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/OtherReplacementClassFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures; /** * Fixture for a second replacement class for the original class */ -class OtherReplacementClassFixture extends ReplacementClassFixture -{ -} +class OtherReplacementClassFixture extends ReplacementClassFixture {} diff --git a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ParentClassFixture.php b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ParentClassFixture.php index 1aec995d79caf09ae1d4178e2a1ff4a0a72b0d99..4616574518668d266caa61e7e4fef70e4f8660a7 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ParentClassFixture.php +++ b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ParentClassFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures; /** * Fixture for a base class */ -class ParentClassFixture -{ -} +class ParentClassFixture {} diff --git a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ReplacementClassFixture.php b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ReplacementClassFixture.php index ef3f5e8b0314cd19c21c9b55577e3768a1e4487b..4e556548508fef1337c9f95710b26a2e4397c50c 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ReplacementClassFixture.php +++ b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/ReplacementClassFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Core\Tests\Unit\Utility\Fixtures; /** * Fixture for a replacement class for the original class */ -class ReplacementClassFixture extends OriginalClassFixture -{ -} +class ReplacementClassFixture extends OriginalClassFixture {} diff --git a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/SingletonClassFixture.php b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/SingletonClassFixture.php index 49e69866e9f9ae46a9d2eeca5fa17bebc6207597..81e713984d97fd3931ee6eee8af85bcc2185d883 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/Fixtures/SingletonClassFixture.php +++ b/typo3/sysext/core/Tests/Unit/Utility/Fixtures/SingletonClassFixture.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\SingletonInterface; /** * Fixture for a base singleton class */ -class SingletonClassFixture implements SingletonInterface -{ -} +class SingletonClassFixture implements SingletonInterface {} diff --git a/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php b/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php index c7a8a699b4ec538b7ac42f65ba0ad78d2ed21eb3..8075e3a77de7b4cf9a1eb20d0731648925313d72 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/PathUtilityPublicPathsTest.php @@ -114,27 +114,27 @@ class PathUtilityPublicPathsTest extends UnitTestCase 'public assets are resolved to absolute url' => [ 'EXT:core/Resources/Public/Icons/Extension.svg', '/typo3/sysext/core/Resources/Public/Icons/Extension.svg', - fn () => self::simulateTraditionalWebRequest(), + fn() => self::simulateTraditionalWebRequest(), ], 'public assets are resolved to relative url on cli' => [ 'EXT:core/Resources/Public/Icons/Extension.svg', 'typo3/sysext/core/Resources/Public/Icons/Extension.svg', - fn () => true, + fn() => true, ], 'public assets are resolved to absolute url with sub directory prefixed' => [ 'EXT:core/Resources/Public/Icons/Extension.svg', '/cms/typo3/sysext/core/Resources/Public/Icons/Extension.svg', - fn () => self::simulateTraditionalWebRequestInSubDirectory('/cms/'), + fn() => self::simulateTraditionalWebRequestInSubDirectory('/cms/'), ], 'public assets are resolved to absolute url of published assets in Composer mode' => [ 'EXT:core/Resources/Public/Icons/Extension.svg', '/_assets/d25de869aebcd01495d2fe67ad5b0e25/Icons/Extension.svg', - fn () => self::simulateWebRequestInComposerMode(), + fn() => self::simulateWebRequestInComposerMode(), ], 'public assets are resolved to absolute url of published assets in Composer mode with sub directory prefixed' => [ 'EXT:core/Resources/Public/Icons/Extension.svg', '/cms/_assets/d25de869aebcd01495d2fe67ad5b0e25/Icons/Extension.svg', - fn () => self::simulateWebRequestInComposerModeInSubDirectory('/cms/'), + fn() => self::simulateWebRequestInComposerModeInSubDirectory('/cms/'), ], ]; } diff --git a/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php index 381f439b5582022082d1677ce38771cf144a12a5..7f0163aa1867c16678d0866e27a84b0fa438a625 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/StringUtilityTest.php @@ -58,7 +58,7 @@ class StringUtilityTest extends UnitTestCase yield 'array' => [['1']]; yield 'null' => [null]; yield 'object' => [new \stdClass()]; - yield 'closure' => [static fn (): string => 'fn']; + yield 'closure' => [static fn(): string => 'fn']; // PHP interprets it as `lim(x→0) log(x) = -∞` yield 'infinite' => [log(0)]; // acos only supports values in range [-1; +1] @@ -100,7 +100,7 @@ class StringUtilityTest extends UnitTestCase yield 'array' => [['1']]; yield 'null' => [null]; yield 'object' => [new \stdClass()]; - yield 'closure' => [static fn (): string => 'fn']; + yield 'closure' => [static fn(): string => 'fn']; // PHP interprets it as `lim(x→0) log(x) = -∞` yield 'infinite' => [log(0)]; // acos only supports values in range [-1; +1] diff --git a/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php b/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php index 56eac433c58cb5ed2b62ccf2c8d6e95cf2beff35..3d463d97035d8b8b40c0ebf7e413f9324e45c136 100644 --- a/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php +++ b/typo3/sysext/core/Tests/UnitDeprecated/Utility/PathUtilityPublicPathsTest.php @@ -83,12 +83,12 @@ class PathUtilityPublicPathsTest extends UnitTestCase 'private assets are resolved to absolute url' => [ 'EXT:core/Resources/Private/Font/nimbus.ttf', '/typo3/sysext/core/Resources/Private/Font/nimbus.ttf', - fn () => self::simulateTraditionalWebRequest(), + fn() => self::simulateTraditionalWebRequest(), ], 'private assets are resolved to absolute url with sub directory prefixed' => [ 'EXT:core/Resources/Private/Font/nimbus.ttf', '/cms/typo3/sysext/core/Resources/Private/Font/nimbus.ttf', - fn () => self::simulateTraditionalWebRequestInSubDirectory('/cms/'), + fn() => self::simulateTraditionalWebRequestInSubDirectory('/cms/'), ], ]; } diff --git a/typo3/sysext/extbase/Classes/Annotation/Inject.php b/typo3/sysext/extbase/Classes/Annotation/Inject.php index 2abe1ce935254f5811da2f21662817b8f2b21dd6..a81283fc0515b30ce6ea642315794dbba923300b 100644 --- a/typo3/sysext/extbase/Classes/Annotation/Inject.php +++ b/typo3/sysext/extbase/Classes/Annotation/Inject.php @@ -22,6 +22,4 @@ namespace TYPO3\CMS\Extbase\Annotation; * @Target({"PROPERTY"}) * @deprecated since v11, will be removed in v12 */ -class Inject -{ -} +class Inject {} diff --git a/typo3/sysext/extbase/Classes/Annotation/ORM/Lazy.php b/typo3/sysext/extbase/Classes/Annotation/ORM/Lazy.php index 3e2fd9ccbfa017898a5fa865d3cb408ec17014f8..7b3bc8ae82fdb8f1e1ab26282405f5dc9123bcb9 100644 --- a/typo3/sysext/extbase/Classes/Annotation/ORM/Lazy.php +++ b/typo3/sysext/extbase/Classes/Annotation/ORM/Lazy.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Extbase\Annotation\ORM; * @Annotation * @Target({"PROPERTY"}) */ -class Lazy -{ -} +class Lazy {} diff --git a/typo3/sysext/extbase/Classes/Annotation/ORM/Transient.php b/typo3/sysext/extbase/Classes/Annotation/ORM/Transient.php index b562d0d40b2520e60b37d33577e3dea437493613..d0220b9298754e60910f45b8b28630e9b4e0c812 100644 --- a/typo3/sysext/extbase/Classes/Annotation/ORM/Transient.php +++ b/typo3/sysext/extbase/Classes/Annotation/ORM/Transient.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Extbase\Annotation\ORM; * @Annotation * @Target({"PROPERTY"}) */ -class Transient -{ -} +class Transient {} diff --git a/typo3/sysext/extbase/Classes/Configuration/Exception.php b/typo3/sysext/extbase/Classes/Configuration/Exception.php index e7827d7d5374892c89e126c30f3fce21a8ea9961..a47f892b9a43630936a20344a248f380942dbab7 100644 --- a/typo3/sysext/extbase/Classes/Configuration/Exception.php +++ b/typo3/sysext/extbase/Classes/Configuration/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; /** * A generic Configuration Exception */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Configuration/Exception/InvalidConfigurationTypeException.php b/typo3/sysext/extbase/Classes/Configuration/Exception/InvalidConfigurationTypeException.php index 142f0457c35bb10309b6428200d6d4bb7cf67063..251e78e72fe702ebbccc8be963bd4cc22f446ebf 100644 --- a/typo3/sysext/extbase/Classes/Configuration/Exception/InvalidConfigurationTypeException.php +++ b/typo3/sysext/extbase/Classes/Configuration/Exception/InvalidConfigurationTypeException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Configuration\Exception; /** * An Invalid Configuration Type Exception */ -class InvalidConfigurationTypeException extends Exception -{ -} +class InvalidConfigurationTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Configuration/Exception/ParseErrorException.php b/typo3/sysext/extbase/Classes/Configuration/Exception/ParseErrorException.php index 98c8df2b1947dbe6866ecda45f7794bb3839f6d2..07d0521bda5e705ed30261c7f97f4aabe85f66fa 100644 --- a/typo3/sysext/extbase/Classes/Configuration/Exception/ParseErrorException.php +++ b/typo3/sysext/extbase/Classes/Configuration/Exception/ParseErrorException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Configuration\Exception; /** * A Parse Error exception */ -class ParseErrorException extends Exception -{ -} +class ParseErrorException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Domain/Model/Folder.php b/typo3/sysext/extbase/Classes/Domain/Model/Folder.php index 6cfeee621c8fabeb2172ff8e9cf644433f37e5d6..0147e6737468212e1551fba2fca509fd87b30894 100644 --- a/typo3/sysext/extbase/Classes/Domain/Model/Folder.php +++ b/typo3/sysext/extbase/Classes/Domain/Model/Folder.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extbase\Domain\Model; /** * A folder object (File Abstraction Layer) */ -class Folder extends AbstractFileFolder -{ -} +class Folder extends AbstractFileFolder {} diff --git a/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserGroupRepository.php b/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserGroupRepository.php index a291c737afdc91e2cef39bb73210ff9fb3f76613..df21c96fe54d886c9302855680a10b5fd0faab31 100644 --- a/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserGroupRepository.php +++ b/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserGroupRepository.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Persistence\Repository; * * @deprecated since v11, will be removed in v12. Do not use or extend this model. */ -class FrontendUserGroupRepository extends Repository -{ -} +class FrontendUserGroupRepository extends Repository {} diff --git a/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserRepository.php b/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserRepository.php index 2ad7e679cc03060964197f0a67eca5209d2a37f6..72cadf898b681696119436cce0f2fe09cf8cfed0 100644 --- a/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserRepository.php +++ b/typo3/sysext/extbase/Classes/Domain/Repository/FrontendUserRepository.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Persistence\Repository; * * @deprecated since v11, will be removed in v12. Do not use or extend this model. */ -class FrontendUserRepository extends Repository -{ -} +class FrontendUserRepository extends Repository {} diff --git a/typo3/sysext/extbase/Classes/DomainObject/AbstractEntity.php b/typo3/sysext/extbase/Classes/DomainObject/AbstractEntity.php index 41b0a7fd11706a2d962d0102bf5c63ed019e1f60..264ce87e82d97a89c28e71c4da89634796010b39 100644 --- a/typo3/sysext/extbase/Classes/DomainObject/AbstractEntity.php +++ b/typo3/sysext/extbase/Classes/DomainObject/AbstractEntity.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Extbase\DomainObject; * An abstract Entity. An Entity is an object fundamentally defined not by its attributes, * but by a thread of continuity and identity (e.g. a person). */ -abstract class AbstractEntity extends AbstractDomainObject -{ -} +abstract class AbstractEntity extends AbstractDomainObject {} diff --git a/typo3/sysext/extbase/Classes/Exception.php b/typo3/sysext/extbase/Classes/Exception.php index f0e6c6bb7f10d3a359520182087ff545c46a0e95..ed386b9d3c0c55b0dec52421a4c8a96a6f1e084a 100644 --- a/typo3/sysext/extbase/Classes/Exception.php +++ b/typo3/sysext/extbase/Classes/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception as CoreException; /** * A generic Extbase exception */ -class Exception extends CoreException -{ -} +class Exception extends CoreException {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php b/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php index 3a7c376b0c5c79b6b7b0417e72e38e33a4860bc4..c42c866045cc3e70f199c109269044f1325fb03c 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php +++ b/typo3/sysext/extbase/Classes/Mvc/Controller/ActionController.php @@ -332,9 +332,7 @@ abstract class ActionController implements ControllerInterface * @param ViewInterface $view The view to be initialized * @deprecated since v11, will be removed in v12: Drop method along with extbase ViewInterface. */ - protected function initializeView(ViewInterface $view) - { - } + protected function initializeView(ViewInterface $view) {} /** * Initializes the controller before invoking an action method. @@ -342,9 +340,7 @@ abstract class ActionController implements ControllerInterface * Override this method to solve tasks which all actions have in * common. */ - protected function initializeAction() - { - } + protected function initializeAction() {} /** * Implementation of the arguments initialization in the action controller: diff --git a/typo3/sysext/extbase/Classes/Mvc/Controller/Exception/RequiredArgumentMissingException.php b/typo3/sysext/extbase/Classes/Mvc/Controller/Exception/RequiredArgumentMissingException.php index f3ccb63499c83670cedf159a2b12a72bb4ff1bba..7af6d24ce11b6918285a2aa8dfd675e43b1d6c4b 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Controller/Exception/RequiredArgumentMissingException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Controller/Exception/RequiredArgumentMissingException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Argument Name" exception */ -class RequiredArgumentMissingException extends Exception -{ -} +class RequiredArgumentMissingException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception.php b/typo3/sysext/extbase/Classes/Mvc/Exception.php index 36add3af17ac719c201635f62fdecbf678b0a547..6861cf89675c36186a6a38ccde79905ca6084860 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; /** * A generic MVC exception */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InfiniteLoopException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InfiniteLoopException.php index 73d60176b0bc2523e86adf567b6db0ab1ca2f7cb..a3135b1483a2dad98df958750650ec7d45c4aa6c 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InfiniteLoopException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InfiniteLoopException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Infinite Loop" exception */ -class InfiniteLoopException extends Exception -{ -} +class InfiniteLoopException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidActionNameException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidActionNameException.php index c97afbd385987b683c319f195fedce0b8b30e8e4..fdd220123c9135a8a5baf6bc5ea4a293e35f9503 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidActionNameException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidActionNameException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "invalid action name" exception */ -class InvalidActionNameException extends Exception -{ -} +class InvalidActionNameException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentMixingException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentMixingException.php index 44e709020d75c03576de03f86b1a5007f66989d0..42dc9f7eea0162ab79707f4de6ad69f9e8440194 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentMixingException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentMixingException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Argument Name" exception */ -class InvalidArgumentMixingException extends Exception -{ -} +class InvalidArgumentMixingException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentNameException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentNameException.php index f589f9cab2133251eb66d979df5e62e92f96fae7..fd6ca5229c9cac24b714ac433513f54d78f74c3a 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentNameException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentNameException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Argument Name" exception */ -class InvalidArgumentNameException extends Exception -{ -} +class InvalidArgumentNameException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentTypeException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentTypeException.php index ec0451fa0c2fa306b2e50ac2d5db7fd804973ce9..1df18bb5b9e94f2d91030cd3b32e72e1b7c48c7c 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentTypeException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentTypeException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Argument Type" exception */ -class InvalidArgumentTypeException extends Exception -{ -} +class InvalidArgumentTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentValueException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentValueException.php index 146c7fccbfbd23538c28d67fdf221cef3df4ee4a..01a1c0e8c7e2515c6fc45765d3cb83477b110625 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentValueException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidArgumentValueException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Argument Value" exception */ -class InvalidArgumentValueException extends Exception -{ -} +class InvalidArgumentValueException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerException.php index a4c8aef89850951319828670d121a2c4a0cecc6b..c98c916ccc9c5049798fccf6979549174725a0d3 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Controller" exception */ -class InvalidControllerException extends Exception -{ -} +class InvalidControllerException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerNameException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerNameException.php index f48a61a9b5eadc3c66a50d6af7d1845157ad2d76..f9b95667e3b54e9882793b03950ac221e49f5b86 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerNameException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidControllerNameException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Controller Name" exception */ -class InvalidControllerNameException extends Exception -{ -} +class InvalidControllerNameException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidExtensionNameException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidExtensionNameException.php index ceda29bc801d5e51977e5e7d569e91b24ba2331c..0dd934c65d5480a82e0d6568b1f72b92915860d2 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidExtensionNameException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidExtensionNameException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * An "Invalid Extension Name" exception */ -class InvalidExtensionNameException extends Exception -{ -} +class InvalidExtensionNameException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestMethodException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestMethodException.php index c86ac06d63236371dd74723f7e3477bb4da210d2..c5876410effb42714ca0e42471f7dd58f30e1798 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestMethodException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/InvalidRequestMethodException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; * An "Invalid Request Method" exception * @deprecated since v11, will be removed in v12 */ -class InvalidRequestMethodException extends Exception -{ -} +class InvalidRequestMethodException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchActionException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchActionException.php index 526d10f5f3d77bfc54724d4a98d517fba1824773..e1d03b306c14de6486ecf1d82da29971347a4e3d 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchActionException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchActionException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * A "No Such Action" exception */ -class NoSuchActionException extends Exception -{ -} +class NoSuchActionException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchArgumentException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchArgumentException.php index 941678d246d0944b33d5fa562ae705d419420434..3bb76e66932dbb54d21f27b7a2586fd2e31539a8 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchArgumentException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchArgumentException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * A "No Such Argument" exception */ -class NoSuchArgumentException extends Exception -{ -} +class NoSuchArgumentException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchControllerException.php b/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchControllerException.php index 4a7af5f89f39f2c2c7bffd4a80358740b434f6bb..279346e89ec4f2054f969183020506b3625a7e89 100644 --- a/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchControllerException.php +++ b/typo3/sysext/extbase/Classes/Mvc/Exception/NoSuchControllerException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Mvc\Exception; /** * A "No Such Controller" exception */ -class NoSuchControllerException extends Exception -{ -} +class NoSuchControllerException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Mvc/View/AbstractView.php b/typo3/sysext/extbase/Classes/Mvc/View/AbstractView.php index 0df970c339e08cde2c1c034d03a241438da2bb1d..b51d1d961f150933c8e5b304d1321e5b6ca5c563 100644 --- a/typo3/sysext/extbase/Classes/Mvc/View/AbstractView.php +++ b/typo3/sysext/extbase/Classes/Mvc/View/AbstractView.php @@ -94,7 +94,5 @@ abstract class AbstractView implements ViewInterface * * Override this method for initializing your concrete view implementation. */ - public function initializeView() - { - } + public function initializeView() {} } diff --git a/typo3/sysext/extbase/Classes/Mvc/View/EmptyView.php b/typo3/sysext/extbase/Classes/Mvc/View/EmptyView.php index 87604ce20bd47fbfe7d12cb183356de1c0d875b0..911c2f109065ce740f5891a60626d14832d22481 100644 --- a/typo3/sysext/extbase/Classes/Mvc/View/EmptyView.php +++ b/typo3/sysext/extbase/Classes/Mvc/View/EmptyView.php @@ -35,9 +35,7 @@ class EmptyView implements ViewInterface * @param \TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext * @internal */ - public function setControllerContext(ControllerContext $controllerContext) - { - } + public function setControllerContext(ControllerContext $controllerContext) {} /** * Dummy method to satisfy the ViewInterface @@ -95,16 +93,12 @@ class EmptyView implements ViewInterface * @param string $methodName * @param array $arguments */ - public function __call($methodName, array $arguments) - { - } + public function __call($methodName, array $arguments) {} /** * Initializes this view. * * Override this method for initializing your concrete view implementation. */ - public function initializeView() - { - } + public function initializeView() {} } diff --git a/typo3/sysext/extbase/Classes/Mvc/View/JsonView.php b/typo3/sysext/extbase/Classes/Mvc/View/JsonView.php index 81698d3916ccd10214831e9d0c754367e3b6b714..9691e2ef9ed4b6949d7530c2e6b9d905a5816c2d 100644 --- a/typo3/sysext/extbase/Classes/Mvc/View/JsonView.php +++ b/typo3/sysext/extbase/Classes/Mvc/View/JsonView.php @@ -245,9 +245,7 @@ class JsonView extends AbstractView implements ViewInterface * Override this method for initializing your concrete view implementation. * @deprecated since v11, will be removed with v12. Drop together with removal of extbase ViewInterface. */ - public function initializeView() - { - } + public function initializeView() {} /** * Specifies which variables this JsonView should render diff --git a/typo3/sysext/extbase/Classes/Object/Container/Exception/UnknownObjectException.php b/typo3/sysext/extbase/Classes/Object/Container/Exception/UnknownObjectException.php index dd3af2ee51ce294d874862af5d158903edc0c5dc..8f10794808c68e485104150acbb62e456d8c25fc 100644 --- a/typo3/sysext/extbase/Classes/Object/Container/Exception/UnknownObjectException.php +++ b/typo3/sysext/extbase/Classes/Object/Container/Exception/UnknownObjectException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Object\Exception; * * @deprecated since v11, will be removed in v12. Drop along with ObjectManager / Container. */ -class UnknownObjectException extends Exception -{ -} +class UnknownObjectException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Object/Exception.php b/typo3/sysext/extbase/Classes/Object/Exception.php index 40e0efee5b357836cc19698b1a67a427115d9f44..61271312b9b57924402fdd46e0565333a7130cac 100644 --- a/typo3/sysext/extbase/Classes/Object/Exception.php +++ b/typo3/sysext/extbase/Classes/Object/Exception.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; * * @deprecated since v11, will be removed in v12. Drop along with ObjectManager / Container. */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Object/Exception/CannotBuildObjectException.php b/typo3/sysext/extbase/Classes/Object/Exception/CannotBuildObjectException.php index eec148daeab3e80cb3206a20086c850002f7f538..ced4b64c7f3ce246de6fe4d103ee0c62e578f660 100644 --- a/typo3/sysext/extbase/Classes/Object/Exception/CannotBuildObjectException.php +++ b/typo3/sysext/extbase/Classes/Object/Exception/CannotBuildObjectException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Object\Exception; * * @deprecated since v11, will be removed in v12. Drop along with ObjectManager / Container. */ -class CannotBuildObjectException extends Exception -{ -} +class CannotBuildObjectException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Object/Exception/CannotReconstituteObjectException.php b/typo3/sysext/extbase/Classes/Object/Exception/CannotReconstituteObjectException.php index 06c166c63129255361f088601497630cf1909954..47898943e3b7292a846944e9d3b1f2ee78510d69 100644 --- a/typo3/sysext/extbase/Classes/Object/Exception/CannotReconstituteObjectException.php +++ b/typo3/sysext/extbase/Classes/Object/Exception/CannotReconstituteObjectException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Object\Exception; * * @deprecated since v11, will be removed in v12. Drop along with ObjectManager / Container. */ -class CannotReconstituteObjectException extends Exception -{ -} +class CannotReconstituteObjectException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Exception.php b/typo3/sysext/extbase/Classes/Persistence/Exception.php index da827edeaf1c60190f5376beaab9596821bc6c8c..2c165757507515cb39debced780631fd03349988 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Exception.php +++ b/typo3/sysext/extbase/Classes/Persistence/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; /** * A generic Persistence exception */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalObjectTypeException.php b/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalObjectTypeException.php index 3f458c84f746df53ebc55cf26207885b72ad6584..8df5b1bd952de4dca81aa3078ae42f48e3e9d050 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalObjectTypeException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalObjectTypeException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Exception; /** * An "Invalid Object Type" exception */ -class IllegalObjectTypeException extends Exception -{ -} +class IllegalObjectTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalRelationTypeException.php b/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalRelationTypeException.php index 5b8cb3f0949da32664e27e918af21ead6490a7f6..2ce4120b3c244408263cb71d1a8701a92e180a98 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalRelationTypeException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Exception/IllegalRelationTypeException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Exception; /** * An "Illegal Relation Type" exception */ -class IllegalRelationTypeException extends Exception -{ -} +class IllegalRelationTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Exception/InvalidQueryException.php b/typo3/sysext/extbase/Classes/Persistence/Exception/InvalidQueryException.php index c6dfb2eaf7f4837c342f58ad98454dfa3fe1366d..0018583940b1a4bf183beb9aeaa53aeec67742bc 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Exception/InvalidQueryException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Exception/InvalidQueryException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception; /** * An "Invalid Query" Exception */ -class InvalidQueryException extends Exception -{ -} +class InvalidQueryException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Exception/UnknownObjectException.php b/typo3/sysext/extbase/Classes/Persistence/Exception/UnknownObjectException.php index 08458608b15fe7c3ce4c6020fff4fe3d87625855..0bf01aa9b62b06484596fb1a6d3ba8741491e9b6 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Exception/UnknownObjectException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Exception/UnknownObjectException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Exception; /** * An "Unknown Object" exception */ -class UnknownObjectException extends Exception -{ -} +class UnknownObjectException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception.php index a7b384a581f04a34a75c5ea6080b4bbe543aeef1..a9afc58a8a49b15ea4d97109687d35d8b74f442a 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic; /** * A generic Persistence exception */ -class Exception extends \TYPO3\CMS\Extbase\Persistence\Exception -{ -} +class Exception extends \TYPO3\CMS\Extbase\Persistence\Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InconsistentQuerySettingsException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InconsistentQuerySettingsException.php index 8b6992f8e114a518a351022778fb6f195f786221..53aecd3a638839aeb062ed295553f1a74e95487b 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InconsistentQuerySettingsException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InconsistentQuerySettingsException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * Thrown if a setting set is not available in the current context. */ -class InconsistentQuerySettingsException extends Exception -{ -} +class InconsistentQuerySettingsException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidClassException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidClassException.php index a9a1622b9beba8a5c19d9bae77ba326bac0d700d..5da73f3d62aba2e35a5a85ce58cfb769d0eb20c4 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidClassException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidClassException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An "Invalid Class" exception */ -class InvalidClassException extends Exception -{ -} +class InvalidClassException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidNumberOfConstraintsException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidNumberOfConstraintsException.php index 012f3561ae49b93b3185a0b709d020745b4b9918..9306c2475ace9716f1c12e7776d8d75f956d507b 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidNumberOfConstraintsException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidNumberOfConstraintsException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An "Invalid Number of Constraints" exception. */ -class InvalidNumberOfConstraintsException extends Exception -{ -} +class InvalidNumberOfConstraintsException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidRelationConfigurationException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidRelationConfigurationException.php index d941b525bd59815c32942544e4f1d5c519de6a98..a0c486552403e13c002a074197ea26b37dbaf749 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidRelationConfigurationException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/InvalidRelationConfigurationException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An "InvalidRelationConfigurationException" exception */ -class InvalidRelationConfigurationException extends Exception -{ -} +class InvalidRelationConfigurationException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingColumnMapException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingColumnMapException.php index bb7896a11b6be8a8b88bdef66baf7b7f13bff329..6e3463272329620b06a0e6661d1160ffc12af00a 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingColumnMapException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/MissingColumnMapException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * A "Missing ColumnMap" exception */ -class MissingColumnMapException extends Exception -{ -} +class MissingColumnMapException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/RepositoryException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/RepositoryException.php index e282b7ff6a3298335c3127ceb8ece6578cae493d..3fb32304de672e485383ff7e8dcce4d94bc953c7 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/RepositoryException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/RepositoryException.php @@ -23,6 +23,4 @@ use RuntimeException; * Main exception thrown by classes in this package. May contain an error * message and/or another nested exception. */ -class RepositoryException extends RuntimeException -{ -} +class RepositoryException extends RuntimeException {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/TooDirtyException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/TooDirtyException.php index 3294bb3da48d64a95f002ff663e21baf451996cc..394f30b1f87425a34eaecdce0e40eb510aea2413 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/TooDirtyException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/TooDirtyException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * A "Too Dirty" exception */ -class TooDirtyException extends Exception -{ -} +class TooDirtyException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnexpectedTypeException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnexpectedTypeException.php index d73e8aff4d740aa99c9bf3556d3b07796516c7f9..9b8a469477cfdd27886d6553e75e7715356d01f5 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnexpectedTypeException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnexpectedTypeException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An "Unexpected Type" exception. */ -class UnexpectedTypeException extends Exception -{ -} +class UnexpectedTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedMethodException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedMethodException.php index 43d2149d57283689d1419976cbff005ad9a23746..42c0f72956a977c2a8216f2105aac93d0f3f6910 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedMethodException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedMethodException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An "Unsupported Method" exception */ -class UnsupportedMethodException extends Exception -{ -} +class UnsupportedMethodException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedOrderException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedOrderException.php index 4785fd2b1826bc5d21865f28acafefe5a4b419e4..3629883551008727c86375fe92a334060f0a111f 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedOrderException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedOrderException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An "Unsupported Order" exception: The order you specified in the query is not supported by now. */ -class UnsupportedOrderException extends Exception -{ -} +class UnsupportedOrderException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedRelationException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedRelationException.php index bd2a98635995adc580a88524fac63f51d52a0e1a..d37315f666907cbc2474656f2b8ad2d0c928e463 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedRelationException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Exception/UnsupportedRelationException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An "Unsupported Order" exception: The order you specified in the query is not supported by now. */ -class UnsupportedRelationException extends Exception -{ -} +class UnsupportedRelationException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/LoadingStrategyInterface.php b/typo3/sysext/extbase/Classes/Persistence/Generic/LoadingStrategyInterface.php index b61829ecfedc225e10ef5eda46bff659640fc11f..edb90397c962c4089dd7974eb21db833a75b7f25 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/LoadingStrategyInterface.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/LoadingStrategyInterface.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic; /** * An interface for the lazy loading strategies. */ -interface LoadingStrategyInterface -{ -} +interface LoadingStrategyInterface {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception.php index 77cca711538630e2422c3264391157fcbb067864..4ede2789ac91ca3c7d6ec43b95957b4f72fc2d3a 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Extbase\Persistence\Generic\Mapper; -class Exception extends \TYPO3\CMS\Extbase\Persistence\Exception -{ -} +class Exception extends \TYPO3\CMS\Extbase\Persistence\Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/NonExistentPropertyException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/NonExistentPropertyException.php index b32a55b335e592f635f267a92a783bbc6700bb44..1b6a82f84105b4e34efbb5a90fc5fbd358c39e2e 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/NonExistentPropertyException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/NonExistentPropertyException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic\Mapper\Exception; use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\Exception; -class NonExistentPropertyException extends Exception -{ -} +class NonExistentPropertyException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/UnknownPropertyTypeException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/UnknownPropertyTypeException.php index e281645e637dab1ee9c036638c7a2cc9c3ac427a..bf0896c35a3ef4c58c742ab6c7b6ae0d28ac1275 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/UnknownPropertyTypeException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Mapper/Exception/UnknownPropertyTypeException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic\Mapper\Exception; use TYPO3\CMS\Extbase\Persistence\Generic\Mapper\Exception; -class UnknownPropertyTypeException extends Exception -{ -} +class UnknownPropertyTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/PersistenceManager.php b/typo3/sysext/extbase/Classes/Persistence/Generic/PersistenceManager.php index 6ca715fdccab9c06a23db3f99fd00ef63d25d96c..2a2a57f0d2de20f65deaff813ee39483970c0d9e 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/PersistenceManager.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/PersistenceManager.php @@ -88,9 +88,7 @@ class PersistenceManager implements PersistenceManagerInterface, SingletonInterf * @param string $className The class name of the repository to be registered * @internal only to be used within Extbase, not part of TYPO3 Core API. */ - public function registerRepositoryClassName($className) - { - } + public function registerRepositoryClassName($className) {} /** * Returns the number of records matching the query. diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/PropertyType.php b/typo3/sysext/extbase/Classes/Persistence/Generic/PropertyType.php index 27176254449fb8a3754bb22cde6eaa906e5f508f..8449267ece1b0f2ad52ce49d82df73bb281e3e4b 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/PropertyType.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/PropertyType.php @@ -206,9 +206,7 @@ class PropertyType /** * Make instantiation impossible... */ - private function __construct() - { - } + private function __construct() {} /** * Returns the name of the specified type, as used in serialization. diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Comparison.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Comparison.php index 88c9138c8110821b9198a7e9a5a6850e63612daf..a812f5310546ef785a895aece78258cca0117f5d 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Comparison.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Comparison.php @@ -137,7 +137,5 @@ class Comparison implements ComparisonInterface * * @param array $boundVariables */ - public function collectBoundVariableNames(&$boundVariables) - { - } + public function collectBoundVariableNames(&$boundVariables) {} } diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/DynamicOperandInterface.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/DynamicOperandInterface.php index 9363a8a420b711615bd8bb86c6a98dfe361a45dc..9e9e4dec81614881288223e85dda9f39f94c62c5 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/DynamicOperandInterface.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/DynamicOperandInterface.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom; /** * An operand whose value can only be determined in evaluating the query. */ -interface DynamicOperandInterface extends OperandInterface -{ -} +interface DynamicOperandInterface extends OperandInterface {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/OperandInterface.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/OperandInterface.php index 541ab4068aa8610e1e5d12cd4b37fe6272a6f2a8..f7dac93c30314dfd3b9bf4ee8b61f3042bc79eab 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/OperandInterface.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/OperandInterface.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom; /** * An operand to a binary operation specified by a Comparison. */ -interface OperandInterface -{ -} +interface OperandInterface {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/SourceInterface.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/SourceInterface.php index bdb40a80a261ca3e1095abe3d5b60f69e657232e..4c511f707634074d6cc0c1177f1d6f55a07dc4c4 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/SourceInterface.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/SourceInterface.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom; /** * Evaluates to a set of node-tuples. */ -interface SourceInterface -{ -} +interface SourceInterface {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Statement.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Statement.php index dd0d0a1e485e512eb1019663aa74e4dc6b04c0a3..8a6248efd61772de9e519632cc0d3abe1832d3a2 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Statement.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/Statement.php @@ -68,7 +68,5 @@ class Statement implements ConstraintInterface * * @param array $boundVariables */ - public function collectBoundVariableNames(&$boundVariables) - { - } + public function collectBoundVariableNames(&$boundVariables) {} } diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/StaticOperandInterface.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/StaticOperandInterface.php index 0ca30574b45294ce12098955e31c21e0a41055f7..0e618f41ab0aaf70663e3ef15b5005444dfe7b09 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/StaticOperandInterface.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Qom/StaticOperandInterface.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Extbase\Persistence\Generic\Qom; * An operand whose value can be determined from static analysis of the query, * prior to its evaluation. */ -interface StaticOperandInterface extends OperandInterface -{ -} +interface StaticOperandInterface extends OperandInterface {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Query.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Query.php index d8453760ffe21630cf0ba08407ced277e4901fcb..b0121a7ef8363c1ec47cc7e5063a566b4338b57c 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Query.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Query.php @@ -417,7 +417,7 @@ class Query implements QueryInterface, ForwardCompatibleQueryInterface $constraints[] = $constraint2; $constraints = array_merge($constraints, $furtherConstraints); - $constraints = array_filter($constraints, fn ($constraint) => $constraint instanceof ConstraintInterface); + $constraints = array_filter($constraints, fn($constraint) => $constraint instanceof ConstraintInterface); // todo: remove this check as soon as first and second constraint are mandatory if (count($constraints) < 1) { @@ -458,7 +458,7 @@ class Query implements QueryInterface, ForwardCompatibleQueryInterface $constraints[] = $constraint2; $constraints = array_merge($constraints, $furtherConstraints); - $constraints = array_filter($constraints, fn ($constraint) => $constraint instanceof ConstraintInterface); + $constraints = array_filter($constraints, fn($constraint) => $constraint instanceof ConstraintInterface); // todo: remove this check as soon as first and second constraint are mandatory if (count($constraints) < 1) { diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/BadConstraintException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/BadConstraintException.php index db5ea01a7bc152bc2ec86dd8300354dd05119cbb..1e552478294dfc644e9f764b242538a9d60acfc6 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/BadConstraintException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/BadConstraintException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * A Bad Constraint exception */ -class BadConstraintException extends Exception -{ -} +class BadConstraintException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/SqlErrorException.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/SqlErrorException.php index 8c9369eca20d6f27788bbacc06c7a65b488b58fe..1ef0fa9b6b3682fbd494900c337f83774de57915 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/SqlErrorException.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Exception/SqlErrorException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Generic\Exception; /** * An SQL exception */ -class SqlErrorException extends Exception -{ -} +class SqlErrorException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception.php b/typo3/sysext/extbase/Classes/Property/Exception.php index be90b1acb5d9a51f4df310f31954a0f2f3ff559c..3220e07ac728af224e4b9ee8a8172b191bbd8e5d 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception.php +++ b/typo3/sysext/extbase/Classes/Property/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; /** * A generic Property related exception */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/DuplicateObjectException.php b/typo3/sysext/extbase/Classes/Property/Exception/DuplicateObjectException.php index 2c2753cacb0c7250e9d83b5fde2f421bd6c219e4..c9f502c697066cf5d10f7b707d63758bd0b61252 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/DuplicateObjectException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/DuplicateObjectException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * A "Duplicate Object" Exception */ -class DuplicateObjectException extends Exception -{ -} +class DuplicateObjectException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/DuplicateTypeConverterException.php b/typo3/sysext/extbase/Classes/Property/Exception/DuplicateTypeConverterException.php index bfd23b27701da412fd4582e8eee6a50886d05729..5fce1ea16c1cf117599ed8558177859a98e97193 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/DuplicateTypeConverterException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/DuplicateTypeConverterException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * A "Duplicate Type Converter" Exception */ -class DuplicateTypeConverterException extends Exception -{ -} +class DuplicateTypeConverterException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/InvalidDataTypeException.php b/typo3/sysext/extbase/Classes/Property/Exception/InvalidDataTypeException.php index 02d1c45d200db34960a5301038865691b703b898..c028d8e34f16e84ed5f69b313f566cec0b541ad7 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/InvalidDataTypeException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/InvalidDataTypeException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * An "Invalid Data Type" Exception */ -class InvalidDataTypeException extends Exception -{ -} +class InvalidDataTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyMappingConfigurationException.php b/typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyMappingConfigurationException.php index df88343e19210eb3b62a43ba6fc4cb8fb5cc3d3e..5ab6335f55a7404ac30c968db086a7ef5a9ee98a 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyMappingConfigurationException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/InvalidPropertyMappingConfigurationException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * An "Invalid Property Mapping Configuration" Exception */ -class InvalidPropertyMappingConfigurationException extends Exception -{ -} +class InvalidPropertyMappingConfigurationException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/InvalidSourceException.php b/typo3/sysext/extbase/Classes/Property/Exception/InvalidSourceException.php index 2fdbcca14e623ca5265da491f44d393349001996..248900be7ce75879dbc7c4bcec43f28b271623d3 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/InvalidSourceException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/InvalidSourceException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * An "Invalid Source" Exception */ -class InvalidSourceException extends Exception -{ -} +class InvalidSourceException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/InvalidTargetException.php b/typo3/sysext/extbase/Classes/Property/Exception/InvalidTargetException.php index 77e8715a9fe4f67b81a98285377c3e493f8d1c58..ffaa38e4dc6ac199771472008ed388abf0522290 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/InvalidTargetException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/InvalidTargetException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * An "Invalid Target" Exception */ -class InvalidTargetException extends Exception -{ -} +class InvalidTargetException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/TargetNotFoundException.php b/typo3/sysext/extbase/Classes/Property/Exception/TargetNotFoundException.php index 201942e2e39824b396f5a42e84716d9d6746b74e..b4fe59fd466b63d3ff5c6daaf20c752dfb8a3557 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/TargetNotFoundException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/TargetNotFoundException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * A "TargetNotFound" Exception */ -class TargetNotFoundException extends Exception -{ -} +class TargetNotFoundException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Property/Exception/TypeConverterException.php b/typo3/sysext/extbase/Classes/Property/Exception/TypeConverterException.php index e8ea365f7be2fd9398c6e866f802cdfb3195b52a..dbe5abe030189d3cb8784363c2e9dcba32901fa2 100644 --- a/typo3/sysext/extbase/Classes/Property/Exception/TypeConverterException.php +++ b/typo3/sysext/extbase/Classes/Property/Exception/TypeConverterException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Property\Exception; /** * A "Type Converter" Exception */ -class TypeConverterException extends Exception -{ -} +class TypeConverterException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Reflection/ClassSchema.php b/typo3/sysext/extbase/Classes/Reflection/ClassSchema.php index 8b80bc4c9341e60da36a3bb8bf3d23dc773968a8..edf21a00b5f7cda78a44395d2e79873e2a6fd39d 100644 --- a/typo3/sysext/extbase/Classes/Reflection/ClassSchema.php +++ b/typo3/sysext/extbase/Classes/Reflection/ClassSchema.php @@ -545,7 +545,7 @@ MESSAGE; { return array_filter( $this->getProperties(), - fn (Property $property) => !str_starts_with($property->getName(), '_') + fn(Property $property) => !str_starts_with($property->getName(), '_') ); } diff --git a/typo3/sysext/extbase/Classes/Reflection/DocBlock/Tags/Null_.php b/typo3/sysext/extbase/Classes/Reflection/DocBlock/Tags/Null_.php index dc8d3eba6d52866870ddb4c4c23e85b1b6719f4f..bb4f397ec37ebef300e782e9453718827f7239f3 100644 --- a/typo3/sysext/extbase/Classes/Reflection/DocBlock/Tags/Null_.php +++ b/typo3/sysext/extbase/Classes/Reflection/DocBlock/Tags/Null_.php @@ -31,9 +31,7 @@ class Null_ implements Tag, StaticMethod return 'Null'; } - public static function create($body): void - { - } + public static function create($body): void {} public function render(?Formatter $formatter = null): string { diff --git a/typo3/sysext/extbase/Classes/Reflection/Exception.php b/typo3/sysext/extbase/Classes/Reflection/Exception.php index f5d7fa4c6fb50ee3586a0b270f09cc027100f401..21c39f18ec1982179d7b283fd6f4429b2ca02e3a 100644 --- a/typo3/sysext/extbase/Classes/Reflection/Exception.php +++ b/typo3/sysext/extbase/Classes/Reflection/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; /** * A generic Reflection Exception */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Reflection/Exception/PropertyNotAccessibleException.php b/typo3/sysext/extbase/Classes/Reflection/Exception/PropertyNotAccessibleException.php index 24075a3e4e35ea4714b6a0690fbe500eff6b003f..24140aad65ddf8707a68dcb588384c52ac26337e 100644 --- a/typo3/sysext/extbase/Classes/Reflection/Exception/PropertyNotAccessibleException.php +++ b/typo3/sysext/extbase/Classes/Reflection/Exception/PropertyNotAccessibleException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Reflection\Exception; /** * An "Property not accessible" exception */ -class PropertyNotAccessibleException extends Exception -{ -} +class PropertyNotAccessibleException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Reflection/Exception/UnknownClassException.php b/typo3/sysext/extbase/Classes/Reflection/Exception/UnknownClassException.php index 8d0edd4ba412e2ddf80c4cbe9dae9ae6c2da5ebb..266ef1c953690680941a29c56a5dd546fce2cfda 100644 --- a/typo3/sysext/extbase/Classes/Reflection/Exception/UnknownClassException.php +++ b/typo3/sysext/extbase/Classes/Reflection/Exception/UnknownClassException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Reflection\Exception; /** * An "Unknown Class" exception */ -class UnknownClassException extends Exception -{ -} +class UnknownClassException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Security/Exception.php b/typo3/sysext/extbase/Classes/Security/Exception.php index 66b90a84aefb5afce72244a575a2dd1c110f3f0d..7752431a337f37f99f2df63b943dc830c445e92f 100644 --- a/typo3/sysext/extbase/Classes/Security/Exception.php +++ b/typo3/sysext/extbase/Classes/Security/Exception.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; * * It will use some salt / encryption key in the future. */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForHashGenerationException.php b/typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForHashGenerationException.php index e467bd4918872b4dcac287c88688571c3736be23..c8829b717ca68a0337bc181cf6db5bbef0dc5f07 100644 --- a/typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForHashGenerationException.php +++ b/typo3/sysext/extbase/Classes/Security/Exception/InvalidArgumentForHashGenerationException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Security\Exception; /** * An "InvalidArgumentForHashGeneration" exception */ -class InvalidArgumentForHashGenerationException extends Exception -{ -} +class InvalidArgumentForHashGenerationException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Security/Exception/InvalidHashException.php b/typo3/sysext/extbase/Classes/Security/Exception/InvalidHashException.php index df1bd72ebd4d947455a987e3beb7d007979afbeb..d9b07aeb5d5c95b0e1f87b714f7e4642bd8a7b51 100644 --- a/typo3/sysext/extbase/Classes/Security/Exception/InvalidHashException.php +++ b/typo3/sysext/extbase/Classes/Security/Exception/InvalidHashException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Security\Exception; /** * A "InvalidHash" Exception, thrown when a HMAC validation failed. */ -class InvalidHashException extends Exception -{ -} +class InvalidHashException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotException.php b/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotException.php index af466b6d2f0bd6c95b18f62b41d7914b38a14203..adf2bbaa7da9c42d8e0d0efb22735022ae690c1c 100644 --- a/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotException.php +++ b/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Object\Exception; * * @deprecated since v11, will be removed in v12. Drop along with ObjectManager / Container. */ -class InvalidSlotException extends Exception -{ -} +class InvalidSlotException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotReturnException.php b/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotReturnException.php index 42bd2b2f7d0e057b6947aa0685a91f2ac82481b8..a0384d973826c5a6524ddb472b5816fd4228a379 100644 --- a/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotReturnException.php +++ b/typo3/sysext/extbase/Classes/SignalSlot/Exception/InvalidSlotReturnException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Extbase\Object\Exception; * * @deprecated since v11, will be removed in v12. Drop along with ObjectManager / Container. */ -class InvalidSlotReturnException extends Exception -{ -} +class InvalidSlotReturnException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Utility/Exception/InvalidTypeException.php b/typo3/sysext/extbase/Classes/Utility/Exception/InvalidTypeException.php index dbd956a16b880df725bdcb3d178680d57da65ef3..266a5ded93d3fa95a0b14edfd13cbbeb1bcdf320 100644 --- a/typo3/sysext/extbase/Classes/Utility/Exception/InvalidTypeException.php +++ b/typo3/sysext/extbase/Classes/Utility/Exception/InvalidTypeException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception; /** * An Invalid Type Exception */ -class InvalidTypeException extends Exception -{ -} +class InvalidTypeException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Validation/Exception.php b/typo3/sysext/extbase/Classes/Validation/Exception.php index dfdddfdfdc30d7d02f8cb2413a3c087fe76b085b..43ae118528896c17710053f7ea6c303b95e66a6f 100644 --- a/typo3/sysext/extbase/Classes/Validation/Exception.php +++ b/typo3/sysext/extbase/Classes/Validation/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Exception as ExtbaseException; /** * A generic validation exception */ -class Exception extends ExtbaseException -{ -} +class Exception extends ExtbaseException {} diff --git a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidTypeHintException.php b/typo3/sysext/extbase/Classes/Validation/Exception/InvalidTypeHintException.php index 9f963100fa02021d2898de3b1dbc948c4765f365..9684150c6a6e961681b5145c4188dd06c1cc63bd 100644 --- a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidTypeHintException.php +++ b/typo3/sysext/extbase/Classes/Validation/Exception/InvalidTypeHintException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Validation\Exception; /** * An "Invalid TypeHint" Exception */ -class InvalidTypeHintException extends Exception -{ -} +class InvalidTypeHintException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationConfigurationException.php b/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationConfigurationException.php index ad54ab6b02f41d2fff5f67c587b2e2fda9967ea8..16610bb1927ae00a44a427495727188a0a28ab85 100644 --- a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationConfigurationException.php +++ b/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationConfigurationException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Validation\Exception; /** * A "InvalidValidationConfiguration" Exception */ -class InvalidValidationConfigurationException extends Exception -{ -} +class InvalidValidationConfigurationException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationOptionsException.php b/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationOptionsException.php index 0d434bce34a2bebc5d6c08933e2fe4d15bc89edb..6b4a71cb6c6b7a844c2a4e463e90400789906fb3 100644 --- a/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationOptionsException.php +++ b/typo3/sysext/extbase/Classes/Validation/Exception/InvalidValidationOptionsException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Validation\Exception; /** * A "InvalidValidationOptions" Exception */ -class InvalidValidationOptionsException extends Exception -{ -} +class InvalidValidationOptionsException extends Exception {} diff --git a/typo3/sysext/extbase/Classes/Validation/Exception/NoSuchValidatorException.php b/typo3/sysext/extbase/Classes/Validation/Exception/NoSuchValidatorException.php index 8951053e9df45d32723ba7cf1caca1d0f5a9aad9..b1ef78d6fe89be124d1ddfc6d61f0704b593b4fa 100644 --- a/typo3/sysext/extbase/Classes/Validation/Exception/NoSuchValidatorException.php +++ b/typo3/sysext/extbase/Classes/Validation/Exception/NoSuchValidatorException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Validation\Exception; /** * A "NoSuchValidator" Exception */ -class NoSuchValidatorException extends Exception -{ -} +class NoSuchValidatorException extends Exception {} diff --git a/typo3/sysext/extbase/Tests/Fixture/DummyClass.php b/typo3/sysext/extbase/Tests/Fixture/DummyClass.php index c36f7aba3268ec9605f2bb373d2c83c159016dea..34ef76e787e585e7aa43c7e58fa192076c943e44 100644 --- a/typo3/sysext/extbase/Tests/Fixture/DummyClass.php +++ b/typo3/sysext/extbase/Tests/Fixture/DummyClass.php @@ -22,7 +22,5 @@ namespace TYPO3\CMS\Extbase\Tests\Fixture; */ class DummyClass { - public function someMethod(): void - { - } + public function someMethod(): void {} } diff --git a/typo3/sysext/extbase/Tests/Fixture/SecondDummyClass.php b/typo3/sysext/extbase/Tests/Fixture/SecondDummyClass.php index f7c7f8cf80abe3974f0a135f5ebd82b41642cf36..27b8fdca5fb5a6559dba40a87fa25e8ac0bdabeb 100644 --- a/typo3/sysext/extbase/Tests/Fixture/SecondDummyClass.php +++ b/typo3/sysext/extbase/Tests/Fixture/SecondDummyClass.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Fixture; /** * Second Dummy Class */ -class SecondDummyClass -{ -} +class SecondDummyClass {} diff --git a/typo3/sysext/extbase/Tests/Fixture/SlotFixture.php b/typo3/sysext/extbase/Tests/Fixture/SlotFixture.php index 2fbde14142f5ec2beceede0dcbb2c528df0c4ed9..292239d3cf62fa0cf82002aaa2153fe6a0cd054c 100644 --- a/typo3/sysext/extbase/Tests/Fixture/SlotFixture.php +++ b/typo3/sysext/extbase/Tests/Fixture/SlotFixture.php @@ -27,7 +27,5 @@ class SlotFixture * * Do not define a return typehint here. */ - public function slot() - { - } + public function slot() {} } diff --git a/typo3/sysext/extbase/Tests/Fixture/TxClassWithGettersAndSetters.php b/typo3/sysext/extbase/Tests/Fixture/TxClassWithGettersAndSetters.php index 6add7129f6bac6069b9b62ec620001f9a62db05b..7a3df87084eaf531e8d3a951750943924dc54c0a 100644 --- a/typo3/sysext/extbase/Tests/Fixture/TxClassWithGettersAndSetters.php +++ b/typo3/sysext/extbase/Tests/Fixture/TxClassWithGettersAndSetters.php @@ -17,6 +17,4 @@ declare(strict_types=1); use TYPO3\CMS\Extbase\Tests\Fixture\ClassWithGettersAndSetters; -class Tx_Extbase_Tests_Fixture_TxClassWithGettersAndSetters extends ClassWithGettersAndSetters -{ -} +class Tx_Extbase_Tests_Fixture_TxClassWithGettersAndSetters extends ClassWithGettersAndSetters {} diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/AdministratorRepository.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/AdministratorRepository.php index 26d3517efcd855fe540caff6e21b022f3eb073e7..69d55375e26fbad5c9e3505e861a3a1470bc9dfa 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/AdministratorRepository.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/AdministratorRepository.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Repository; /** * A repository for administrators */ -class AdministratorRepository extends Repository -{ -} +class AdministratorRepository extends Repository {} diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/TtContentRepository.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/TtContentRepository.php index ffd53650ecdbd4ea223d102b10ec4373e60565ff..4df74c63f7d4c8411976ad10d3e2099b04af1c26 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/TtContentRepository.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/TtContentRepository.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Repository; /** * A repository for tt_contents */ -class TtContentRepository extends Repository -{ -} +class TtContentRepository extends Repository {} diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/a/Classes/Domain/Repository/ARepository.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/a/Classes/Domain/Repository/ARepository.php index ad567d79a1c900e9a936fb9c94ea5601af61e6c9..82c40afe35ea5134b8742a822dcfc6173656d4a7 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/a/Classes/Domain/Repository/ARepository.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/a/Classes/Domain/Repository/ARepository.php @@ -19,6 +19,4 @@ namespace ExtbaseTeam\A\Domain\Repository; use TYPO3\CMS\Extbase\Persistence\Repository; -class ARepository extends Repository -{ -} +class ARepository extends Repository {} diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/Classes/Domain/Repository/BRepository.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/Classes/Domain/Repository/BRepository.php index e9d72aa7c6ca7b18c77958d76ad2cf4649c67480..4013b78810da1e736df17a39caf2a2c84bcd9e2a 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/Classes/Domain/Repository/BRepository.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/Classes/Domain/Repository/BRepository.php @@ -19,6 +19,4 @@ namespace ExtbaseTeam\B\Domain\Repository; use TYPO3\CMS\Extbase\Persistence\Repository; -class BRepository extends Repository -{ -} +class BRepository extends Repository {} diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomNotInjectableValidator.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomNotInjectableValidator.php index e832bc592f315559adb07f89350ba6b5f249e03f..8dc3b556da2963b092443dc6c7f155c44f683e44 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomNotInjectableValidator.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomNotInjectableValidator.php @@ -32,7 +32,5 @@ class CustomNotInjectableValidator extends AbstractValidator /** * @param mixed $value */ - protected function isValid($value): void - { - } + protected function isValid($value): void {} } diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomValidator.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomValidator.php index 95ccc48a1e582e1cdb64e83de8ca1d90411652a7..923961c3a6e8a7c7383a8f4a87ff7e6cb52dd24e 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomValidator.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/test_validators/Classes/Validation/Validator/CustomValidator.php @@ -36,9 +36,7 @@ class CustomValidator extends AbstractValidator $this->iconFactory = $iconFactory; } - public function __construct(array $options = []) - { - } + public function __construct(array $options = []) {} /** * @todo: Will be merged into AbstractValidator in v12. @@ -51,7 +49,5 @@ class CustomValidator extends AbstractValidator /** * @param mixed $value */ - protected function isValid($value): void - { - } + protected function isValid($value): void {} } diff --git a/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/Fixture/Validation/Validator/CustomValidator.php b/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/Fixture/Validation/Validator/CustomValidator.php index ff1a1e51b51931e34337ce56762e320cd5c326cf..5d8b3b499c8400feaa43f325e94c5e9694650c38 100644 --- a/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/Fixture/Validation/Validator/CustomValidator.php +++ b/typo3/sysext/extbase/Tests/Functional/Mvc/Controller/Fixture/Validation/Validator/CustomValidator.php @@ -27,7 +27,5 @@ class CustomValidator extends AbstractValidator /** * @param mixed $value */ - protected function isValid($value): void - { - } + protected function isValid($value): void {} } diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php index a54a1eb47840ff39a210c808a11d51f6b687c8e3..ee162bcf726b2e4dbeac617416542c9e4a3f08de 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/Generic/Mapper/DataMapperTest.php @@ -185,7 +185,7 @@ class DataMapperTest extends FunctionalTestCase // Assert self::assertSame( [5, 4, 3, 2, 1], // foreign_default_sortby is set to uid desc, see - array_map(fn (Comment $comment) => $comment->getUid(), $comments) + array_map(fn(Comment $comment) => $comment->getUid(), $comments) ); } } diff --git a/typo3/sysext/extbase/Tests/Functional/Property/Fixtures/ExtendedCountableInterface.php b/typo3/sysext/extbase/Tests/Functional/Property/Fixtures/ExtendedCountableInterface.php index 4035bbd801baefc8b2998167f8ac6028f7718e6e..61e8d841e64eaa8c19f5e5932c3cfede72a6c32f 100644 --- a/typo3/sysext/extbase/Tests/Functional/Property/Fixtures/ExtendedCountableInterface.php +++ b/typo3/sysext/extbase/Tests/Functional/Property/Fixtures/ExtendedCountableInterface.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures; -interface ExtendedCountableInterface extends \Countable -{ -} +interface ExtendedCountableInterface extends \Countable {} diff --git a/typo3/sysext/extbase/Tests/Functional/Property/PropertyMapperTest.php b/typo3/sysext/extbase/Tests/Functional/Property/PropertyMapperTest.php index 04fe348d0377b395e0e66fdecee8c4f7830b3750..ec8345e00b89e89293c4e653fbf1598ca81bb768 100644 --- a/typo3/sysext/extbase/Tests/Functional/Property/PropertyMapperTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Property/PropertyMapperTest.php @@ -44,8 +44,7 @@ class PropertyMapperTest extends FunctionalTestCase { $this->expectExceptionCode(1297951378); - $class = new class () extends ArrayConverter { - }; + $class = new class () extends ArrayConverter {}; ExtensionUtility::registerTypeConverter(get_class($class)); $this->getContainer()->set(get_class($class), $class); $this->get(PropertyMapper::class); diff --git a/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest.php b/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest.php index 75937809be93530ddc71247bf47ea3a5ed008175..b4cc953191bf2d28faa5b42ee385bb00fd660c3e 100644 --- a/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Property/TypeConverter/ObjectConverterTest.php @@ -227,8 +227,7 @@ class ObjectConverterTest extends FunctionalTestCase */ public function getTypeOfChildPropertyThrowsInvalidTargetExceptionIfPropertyIsNotAccessible(): void { - $class = new class () { - }; + $class = new class () {}; $className = get_class($class); $propertyName = 'name'; @@ -254,9 +253,7 @@ class ObjectConverterTest extends FunctionalTestCase public function getTypeOfChildPropertyThrowsInvalidTargetExceptionIfPropertyTypeCannotBeDerivedFromNonExistingConstructorArgument(): void { $class = new class () { - public function __construct() - { - } + public function __construct() {} }; $className = get_class($class); @@ -283,9 +280,7 @@ class ObjectConverterTest extends FunctionalTestCase public function getTypeOfChildPropertyThrowsInvalidTargetExceptionIfPropertyTypeCannotBeDerivedFromExistingConstructorArgument(): void { $class = new class () { - public function __construct($name = null) - { - } + public function __construct($name = null) {} }; $className = get_class($class); @@ -316,9 +311,7 @@ class ObjectConverterTest extends FunctionalTestCase $this->expectExceptionMessage('Exception while property mapping at property path "": Setter for property "name" had no type hint or documentation in target object of type "'); $class = new class () { - public function setName($name): void - { - } + public function setName($name): void {} }; $propertyMapper = $this->get(PropertyMapper::class); @@ -422,8 +415,7 @@ class ObjectConverterTest extends FunctionalTestCase $this->expectExceptionCode(1297759968); $this->expectExceptionMessage('Exception while property mapping at property path "": Override of target type not allowed. To enable this, you need to set the PropertyMappingConfiguration Value "CONFIGURATION_OVERRIDE_TARGET_TYPE_ALLOWED" to TRUE.'); - $class = new class () { - }; + $class = new class () {}; $this->get(PropertyMapper::class)->convert( ['__type' => Animal::class], @@ -440,8 +432,7 @@ class ObjectConverterTest extends FunctionalTestCase $this->expectExceptionCode(1297759968); $this->expectExceptionMessage('Exception while property mapping at property path "": The given type "TYPO3\CMS\Extbase\Tests\Functional\Property\Fixtures\Animal" is not a subtype of "'); - $class = new class () { - }; + $class = new class () {}; $propertyMapperConfiguration = new PropertyMappingConfiguration(); $propertyMapperConfiguration->allowAllProperties(); diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php index ddd22d744d0dd579950628c9e3ee45741f99fdc9..ce1d8589ed0ee7ee3860f6d1236591f200e7bf18 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Controller/ActionControllerTest.php @@ -534,8 +534,7 @@ class ActionControllerTest extends UnitTestCase $pageRenderer->addFooterData(Argument::any())->shouldNotBeCalled(); } $requestMock = $this->getMockBuilder(RequestInterface::class)->getMockForAbstractClass(); - $subject = new class () extends ActionController { - }; + $subject = new class () extends ActionController {}; $viewProperty = new \ReflectionProperty($subject, 'view'); $viewProperty->setAccessible(true); $viewProperty->setValue($subject, $viewMock); @@ -680,8 +679,7 @@ class ActionControllerTest extends UnitTestCase { $this->expectException(\InvalidArgumentException::class); $this->expectExceptionCode(1243258395); - $controller = new class () extends ActionController { - }; + $controller = new class () extends ActionController {}; $controller->addFlashMessage(new \stdClass()); } } diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php index 5c351ab504bb1aa9a67073a2f81e4bf1f50d7d0c..3a141ae3851f8556a4e62d64ae7b712d74b30c42 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/ContainerTest.php @@ -73,8 +73,7 @@ class ContainerTest extends UnitTestCase $reflectionService = new ReflectionService(new NullFrontend('extbase'), 'ClassSchemata'); - $notFoundException = new class () extends \Exception implements NotFoundExceptionInterface { - }; + $notFoundException = new class () extends \Exception implements NotFoundExceptionInterface {}; $psrContainer = $this->getMockBuilder(ContainerInterface::class) ->onlyMethods(['has', 'get']) diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/ContainerConstructorInjectionTestFixtures.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/ContainerConstructorInjectionTestFixtures.php index fe50ce164f8003400fc6399bb439d4d1492c473d..f7844e8075adba44858bdbebe16bc832e5ee9267 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/ContainerConstructorInjectionTestFixtures.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/ContainerConstructorInjectionTestFixtures.php @@ -30,9 +30,7 @@ class SimpleTypeConstructorArgument } } -class ArgumentTestClass -{ -} +class ArgumentTestClass {} class MandatoryConstructorArgument { diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/NamespacedClass.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/NamespacedClass.php index f091c257d9a55153b6b753da6ed7dd93131c9a93..6b5592645ba18b9a0b042a0bf032c13581236dba 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/NamespacedClass.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/NamespacedClass.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Object\Container\Fixtures; /** * NamespacedClass */ -class NamespacedClass -{ -} +class NamespacedClass {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_prototype.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_prototype.php index 1ce52433ed1e5f2b99433307e515fae3245a4393..206fe01849be8c2684bdee94a52f13bb210af4a4 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_prototype.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_prototype.php @@ -15,6 +15,4 @@ declare(strict_types=1); * The TYPO3 project - inspiring people to share! */ -class t3lib_object_prototype -{ -} +class t3lib_object_prototype {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_singleton.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_singleton.php index fa8b357e2777a0cd01adaa4ab77328b8d172a3f4..2b69d5b0220845d786fc93be98240f786595cc38 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_singleton.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_singleton.php @@ -17,6 +17,4 @@ declare(strict_types=1); use TYPO3\CMS\Core\SingletonInterface; -class t3lib_object_singleton implements SingletonInterface -{ -} +class t3lib_object_singleton implements SingletonInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child.php index e02ed934d1b9cddbfcbe4f1955f3815fa13e4ffa..e52fc8bb923384fa60647ae4caa6a33e3dd6251f 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child.php @@ -18,6 +18,4 @@ declare(strict_types=1); /** * test class B-Child that extends Class B (therefore depends also on Class C) */ -class t3lib_object_tests_b_child extends \t3lib_object_tests_b -{ -} +class t3lib_object_tests_b_child extends \t3lib_object_tests_b {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child_someimplementation.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child_someimplementation.php index db71119cd5b50e8acd9247cd16a52ebd36e18384..8957a5653e3108e15785f9b0ad075a9736b29515 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child_someimplementation.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_b_child_someimplementation.php @@ -18,6 +18,4 @@ declare(strict_types=1); /** * test class B-Child that extends Class B (therefore depends also on Class C) */ -class t3lib_object_tests_b_child_someimplementation extends \t3lib_object_tests_b implements \t3lib_object_tests_someinterface -{ -} +class t3lib_object_tests_b_child_someimplementation extends \t3lib_object_tests_b implements \t3lib_object_tests_someinterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_c.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_c.php index 6b101055249b71e447257ab69d3b698819021575..2824fff07eeed1d947eb66f2adbf8a89d771fb0a 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_c.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_c.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\SingletonInterface; /** * test class C without dependencies */ -class t3lib_object_tests_c implements SingletonInterface -{ -} +class t3lib_object_tests_c implements SingletonInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_class_with_injectsettings.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_class_with_injectsettings.php index 23fe866c1ff2dccf9bb52cfe8e6f148f39a40e33..e3d2c209fb758d41fe8e0e57cb48c1484211e3da 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_class_with_injectsettings.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_class_with_injectsettings.php @@ -20,21 +20,15 @@ class t3lib_object_tests_class_with_injectsettings /** * @param \t3lib_object_tests_resolveablecyclic1 $c1 */ - public function injectFoo(\t3lib_object_tests_resolveablecyclic1 $c1): void - { - } + public function injectFoo(\t3lib_object_tests_resolveablecyclic1 $c1): void {} /** * @param \t3lib_object_tests_resolveablecyclic1 $c1 */ - public function injectingFoo(\t3lib_object_tests_resolveablecyclic1 $c1): void - { - } + public function injectingFoo(\t3lib_object_tests_resolveablecyclic1 $c1): void {} /** * @param array $settings */ - public function injectSettings(array $settings): void - { - } + public function injectSettings(array $settings): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1.php index 5d6bb9edbca95d1221f18938d3e688f18e4c660f..5f353699449d402bccc32fda3e5d66e6a2b16535 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1.php @@ -23,7 +23,5 @@ class t3lib_object_tests_cyclic1 /** * @param \t3lib_object_tests_cyclic2 $c */ - public function __construct(\t3lib_object_tests_cyclic2 $c) - { - } + public function __construct(\t3lib_object_tests_cyclic2 $c) {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1WithSetterDependency.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1WithSetterDependency.php index 65a954a66f94e7b3b5853c647fffa342c2b2cff9..be55fdb11b1e1375895964f07f904163d369184d 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1WithSetterDependency.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic1WithSetterDependency.php @@ -20,7 +20,5 @@ class t3lib_object_tests_cyclic1WithSetterDependency /** * @param \t3lib_object_tests_cyclic2WithSetterDependency $c */ - public function injectFoo(\t3lib_object_tests_cyclic2WithSetterDependency $c): void - { - } + public function injectFoo(\t3lib_object_tests_cyclic2WithSetterDependency $c): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2.php index 796a0696af541ee60cace215707437cf9c8f8f54..0272f27a90f27f5e03a13b5f50869969908b5ba6 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2.php @@ -20,7 +20,5 @@ class t3lib_object_tests_cyclic2 /** * @param \t3lib_object_tests_cyclic1 $c */ - public function __construct(\t3lib_object_tests_cyclic1 $c) - { - } + public function __construct(\t3lib_object_tests_cyclic1 $c) {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2WithSetterDependency.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2WithSetterDependency.php index 23bbf301fac6f453399b1377aed3493a39ffd0a7..0ecfb281fa29d9126edd75376d6c228c8d920412 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2WithSetterDependency.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_cyclic2WithSetterDependency.php @@ -20,7 +20,5 @@ class t3lib_object_tests_cyclic2WithSetterDependency /** * @param \t3lib_object_tests_cyclic1WithSetterDependency $c */ - public function injectFoo(\t3lib_object_tests_cyclic1WithSetterDependency $c): void - { - } + public function injectFoo(\t3lib_object_tests_cyclic1WithSetterDependency $c): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_serializable.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_serializable.php index e78c965cde7ee8462dba34f4311412b3e8347971..f425a7772a5f6e8356f3289d32f9efb3d96c15dc 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_serializable.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_serializable.php @@ -33,7 +33,5 @@ class t3lib_object_tests_serializable implements \Serializable { $this->__unserialize(unserialize($serialized)); } - public function __unserialize(array $data): void - { - } + public function __unserialize(array $data): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_singleton.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_singleton.php index 80b6189d79b1a806641eb0f8af980743235be08b..e6de17e749c50872cb50e6c52822bc980654eb2a 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_singleton.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_singleton.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\SingletonInterface; /** * a singleton class */ -class t3lib_object_tests_singleton implements SingletonInterface -{ -} +class t3lib_object_tests_singleton implements SingletonInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someimplementation.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someimplementation.php index 3183fa6405f7e1cb1dcf5a28d564a69052119fd2..74e8065f7e956cc90bde7d6dd5a34616c39d6164 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someimplementation.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someimplementation.php @@ -18,6 +18,4 @@ declare(strict_types=1); /** * class which implements an Interface */ -class t3lib_object_tests_someimplementation implements \t3lib_object_tests_someinterface -{ -} +class t3lib_object_tests_someimplementation implements \t3lib_object_tests_someinterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someinterface.php b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someinterface.php index 2d1f1bc9cd7ba4e0d2e7dac48d57209175ec3b97..52f2683563d92b0738c20cc79c97b718cda76671 100644 --- a/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someinterface.php +++ b/typo3/sysext/extbase/Tests/Unit/Object/Container/Fixtures/testclasses/t3lib_object_tests_someinterface.php @@ -17,6 +17,4 @@ declare(strict_types=1); use TYPO3\CMS\Core\SingletonInterface; -interface t3lib_object_tests_someinterface extends SingletonInterface -{ -} +interface t3lib_object_tests_someinterface extends SingletonInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/A.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/A.php index 09f8d13d5c0963ee4821f4c1ebbb9948431e8e56..4756d1424ae2a2fb8c0e69060aae8703452becc9 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/A.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/A.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; /** * Class TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model\A */ -class A extends AbstractEntity -{ -} +class A extends AbstractEntity {} diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/B.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/B.php index d13eb661865aacccab59f8653711fa4d07ac996e..ccdc23f0a82dcd5c0b73ee02ea79449a37ce9bce 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/B.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/B.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model; /** * Class TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model\B */ -class B extends A -{ -} +class B extends A {} diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/C.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/C.php index 7af2c26418473f69e3f85d4e063291e15c070e18..b224446a756cebd83db630ff12858e6999fba0fa 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/C.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/C.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model; /** * Class TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model\C */ -class C extends B -{ -} +class C extends B {} diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/Entity.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/Entity.php index f70d83838375db5c21098d463a13b98e5f41571e..1df4181b035b9385a342726d377c4eb85ec9362d 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/Entity.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Model/Entity.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Model; use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; -class Entity extends AbstractEntity -{ -} +class Entity extends AbstractEntity {} diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Repository/EntityRepository.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Repository/EntityRepository.php index 66ecea943c464ad977670343368bcf7ec030f1a4..82938b73b76493618d1d9359b074700808266a1c 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Repository/EntityRepository.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Domain/Repository/EntityRepository.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Domain\Repository; use TYPO3\CMS\Extbase\Persistence\Repository; -class EntityRepository extends Repository -{ -} +class EntityRepository extends Repository {} diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Model/CustomDateTime.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Model/CustomDateTime.php index 03029a2c14aadbeedd66156e434f7fc701236b99..c1f5d3a10e99593721369e694525d1217af95214 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Model/CustomDateTime.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Fixture/Model/CustomDateTime.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Extbase\Tests\Unit\Persistence\Fixture\Model; -class CustomDateTime extends \DateTime -{ -} +class CustomDateTime extends \DateTime {} diff --git a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/Fixture/DummyChildEntity.php b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/Fixture/DummyChildEntity.php index 94de351563cb06828be112b444f29738b50a2836..2df8ba35b78a4172b3b2ff97f23df5551a447ad2 100644 --- a/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/Fixture/DummyChildEntity.php +++ b/typo3/sysext/extbase/Tests/Unit/Persistence/Generic/Mapper/Fixture/DummyChildEntity.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; /** * Fixture */ -class DummyChildEntity extends AbstractEntity -{ -} +class DummyChildEntity extends AbstractEntity {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOne.php b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOne.php index 4cb992ffbae7642a7ff43d704e10483064a323a3..78bf89ee39fded38078bdb5e5ee4b7315f5a2dff 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOne.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOne.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\Fixtures; /** * Fixture DataProviderOne */ -class DataProviderOne implements DataProviderOneInterface -{ -} +class DataProviderOne implements DataProviderOneInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOneInterface.php b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOneInterface.php index 4c851823866af98f5203a4d464732357c9a12197..afa7166739026cd89e8a3455e8de7700b9db1d5a 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOneInterface.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderOneInterface.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\Fixtures; /** * Fixture DataProviderOneInterface */ -interface DataProviderOneInterface -{ -} +interface DataProviderOneInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThree.php b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThree.php index aeedc8b10159adb503b5be552ed1c352e6c0a276..21851d8ebcfd1575f4eb1268fac02f8f1fe1c655 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThree.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThree.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\Fixtures; /** * Fixture DataProviderThree */ -class DataProviderThree extends DataProviderTwo implements DataProviderThreeInterface -{ -} +class DataProviderThree extends DataProviderTwo implements DataProviderThreeInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThreeInterface.php b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThreeInterface.php index 748e962e2de6d47c84230ade24c8c2d391ae36fb..ebdbedf7c6c255bc1325001a4b0e43c77c5b07c5 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThreeInterface.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderThreeInterface.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\Fixtures; /** * Fixture DataProviderThreeInterface */ -interface DataProviderThreeInterface extends DataProviderTwoInterface -{ -} +interface DataProviderThreeInterface extends DataProviderTwoInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwo.php b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwo.php index f54bc27a1e85bc809cf461a4106d6c492b4618ac..95ce3a6f67e0148a85608954793c4f1e4baa7a05 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwo.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwo.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\Fixtures; /** * Fixture DataProviderTwo */ -class DataProviderTwo extends DataProviderOne -{ -} +class DataProviderTwo extends DataProviderOne {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwoInterface.php b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwoInterface.php index c7c4f78b75b6d4875aafddc58a6f69cf186e0a56..3546242af23a2ef2d5293b1093dd1f4f41da8ddb 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwoInterface.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/Fixtures/DataProviderTwoInterface.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\Fixtures; /** * Fixture DataProviderTwoInterface */ -interface DataProviderTwoInterface -{ -} +interface DataProviderTwoInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectEntityFixture.php b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectEntityFixture.php index 093d132651817ec349a2f7961b508863459000fe..9fc7722f8db0e39c48b6a39c59ed234804c1f0fd 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectEntityFixture.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectEntityFixture.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; /** * Fixture PersistentObjectEntityFixture */ -class PersistentObjectEntityFixture extends AbstractEntity -{ -} +class PersistentObjectEntityFixture extends AbstractEntity {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectFixture.php b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectFixture.php index 087654e5c09c9b36dfc7c52325da7c96e4131535..5f4c30ef5bb13a01b8189ae75219a5a14d5cd7f1 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectFixture.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectFixture.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\Fixtures; /** * Fixture PersistentObjectFixture */ -class PersistentObjectFixture -{ -} +class PersistentObjectFixture {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectValueObjectFixture.php b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectValueObjectFixture.php index 92452c26c3a0fd19b12ce56283aeb3af91967fee..96f6c3c1ac5b6fb36ea433e27fd734ebaac0a9de 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectValueObjectFixture.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/PersistentObjectValueObjectFixture.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\DomainObject\AbstractValueObject; /** * Fixture PersistentObjectValueObjectFixture */ -class PersistentObjectValueObjectFixture extends AbstractValueObject -{ -} +class PersistentObjectValueObjectFixture extends AbstractValueObject {} diff --git a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/Query.php b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/Query.php index d489da7163851ada5a0d13a103faec404eaf84fa..7080a8ac2543aa25eeff83d2b9c2bd8e5276fc1f 100644 --- a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/Query.php +++ b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverter/Fixtures/Query.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property\TypeConverter\Fixtures; /** * Fixture Query */ -class Query -{ -} +class Query {} diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchemaTest.php b/typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchemaTest.php index 38ccf606ee029fde2c85fff4770738b3359b56d3..cf0d8a6770377ee2386964999fda78fdc623825b 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchemaTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/ClassSchemaTest.php @@ -244,13 +244,9 @@ class ClassSchemaTest extends UnitTestCase public function classSchemaDetectsMethodParameterTypeViaReflection(): void { $class = new class () { - public function foo(string $foo): void - { - } + public function foo(string $foo): void {} - public function bar(ClassSchema $foo): void - { - } + public function bar(ClassSchema $foo): void {} }; $classSchema = new ClassSchema(get_class($class)); @@ -267,9 +263,7 @@ class ClassSchemaTest extends UnitTestCase /** * @param ClassSchema $foo */ - public function foo(string $foo): void - { - } + public function foo(string $foo): void {} }; $classSchema = new ClassSchema(get_class($class)); @@ -282,19 +276,13 @@ class ClassSchemaTest extends UnitTestCase public function classSchemaCanHandleSelfMethodReturnTypes(): void { $class = new class () { - public function __construct(self $copy = null) - { - } - public function injectCopy(self $copy): void - { - } + public function __construct(self $copy = null) {} + public function injectCopy(self $copy): void {} public function foo($copy): self { return $this; } - public function bar(self $copy): void - { - } + public function bar(self $copy): void {} }; $classSchema = new ClassSchema(get_class($class)); diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithAllTypesOfMethods.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithAllTypesOfMethods.php index b883d1b5431df0e745fc68d3330501e641985c3e..bf16beebdc7da55ff9a4a26e29d65e38bcbebd10 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithAllTypesOfMethods.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithAllTypesOfMethods.php @@ -22,17 +22,11 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture; */ class DummyClassWithAllTypesOfMethods { - public function publicMethod(): void - { - } + public function publicMethod(): void {} - protected function protectedMethod(): void - { - } + protected function protectedMethod(): void {} - private function privateMethod(): void - { - } + private function privateMethod(): void {} /** * @license @@ -40,9 +34,7 @@ class DummyClassWithAllTypesOfMethods * @author * @version */ - public function methodWithIgnoredTags(): void - { - } + public function methodWithIgnoredTags(): void {} public function injectSettings(): void { @@ -64,30 +56,18 @@ class DummyClassWithAllTypesOfMethods // Will succeed } - public static function staticMethod(): void - { - } + public static function staticMethod(): void {} - public static function methodWithMandatoryParam($param): void - { - } + public static function methodWithMandatoryParam($param): void {} - public static function methodWithNullableParam($param = null): void - { - } + public static function methodWithNullableParam($param = null): void {} - public static function methodWithDefaultValueParam($param = 'foo'): void - { - } + public static function methodWithDefaultValueParam($param = 'foo'): void {} - public static function methodWithTypeHintedParam(string $param): void - { - } + public static function methodWithTypeHintedParam(string $param): void {} /** * @param \TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture\DummyClassWithAllTypesOfMethods $param */ - public function methodWithDocBlockTypeHintOnly($param): void - { - } + public function methodWithDocBlockTypeHintOnly($param): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArguments.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArguments.php index 6e353ba2b883359bd5b63042f39e163ce3b0a62c..09b3790700ded23c1b621a158d9ed64391aee8fd 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArguments.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArguments.php @@ -22,7 +22,5 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture; */ class DummyClassWithConstructorAndConstructorArguments { - public function __construct(int $foo, $bar = 'baz') - { - } + public function __construct(int $foo, $bar = 'baz') {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArgumentsWithDependencies.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArgumentsWithDependencies.php index 45628e87aba695e094befbccf04bfa9554baccaf..f86b5d9311e966e1ba9a360dd55cc7211fb0d35a 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArgumentsWithDependencies.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndConstructorArgumentsWithDependencies.php @@ -22,7 +22,5 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture; */ class DummyClassWithConstructorAndConstructorArgumentsWithDependencies { - public function __construct(DummyClassWithGettersAndSetters $foo) - { - } + public function __construct(DummyClassWithGettersAndSetters $foo) {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndWithoutConstructorArguments.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndWithoutConstructorArguments.php index 10c63f7fcfcab50c1c06e53afb0089206d0fb9ee..925f920d7d650806b68995e662611ff99642cd48 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndWithoutConstructorArguments.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithConstructorAndWithoutConstructorArguments.php @@ -22,7 +22,5 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture; */ class DummyClassWithConstructorAndWithoutConstructorArguments { - public function __construct() - { - } + public function __construct() {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithGettersAndSetters.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithGettersAndSetters.php index 649d7c0323b9eecac17efae292ac31893a356dfc..54f8071c8551f2a6cf28e6ddb66ca8d6c57ccf89 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithGettersAndSetters.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithGettersAndSetters.php @@ -150,9 +150,7 @@ class DummyClassWithGettersAndSetters /** * @param mixed $value */ - public function setWriteOnlyMagicProperty($value): void - { - } + public function setWriteOnlyMagicProperty($value): void {} /** * sets the AnotherBooleanProperty diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithInvalidTypeHint.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithInvalidTypeHint.php index be5390137999a92b64742b2fa422aab3d3075904..2c3b4146c781807f54f037cfe99a47cc7a4310aa 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithInvalidTypeHint.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithInvalidTypeHint.php @@ -22,7 +22,5 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture; */ class DummyClassWithInvalidTypeHint { - public function __construct(\Foo\Bar\Not\Found $invalid) - { - } + public function __construct(\Foo\Bar\Not\Found $invalid) {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithTags.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithTags.php index 014a339f57e26c38ae0ef36266fb32ce68140303..63ade43b5f3a32553a0110ab06e38fb802263c72 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithTags.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithTags.php @@ -27,6 +27,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture; * * @see */ -class DummyClassWithTags -{ -} +class DummyClassWithTags {} diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithoutConstructor.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithoutConstructor.php index 1e328f054eca93590c00e0eff148cafcb4f57d66..85efda4379b5896839a446420c670df823773bd3 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithoutConstructor.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyClassWithoutConstructor.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Reflection\Fixture; /** * Fixture class with getters and setters */ -class DummyClassWithoutConstructor -{ -} +class DummyClassWithoutConstructor {} diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyController.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyController.php index 0ce5a1ad173b1085bcaf23b17bf5722606137a69..34cfcbde842e570ee8bb000feeab93574781470d 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyController.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyController.php @@ -29,9 +29,7 @@ class DummyController extends ActionController /** * @param $fooParam */ - public function methodWithoutValidateAnnotationsAction($fooParam): void - { - } + public function methodWithoutValidateAnnotationsAction($fooParam): void {} /** * @Extbase\Validate(param="fooParam", validator="StringLength", options={"minimum": 1, "maximum": 10}) @@ -41,7 +39,5 @@ class DummyController extends ActionController * @Extbase\Validate(param="fooParam", validator="\TYPO3\CMS\Extbase\Validation\Validator\NotEmptyValidator") * @Extbase\Validate(param="fooParam", validator="TYPO3\CMS\Extbase\Validation\Validator\NotEmptyValidator") */ - public function methodWithValidateAnnotationsAction(string $fooParam): void - { - } + public function methodWithValidateAnnotationsAction(string $fooParam): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithIgnoreValidationDoctrineAnnotation.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithIgnoreValidationDoctrineAnnotation.php index 1f4b2403a37364a9e5f8ca8a385fbb050bc8f0b4..e2dac368e9dda060981232d1d0a758cccdd60fe2 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithIgnoreValidationDoctrineAnnotation.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithIgnoreValidationDoctrineAnnotation.php @@ -31,7 +31,5 @@ class DummyControllerWithIgnoreValidationDoctrineAnnotation * @IgnoreValidation("foo") * @IgnoreValidation("bar") */ - public function someAction($foo, $bar): void - { - } + public function someAction($foo, $bar): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParam.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParam.php index f0894e8f47b826dc01651ce73b6f6e97a35eac17..d70b46a2046c03eb8793bfd1da31e11ca764dff9 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParam.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParam.php @@ -29,7 +29,5 @@ class DummyControllerWithValidateAnnotationWithoutParam extends ActionController * @Extbase\Validate(param="fooParam", validator="NotEmpty") * @Extbase\Validate(param="fooParam", validator="StringLength") */ - public function methodWithValidateAnnotationsAction(): void - { - } + public function methodWithValidateAnnotationsAction(): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParamTypeHint.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParamTypeHint.php index 0a735618a77640f463bd3d6daea0ebb8ae4c4c0c..76f697ec730f2c17bd9b81d2d34356025dc7ca6e 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParamTypeHint.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyControllerWithValidateAnnotationWithoutParamTypeHint.php @@ -28,7 +28,5 @@ class DummyControllerWithValidateAnnotationWithoutParamTypeHint extends ActionCo /** * @Extbase\Validate(param="fooParam", validator="NotEmpty") */ - public function methodWithValidateAnnotationsAction($fooParam): void - { - } + public function methodWithValidateAnnotationsAction($fooParam): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyEntity.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyEntity.php index e08e3e2b5367e2ea4f8fd158e5642efd87067f25..2ff06bf575df55f900b70d45b53bfc8215342e30 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyEntity.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyEntity.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; /** * Dummy Entity */ -class DummyEntity extends AbstractEntity -{ -} +class DummyEntity extends AbstractEntity {} diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyModelRepository.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyModelRepository.php index 104f14bd63b29e680ceffeb286e7e1602e650807..f8c5a315b3f16838c57f8c4ee521dbcd8582ae81 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyModelRepository.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyModelRepository.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\Persistence\Repository; /** * Fixture repository */ -class DummyModelRepository extends Repository -{ -} +class DummyModelRepository extends Repository {} diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummySingleton.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummySingleton.php index 6a78fb193b9b058cc4f0df015a1779ca3547971f..b554e050907921dcb9cfd478e4816283c988f125 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummySingleton.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummySingleton.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\SingletonInterface; /** * Dummy Singleton */ -class DummySingleton implements SingletonInterface -{ -} +class DummySingleton implements SingletonInterface {} diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyValueObject.php b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyValueObject.php index 754b19f9430058c2c954a26bb519256423063f62..ddf8bac1afd2806a468c00bd050191582d07c183 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyValueObject.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/Fixture/DummyValueObject.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extbase\DomainObject\AbstractValueObject; /** * Dummy ValueObject */ -class DummyValueObject extends AbstractValueObject -{ -} +class DummyValueObject extends AbstractValueObject {} diff --git a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php index 246b16c311516631aea197edfaa9ade5e5e39039..9b6834998cb90ffa7c82bee6f5ad9b6a96ca886f 100644 --- a/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Reflection/ReflectionServiceTest.php @@ -64,8 +64,7 @@ class ReflectionServiceTest extends UnitTestCase */ public function reflectionServiceCanBeSerializedAndUnserialized(): void { - $class = new class () { - }; + $class = new class () {}; $reflectionService = new ReflectionService(new NullFrontend('extbase'), 'ClassSchemata'); $serialized = serialize($reflectionService); @@ -82,8 +81,7 @@ class ReflectionServiceTest extends UnitTestCase */ public function reflectionServiceCanBeSerializedAndUnserializedWithCacheManager(): void { - $class = new class () { - }; + $class = new class () {}; $reflectionService = new ReflectionService(new NullFrontend('extbase'), 'ClassSchemata'); $serialized = serialize($reflectionService); diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php b/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php index 465cd6f87c3dd0dc0bdbc4cfc9ef1ea481688c72..d87be601b93ad820f1cf91c93cf073ed82679462 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/DebuggerUtilityTest.php @@ -74,8 +74,7 @@ class DebuggerUtilityTest extends UnitTestCase */ public function varDumpHandlesVariadicArguments(): void { - $result = DebuggerUtility::var_dump(static function (...$args) { - }, null, 8, true, false, true); + $result = DebuggerUtility::var_dump(static function (...$args) {}, null, 8, true, false, true); self::assertStringContainsString('function (...$args)', $result); } diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/FirstController.php b/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/FirstController.php index d9438b1fe4ef6e1be4e15769acb7db9b56a30790..41a784ed3ab5666c5cc204d3dcc2df6d3009d032 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/FirstController.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/FirstController.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Extbase\Tests\Unit\Utility\Fixtures\MyExtension\Controller; -class FirstController -{ -} +class FirstController {} diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/SecondController.php b/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/SecondController.php index f6032ea1ed0f91c0b18c8b770c5ffb8c66ee9c4e..dc443f86c36553bc2f12928e1900d551a2301b9b 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/SecondController.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/SecondController.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Extbase\Tests\Unit\Utility\Fixtures\MyExtension\Controller; -class SecondController -{ -} +class SecondController {} diff --git a/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/ThirdController.php b/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/ThirdController.php index bc9a2f4474a48981483b600fbd61a99d4ec0022a..520a13e82cc4a5a48094eee060bb90c76856e1bf 100644 --- a/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/ThirdController.php +++ b/typo3/sysext/extbase/Tests/Unit/Utility/Fixtures/MyExtension/Controller/ThirdController.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Extbase\Tests\Unit\Utility\Fixtures\MyExtension\Controller; -class ThirdController -{ -} +class ThirdController {} diff --git a/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidator.php b/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidator.php index d4db8360a586f87344f8931d57bc33c7c9164ae7..0954558a3e85ec8781d358ab30aa56c373f81d68 100644 --- a/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidator.php +++ b/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidator.php @@ -24,7 +24,5 @@ class CustomValidator extends AbstractValidator /** * @param mixed $value */ - protected function isValid($value): void - { - } + protected function isValid($value): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidatorThatDoesNotImplementValidatorInterfaceValidator.php b/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidatorThatDoesNotImplementValidatorInterfaceValidator.php index 48e70218e304f720c0a4b65bca93953fe46c5eb4..9c262b6cdc1ce68af6ef462205b8c88a8841c1cb 100644 --- a/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidatorThatDoesNotImplementValidatorInterfaceValidator.php +++ b/typo3/sysext/extbase/Tests/Unit/Validation/Fixtures/Validation/Validator/CustomValidatorThatDoesNotImplementValidatorInterfaceValidator.php @@ -22,7 +22,5 @@ class CustomValidatorThatDoesNotImplementValidatorInterfaceValidator /** * @param mixed $value */ - protected function isValid($value): void - { - } + protected function isValid($value): void {} } diff --git a/typo3/sysext/extbase/Tests/Unit/Validation/Validator/DateTimeValidatorTest.php b/typo3/sysext/extbase/Tests/Unit/Validation/Validator/DateTimeValidatorTest.php index 68e1679babde8f3b10f83c6a724925a9a033a542..8fcab60526699712ad27d21dc0184c7576d300e6 100644 --- a/typo3/sysext/extbase/Tests/Unit/Validation/Validator/DateTimeValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Validation/Validator/DateTimeValidatorTest.php @@ -47,15 +47,13 @@ class DateTimeValidatorTest extends UnitTestCase new \DateTime(), ], 'Extended ' . \DateTime::class => [ - new class () extends \DateTime { - }, + new class () extends \DateTime {}, ], \DateTimeImmutable::class => [ new \DateTimeImmutable(), ], 'Extended ' . \DateTimeImmutable::class => [ - new class () extends \DateTimeImmutable { - }, + new class () extends \DateTimeImmutable {}, ], ]; } diff --git a/typo3/sysext/extbase/Tests/Unit/Validation/Validator/StringLengthValidatorTest.php b/typo3/sysext/extbase/Tests/Unit/Validation/Validator/StringLengthValidatorTest.php index 467fdaf4c90443df5c075001e1fdacf2c76d5b0d..584ec43a6b6950dbf7703b1a04472a399e7b957a 100644 --- a/typo3/sysext/extbase/Tests/Unit/Validation/Validator/StringLengthValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Validation/Validator/StringLengthValidatorTest.php @@ -200,8 +200,7 @@ class StringLengthValidatorTest extends UnitTestCase public function validateReturnsErrorsIfTheGivenObjectCanNotBeConvertedToAString(): void { $validator = new StringLengthValidator(['minimum' => 5, 'maximum' => 100]); - $object = new class () { - }; + $object = new class () {}; $result = $validator->validate($object); diff --git a/typo3/sysext/extbase/Tests/Unit/Validation/Validator/UrlValidatorTest.php b/typo3/sysext/extbase/Tests/Unit/Validation/Validator/UrlValidatorTest.php index e7d49d64a131a7cce6cea01055abe49eba9deb3e..b95949ae46d435e1421a7a9c005e1a4be5321f3b 100644 --- a/typo3/sysext/extbase/Tests/Unit/Validation/Validator/UrlValidatorTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Validation/Validator/UrlValidatorTest.php @@ -111,8 +111,7 @@ class UrlValidatorTest extends UnitTestCase 'isValid' => false, ], 'Invalid value is closure' => [ - 'value' => static function () { - }, + 'value' => static function () {}, 'isValid' => false, ], ]; diff --git a/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php b/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php index 9917c32b9b91395609e98f187eb45ed999f273e2..2500d7f15f7c5de462f84e2fc2edfdd66bfa5608 100644 --- a/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php +++ b/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/ContainerTest.php @@ -57,8 +57,7 @@ class ContainerTest extends UnitTestCase ->getMock(); $reflectionService = new ReflectionService(new NullFrontend('extbase'), 'ClassSchemata'); - $notFoundException = new class () extends \Exception implements NotFoundExceptionInterface { - }; + $notFoundException = new class () extends \Exception implements NotFoundExceptionInterface {}; $psrContainer = $this->getMockBuilder(ContainerInterface::class) ->onlyMethods(['has', 'get']) diff --git a/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/Fixtures/ContainerPropertyInjectionTestClasses.php b/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/Fixtures/ContainerPropertyInjectionTestClasses.php index 41f1aad390fd5cbc251caf88824cede15d38ae73..fea1475de34a4cdc642e4f4247ecb86f3c8f5139 100644 --- a/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/Fixtures/ContainerPropertyInjectionTestClasses.php +++ b/typo3/sysext/extbase/Tests/UnitDeprecated/Object/Container/Fixtures/ContainerPropertyInjectionTestClasses.php @@ -28,9 +28,7 @@ class PublicPropertyInjectClass public $foo; } -class ArgumentTestClassForPublicPropertyInjection -{ -} +class ArgumentTestClassForPublicPropertyInjection {} class ProtectedPropertyInjectClass { diff --git a/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php b/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php index 161ef8ab8b6dc2d5e4458868a812566afd26a878..53f6d51159d877278fe2dda7ba6b97e92843e022 100644 --- a/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php +++ b/typo3/sysext/extbase/Tests/UnitDeprecated/SignalSlot/DispatcherTest.php @@ -106,8 +106,7 @@ class DispatcherTest extends UnitTestCase $mockSignal = $this->getMockBuilder(\stdClass::class) ->addMethods(['emitSomeSignal']) ->getMock(); - $mockSlot = static function () { - }; + $mockSlot = static function () {}; $this->signalSlotDispatcher->connect(get_class($mockSignal), 'emitSomeSignal', $mockSlot, 'foo', true); $expectedSlots = [ ['class' => null, 'method' => '__invoke', 'object' => $mockSlot, 'passSignalInformation' => true], diff --git a/typo3/sysext/extensionmanager/Classes/Exception.php b/typo3/sysext/extensionmanager/Classes/Exception.php index 89d25385385b88341b35e6dd788de74ee135eaa4..0dec237744eff548348f8fd2361eed9d518544d3 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception.php +++ b/typo3/sysext/extensionmanager/Classes/Exception.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception as CoreException; /** * A generic Extensionmanager exception */ -class Exception extends CoreException -{ -} +class Exception extends CoreException {} diff --git a/typo3/sysext/extensionmanager/Classes/Exception/ExtensionManagerException.php b/typo3/sysext/extensionmanager/Classes/Exception/ExtensionManagerException.php index c3c305699a04769e019d6e22b49ea6f76b3bfffa..f5021ab5c1a61910bac889f012e32fb707e35b12 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception/ExtensionManagerException.php +++ b/typo3/sysext/extensionmanager/Classes/Exception/ExtensionManagerException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Extensionmanager\Exception; /** * An exception when something is wrong within the extension manager */ -class ExtensionManagerException extends Exception -{ -} +class ExtensionManagerException extends Exception {} diff --git a/typo3/sysext/extensionmanager/Classes/Exception/InvalidFileException.php b/typo3/sysext/extensionmanager/Classes/Exception/InvalidFileException.php index 4f73368a1da1d0735dd429497a9fd61d03ef99a0..24fef9f02fb19c5c4cfdeea30dc59fa2f2ade035 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception/InvalidFileException.php +++ b/typo3/sysext/extensionmanager/Classes/Exception/InvalidFileException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Extensionmanager\Exception; /** * An exception when an uploaded file is invalid */ -class InvalidFileException extends ExtensionManagerException -{ -} +class InvalidFileException extends ExtensionManagerException {} diff --git a/typo3/sysext/extensionmanager/Classes/Exception/MissingExtensionDependencyException.php b/typo3/sysext/extensionmanager/Classes/Exception/MissingExtensionDependencyException.php index f03125b9e62ff79d06223c89c883d4e17d2ecdca..ae346fbc8894d3ae66a1589f9297ad9991159b30 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception/MissingExtensionDependencyException.php +++ b/typo3/sysext/extensionmanager/Classes/Exception/MissingExtensionDependencyException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extensionmanager\Exception; /** * An exception when some dependency is unresolved */ -class MissingExtensionDependencyException extends UnresolvedDependencyException -{ -} +class MissingExtensionDependencyException extends UnresolvedDependencyException {} diff --git a/typo3/sysext/extensionmanager/Classes/Exception/MissingVersionDependencyException.php b/typo3/sysext/extensionmanager/Classes/Exception/MissingVersionDependencyException.php index 09d67976e510ef4d294e7f94647cb8b4d3c68b6c..1b1d1f46c5a31095755e5a5ce8867f2195d5ec5a 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception/MissingVersionDependencyException.php +++ b/typo3/sysext/extensionmanager/Classes/Exception/MissingVersionDependencyException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extensionmanager\Exception; /** * An exception when some dependency is unresolved */ -class MissingVersionDependencyException extends UnresolvedDependencyException -{ -} +class MissingVersionDependencyException extends UnresolvedDependencyException {} diff --git a/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedDependencyException.php b/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedDependencyException.php index c5e8d11b2972ea8c5e5fb595575aa03feba72056..8b10461c65c3090f0ca6d5e560c4bcb90b40abc0 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedDependencyException.php +++ b/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedDependencyException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extensionmanager\Exception; /** * An exception when some dependency is unresolved */ -class UnresolvedDependencyException extends ExtensionManagerException -{ -} +class UnresolvedDependencyException extends ExtensionManagerException {} diff --git a/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedPhpDependencyException.php b/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedPhpDependencyException.php index 2439ad86f3b964aa19ed7eff10f2b46eb5d989c0..88d339ba095992938e79ad40b9569077507cfe1a 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedPhpDependencyException.php +++ b/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedPhpDependencyException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extensionmanager\Exception; /** * An exception when some dependency is unresolved */ -class UnresolvedPhpDependencyException extends UnresolvedDependencyException -{ -} +class UnresolvedPhpDependencyException extends UnresolvedDependencyException {} diff --git a/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedTypo3DependencyException.php b/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedTypo3DependencyException.php index 942dfb3ca5ff456e16c5ace872a9aa864ba2558d..294921de800398d0a61a6b4ef1404ac6f48844ea 100644 --- a/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedTypo3DependencyException.php +++ b/typo3/sysext/extensionmanager/Classes/Exception/UnresolvedTypo3DependencyException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Extensionmanager\Exception; /** * An exception when some dependency is unresolved */ -class UnresolvedTypo3DependencyException extends UnresolvedDependencyException -{ -} +class UnresolvedTypo3DependencyException extends UnresolvedDependencyException {} diff --git a/typo3/sysext/extensionmanager/Classes/Remote/DownloadFailedException.php b/typo3/sysext/extensionmanager/Classes/Remote/DownloadFailedException.php index dcc951ca70b8b442fe55e36317ba5577615f28bf..0d7d0e6d7fc7e41432bff07ebf5891bcbe847fcf 100644 --- a/typo3/sysext/extensionmanager/Classes/Remote/DownloadFailedException.php +++ b/typo3/sysext/extensionmanager/Classes/Remote/DownloadFailedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException; /** * Exception thrown when a file could not be downloaded */ -class DownloadFailedException extends ExtensionManagerException -{ -} +class DownloadFailedException extends ExtensionManagerException {} diff --git a/typo3/sysext/extensionmanager/Classes/Remote/RemoteNotRegisteredException.php b/typo3/sysext/extensionmanager/Classes/Remote/RemoteNotRegisteredException.php index 7347ed85182d3f4eb893c7d1f554dc7ccd450b3a..3ee8e69a95fdb6ba0a0fc8cd62fb82e925ace558 100644 --- a/typo3/sysext/extensionmanager/Classes/Remote/RemoteNotRegisteredException.php +++ b/typo3/sysext/extensionmanager/Classes/Remote/RemoteNotRegisteredException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException; /** * An exception when a requested remote does not exist */ -class RemoteNotRegisteredException extends ExtensionManagerException -{ -} +class RemoteNotRegisteredException extends ExtensionManagerException {} diff --git a/typo3/sysext/extensionmanager/Classes/Remote/VerificationFailedException.php b/typo3/sysext/extensionmanager/Classes/Remote/VerificationFailedException.php index 14f2bc38379a11d346de58ff9c339d6ca722651b..566c6783b899d4dd031b18ba329bb4594a109c1f 100644 --- a/typo3/sysext/extensionmanager/Classes/Remote/VerificationFailedException.php +++ b/typo3/sysext/extensionmanager/Classes/Remote/VerificationFailedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Extensionmanager\Exception\ExtensionManagerException; /** * Exception thrown when a downloaded file could not be extracted or was invalid */ -class VerificationFailedException extends ExtensionManagerException -{ -} +class VerificationFailedException extends ExtensionManagerException {} diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php index 437624aff005db71dd716a978a75d256e38d0331..10cb228919a1311bc917782b5d2b90fa58837d19 100644 --- a/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php +++ b/typo3/sysext/extensionmanager/Tests/Unit/Report/ExtensionStatusTest.php @@ -142,9 +142,7 @@ class ExtensionStatusTest extends UnitTestCase { $remoteRegistryProphecy = $this->setUpRegistryStatusTests(); $remote = new class () extends TerExtensionRemote { - public function __construct() - { - } + public function __construct() {} public function getLastUpdate(): \DateTimeInterface { @@ -321,9 +319,7 @@ class ExtensionStatusTest extends UnitTestCase $remoteRegistryProphecy = $this->prophesize(RemoteRegistry::class); if ($setupRepositoryStatusOk) { $remote = new class () extends TerExtensionRemote { - public function __construct() - { - } + public function __construct() {} public function getLastUpdate(): \DateTimeInterface { return new \DateTimeImmutable('-4days'); diff --git a/typo3/sysext/felogin/Classes/Configuration/IncompleteConfigurationException.php b/typo3/sysext/felogin/Classes/Configuration/IncompleteConfigurationException.php index 7b5d95c5c7b270e4371276b8aa938ebaa78f6bce..b5c5c108a2e332ed810d9ec6888cdbe6db8ec887 100644 --- a/typo3/sysext/felogin/Classes/Configuration/IncompleteConfigurationException.php +++ b/typo3/sysext/felogin/Classes/Configuration/IncompleteConfigurationException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\FrontendLogin\Configuration; /** * @internal this is a concrete TYPO3 implementation and solely used for EXT:felogin and not part of TYPO3's Core API. */ -class IncompleteConfigurationException extends \Exception -{ -} +class IncompleteConfigurationException extends \Exception {} diff --git a/typo3/sysext/felogin/Classes/Event/LoginConfirmedEvent.php b/typo3/sysext/felogin/Classes/Event/LoginConfirmedEvent.php index bc1e62611579c374e2f8d8b149121974eeea40a6..bf4cdd2b64d98b83529bb4cc5f30801d40242640 100644 --- a/typo3/sysext/felogin/Classes/Event/LoginConfirmedEvent.php +++ b/typo3/sysext/felogin/Classes/Event/LoginConfirmedEvent.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\FrontendLogin\Event; * A notification when a log in has successfully arrived at the plugin, via the view and the controller, multiple * information can be overridden in Event Listeners. */ -final class LoginConfirmedEvent extends AbstractConfirmedEvent -{ -} +final class LoginConfirmedEvent extends AbstractConfirmedEvent {} diff --git a/typo3/sysext/felogin/Classes/Event/LoginErrorOccurredEvent.php b/typo3/sysext/felogin/Classes/Event/LoginErrorOccurredEvent.php index 37c4c5ad4bf293b542fac4545ff7deed8d6075c0..92cb70bb1730a2e35844f36d26bceb8515b827ad 100644 --- a/typo3/sysext/felogin/Classes/Event/LoginErrorOccurredEvent.php +++ b/typo3/sysext/felogin/Classes/Event/LoginErrorOccurredEvent.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\FrontendLogin\Event; /** * A notification if something went wrong while trying to log in a user. */ -final class LoginErrorOccurredEvent -{ -} +final class LoginErrorOccurredEvent {} diff --git a/typo3/sysext/felogin/Classes/Event/LogoutConfirmedEvent.php b/typo3/sysext/felogin/Classes/Event/LogoutConfirmedEvent.php index 6443b8ab5727c5315653b40f19c117a56c734d9a..fe404a8df9ee8ca1e3667ff9a07fe2805661c346 100644 --- a/typo3/sysext/felogin/Classes/Event/LogoutConfirmedEvent.php +++ b/typo3/sysext/felogin/Classes/Event/LogoutConfirmedEvent.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\FrontendLogin\Event; * A notification when a log out has successfully arrived at the plugin, via the view and the controller, multiple * information can be overridden in Event Listeners. */ -final class LogoutConfirmedEvent extends AbstractConfirmedEvent -{ -} +final class LogoutConfirmedEvent extends AbstractConfirmedEvent {} diff --git a/typo3/sysext/filelist/Classes/Controller/FileListController.php b/typo3/sysext/filelist/Classes/Controller/FileListController.php index 44d32e7ff6a2942f44e05dd99ecdd8354b196a95..9a32753a88598765723a4dcbdfef1fef6e877111 100644 --- a/typo3/sysext/filelist/Classes/Controller/FileListController.php +++ b/typo3/sysext/filelist/Classes/Controller/FileListController.php @@ -337,7 +337,7 @@ class FileListController implements LoggerAwareInterface if (($this->cmd === 'copyMarked' || $this->cmd === 'removeMarked')) { // Get CBC from request, and map the element values, since they must either be the file identifier, // in case the element should be transferred to the clipboard, or false if it should be removed. - $CBC = array_map(fn ($item) => $this->cmd === 'copyMarked' ? $item : false, (array)($request->getParsedBody()['CBC'] ?? [])); + $CBC = array_map(fn($item) => $this->cmd === 'copyMarked' ? $item : false, (array)($request->getParsedBody()['CBC'] ?? [])); // Cleanup CBC $CB['el'] = $this->filelist->clipObj->cleanUpCBC($CBC, '_FILE'); } diff --git a/typo3/sysext/filelist/Classes/FileList.php b/typo3/sysext/filelist/Classes/FileList.php index cb547dfa1f75587d19f15f77701f11480b08be90..29e9d6231a7ea42d4c9509e25f154661fb4e6041 100644 --- a/typo3/sysext/filelist/Classes/FileList.php +++ b/typo3/sysext/filelist/Classes/FileList.php @@ -1243,7 +1243,7 @@ class FileList // Fetch all system languages except "default (0)" and "all languages (-1)" $systemLanguages = array_filter( $this->translateTools->getSystemLanguages(), - static fn (array $languageRecord): bool => $languageRecord['uid'] > 0 && $backendUser->checkLanguageAccess($languageRecord['uid']) + static fn(array $languageRecord): bool => $languageRecord['uid'] > 0 && $backendUser->checkLanguageAccess($languageRecord['uid']) ); if ($systemLanguages === [] diff --git a/typo3/sysext/fluid/Classes/View/AbstractTemplateView.php b/typo3/sysext/fluid/Classes/View/AbstractTemplateView.php index 00b1184e3f4c5096866bf6a588f6392639b1b69d..41104d628bd9c409832299e2f6cd98c17055dbb3 100644 --- a/typo3/sysext/fluid/Classes/View/AbstractTemplateView.php +++ b/typo3/sysext/fluid/Classes/View/AbstractTemplateView.php @@ -44,9 +44,7 @@ abstract class AbstractTemplateView extends Typo3FluidAbstractTemplateView imple * * @deprecated since v11, will be removed with v12. Drop together with removal of extbase ViewInterface. */ - public function initializeView() - { - } + public function initializeView() {} /** * @param RenderingContextInterface $context diff --git a/typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ExtendsAbstractEntity.php b/typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ExtendsAbstractEntity.php index 896264eb5240ac45dd9c585bf25e63b7b3424a80..df6e508173065d44df1310db78c9daf3df87875d 100644 --- a/typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ExtendsAbstractEntity.php +++ b/typo3/sysext/fluid/Tests/Functional/Fixtures/ViewHelpers/ExtendsAbstractEntity.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Fluid\Tests\Functional\Fixtures\ViewHelpers; use TYPO3\CMS\Extbase\DomainObject\AbstractEntity; -class ExtendsAbstractEntity extends AbstractEntity -{ -} +class ExtendsAbstractEntity extends AbstractEntity {} diff --git a/typo3/sysext/form/Classes/Controller/FormEditorController.php b/typo3/sysext/form/Classes/Controller/FormEditorController.php index 1988eea45c94f56f38087abb0166ce424972d486..47c09b45637ae3befcbda04c2082d20128b80c33 100644 --- a/typo3/sysext/form/Classes/Controller/FormEditorController.php +++ b/typo3/sysext/form/Classes/Controller/FormEditorController.php @@ -153,7 +153,7 @@ class FormEditorController extends AbstractBackendController $requireJsModules = array_filter( $this->prototypeConfiguration['formEditor']['dynamicRequireJsModules'], - fn (string $name) => in_array($name, self::JS_MODULE_NAMES, true), + fn(string $name) => in_array($name, self::JS_MODULE_NAMES, true), ARRAY_FILTER_USE_KEY ); $pageRenderer = $this->pageRenderer; diff --git a/typo3/sysext/form/Classes/Controller/FormManagerController.php b/typo3/sysext/form/Classes/Controller/FormManagerController.php index 53a837183652a7c24b0bf04e3a8f42f3127f8dea..d14b42b84279c29c389ff5c5881bde66d903a5c3 100644 --- a/typo3/sysext/form/Classes/Controller/FormManagerController.php +++ b/typo3/sysext/form/Classes/Controller/FormManagerController.php @@ -100,7 +100,7 @@ class FormManagerController extends AbstractBackendController $requireJsModules = array_filter( $this->formSettings['formManager']['dynamicRequireJsModules'], - fn (string $name) => in_array($name, self::JS_MODULE_NAMES, true), + fn(string $name) => in_array($name, self::JS_MODULE_NAMES, true), ARRAY_FILTER_USE_KEY ); $this->pageRenderer->getJavaScriptRenderer()->addJavaScriptModuleInstruction( diff --git a/typo3/sysext/form/Classes/Domain/Configuration/Exception/ArrayProcessorException.php b/typo3/sysext/form/Classes/Domain/Configuration/Exception/ArrayProcessorException.php index 5ac4e36f260aeba616f3956423d2968cea1e7441..19620f051330cd058999720b557a41b83cdf1033 100644 --- a/typo3/sysext/form/Classes/Domain/Configuration/Exception/ArrayProcessorException.php +++ b/typo3/sysext/form/Classes/Domain/Configuration/Exception/ArrayProcessorException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Domain\Exception; /** * @internal */ -class ArrayProcessorException extends Exception -{ -} +class ArrayProcessorException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Configuration/Exception/PropertyException.php b/typo3/sysext/form/Classes/Domain/Configuration/Exception/PropertyException.php index 40381b0478c6cb8ad85c1697cf10f1af0e91252d..d41770f857acc7819367b7b1ae70040e15abc239 100644 --- a/typo3/sysext/form/Classes/Domain/Configuration/Exception/PropertyException.php +++ b/typo3/sysext/form/Classes/Domain/Configuration/Exception/PropertyException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Domain\Exception; /** * This exception is thrown if a form setup property was not found. */ -class PropertyException extends Exception -{ -} +class PropertyException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Configuration/Exception/PrototypeNotFoundException.php b/typo3/sysext/form/Classes/Domain/Configuration/Exception/PrototypeNotFoundException.php index b5242be769d1651abb0cb3078990a69d2f054548..13113ffb4239cdba0a26a9a04690cd50baf14634 100644 --- a/typo3/sysext/form/Classes/Domain/Configuration/Exception/PrototypeNotFoundException.php +++ b/typo3/sysext/form/Classes/Domain/Configuration/Exception/PrototypeNotFoundException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Domain\Exception; /** * This exception is thrown if a form prototype for a given name was not found. */ -class PrototypeNotFoundException extends Exception -{ -} +class PrototypeNotFoundException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Exception.php b/typo3/sysext/form/Classes/Domain/Exception.php index 9f382e31be1510586bf45783b56f95c5d90c6de6..b8bb4006f4cb4c78399f12e72b468d74502bce3a 100644 --- a/typo3/sysext/form/Classes/Domain/Exception.php +++ b/typo3/sysext/form/Classes/Domain/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Exception as FormException; /** * A generic Form domain Exception */ -class Exception extends FormException -{ -} +class Exception extends FormException {} diff --git a/typo3/sysext/form/Classes/Domain/Exception/IdentifierNotValidException.php b/typo3/sysext/form/Classes/Domain/Exception/IdentifierNotValidException.php index b00f182cc130bd795193611b90fa72e830503fcf..600a4f37f7789f9ffa683fde848da0357023bf29 100644 --- a/typo3/sysext/form/Classes/Domain/Exception/IdentifierNotValidException.php +++ b/typo3/sysext/form/Classes/Domain/Exception/IdentifierNotValidException.php @@ -27,6 +27,4 @@ use TYPO3\CMS\Form\Domain\Exception; * This exception is thrown if the "identifier" for a Form, a Page or a Form Element * is invalid (i.e. empty or not a string) */ -class IdentifierNotValidException extends Exception -{ -} +class IdentifierNotValidException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Exception/RenderingException.php b/typo3/sysext/form/Classes/Domain/Exception/RenderingException.php index 97b3eeb3deaa08b7623debbc62c6f407df9d536a..b6f6a80d5c56c96ec882857c155a4ee2df15e492 100644 --- a/typo3/sysext/form/Classes/Domain/Exception/RenderingException.php +++ b/typo3/sysext/form/Classes/Domain/Exception/RenderingException.php @@ -26,6 +26,4 @@ use TYPO3\CMS\Form\Domain\Exception; /** * This exception is thrown if a rendering error occurs */ -class RenderingException extends Exception -{ -} +class RenderingException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotFoundException.php b/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotFoundException.php index 7717e037bc4c27f13b6d05924bb304bf50c001cd..d71e98b201ddd0179a7a68494893d53348ce9f21 100644 --- a/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotFoundException.php +++ b/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotFoundException.php @@ -27,6 +27,4 @@ use TYPO3\CMS\Form\Domain\Exception; * This exception is thrown if a Type Definition for a form element was not found, * or if the implementationClassName was not set. */ -class TypeDefinitionNotFoundException extends Exception -{ -} +class TypeDefinitionNotFoundException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotValidException.php b/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotValidException.php index ea1f33b75388af82bc1a86ef122c81f62e3bbc2a..4e1393a84c391a1760b6c46541dccd135f4b645e 100644 --- a/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotValidException.php +++ b/typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotValidException.php @@ -27,6 +27,4 @@ use TYPO3\CMS\Form\Domain\Exception; * This exception is thrown if a Type Definition for a form element was not valid, * i.e. it has properties which are not supported. */ -class TypeDefinitionNotValidException extends Exception -{ -} +class TypeDefinitionNotValidException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Exception/UnknownCompositRenderableException.php b/typo3/sysext/form/Classes/Domain/Exception/UnknownCompositRenderableException.php index 0e4868dacc45c3f23e0b5006f2454665c80355b3..d0dc6d989e3933f5efe7534a509667418a7d2319 100644 --- a/typo3/sysext/form/Classes/Domain/Exception/UnknownCompositRenderableException.php +++ b/typo3/sysext/form/Classes/Domain/Exception/UnknownCompositRenderableException.php @@ -27,6 +27,4 @@ use TYPO3\CMS\Form\Domain\Exception; * This exception is thrown if the ArrayFormFactory want to create child * elements within a unknown composite renderable. */ -class UnknownCompositRenderableException extends Exception -{ -} +class UnknownCompositRenderableException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Finishers/Exception/FinisherException.php b/typo3/sysext/form/Classes/Domain/Finishers/Exception/FinisherException.php index 5014857df70e22c6944650a28eaa4cfa5ccf228b..71f30490b201d1900704f8a24da014de1d4be8cf 100644 --- a/typo3/sysext/form/Classes/Domain/Finishers/Exception/FinisherException.php +++ b/typo3/sysext/form/Classes/Domain/Finishers/Exception/FinisherException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Domain\Exception; /** * This exception is thrown in Form Finishers */ -class FinisherException extends Exception -{ -} +class FinisherException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Model/Exception.php b/typo3/sysext/form/Classes/Domain/Model/Exception.php index 483c6349581c9161e5994817c0586070c0f990c0..ac158ee2f36162f64cf6685ec0574b63c3d6d911 100644 --- a/typo3/sysext/form/Classes/Domain/Model/Exception.php +++ b/typo3/sysext/form/Classes/Domain/Model/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Domain\Exception as DomainException; /** * A generic Form model Exception */ -class Exception extends DomainException -{ -} +class Exception extends DomainException {} diff --git a/typo3/sysext/form/Classes/Domain/Model/Exception/DuplicateFormElementException.php b/typo3/sysext/form/Classes/Domain/Model/Exception/DuplicateFormElementException.php index 6c43a25c14bbcd592a1b44ee0ce3323a582a53c5..a5812830faf57953e5456c6e2b20acb4ba450b35 100644 --- a/typo3/sysext/form/Classes/Domain/Model/Exception/DuplicateFormElementException.php +++ b/typo3/sysext/form/Classes/Domain/Model/Exception/DuplicateFormElementException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Form\Domain\Model\Exception; * This exception is thrown if two Form Elements with the same Identifier are added * to a form. */ -class DuplicateFormElementException extends Exception -{ -} +class DuplicateFormElementException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Model/Exception/FinisherPresetNotFoundException.php b/typo3/sysext/form/Classes/Domain/Model/Exception/FinisherPresetNotFoundException.php index da2421f80879ab28132d29ef9c0e259cf801c16b..596e9d6b8095763928806e5d0105eacdb81627da 100644 --- a/typo3/sysext/form/Classes/Domain/Model/Exception/FinisherPresetNotFoundException.php +++ b/typo3/sysext/form/Classes/Domain/Model/Exception/FinisherPresetNotFoundException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Form\Domain\Model\Exception; * This exception is thrown if a Finisher Preset was not found, * or if the implementationClassName was not set. */ -class FinisherPresetNotFoundException extends Exception -{ -} +class FinisherPresetNotFoundException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Model/Exception/FormDefinitionConsistencyException.php b/typo3/sysext/form/Classes/Domain/Model/Exception/FormDefinitionConsistencyException.php index dfc1dcef9903c6392646253a09cba7e34bb2341c..f736875b3c04ac9ce77c3879c050aae92e6a5b12 100644 --- a/typo3/sysext/form/Classes/Domain/Model/Exception/FormDefinitionConsistencyException.php +++ b/typo3/sysext/form/Classes/Domain/Model/Exception/FormDefinitionConsistencyException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Form\Domain\Model\Exception; * This exception is thrown if the form definition would get an inconsistent state, like * adding a page to two different forms */ -class FormDefinitionConsistencyException extends Exception -{ -} +class FormDefinitionConsistencyException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Model/Exception/ValidatorPresetNotFoundException.php b/typo3/sysext/form/Classes/Domain/Model/Exception/ValidatorPresetNotFoundException.php index 6dd36acc0d811866d994f3262658f2f074e7f021..a917e51f358367dd6f4929347eb9209030ba9cc8 100644 --- a/typo3/sysext/form/Classes/Domain/Model/Exception/ValidatorPresetNotFoundException.php +++ b/typo3/sysext/form/Classes/Domain/Model/Exception/ValidatorPresetNotFoundException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Form\Domain\Model\Exception; * This exception is thrown if a Validator Preset was not found, * or if the implementationClassName was not set. */ -class ValidatorPresetNotFoundException extends Exception -{ -} +class ValidatorPresetNotFoundException extends Exception {} diff --git a/typo3/sysext/form/Classes/Domain/Model/FormElements/GenericFormElement.php b/typo3/sysext/form/Classes/Domain/Model/FormElements/GenericFormElement.php index 2d5bb8d043ca0d6cedd31ba7e926f64790f17d27..0e31dace9c5833ffb7f202bb47fb8c25a482f224 100644 --- a/typo3/sysext/form/Classes/Domain/Model/FormElements/GenericFormElement.php +++ b/typo3/sysext/form/Classes/Domain/Model/FormElements/GenericFormElement.php @@ -26,6 +26,4 @@ namespace TYPO3\CMS\Form\Domain\Model\FormElements; * * Scope: frontend */ -class GenericFormElement extends AbstractFormElement -{ -} +class GenericFormElement extends AbstractFormElement {} diff --git a/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRow.php b/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRow.php index c64d28c7fa40ff9978f6e783b85ea003b4f9b983..6b7c278e37fba394b393ae48f73705bb284a7926 100644 --- a/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRow.php +++ b/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRow.php @@ -27,6 +27,4 @@ namespace TYPO3\CMS\Form\Domain\Model\FormElements; * Scope: frontend * **This class is NOT meant to be sub classed by developers.** */ -class GridRow extends Section implements GridRowInterface -{ -} +class GridRow extends Section implements GridRowInterface {} diff --git a/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRowInterface.php b/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRowInterface.php index 3e742bc82bd29dd0e3eb2f19c9d1ea88fd120c76..a963d29987f9a9606fe7207b7e0a28184b57fd35 100644 --- a/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRowInterface.php +++ b/typo3/sysext/form/Classes/Domain/Model/FormElements/GridRowInterface.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Form\Domain\Model\FormElements; /** * Scope: frontend */ -interface GridRowInterface extends FormElementInterface -{ -} +interface GridRowInterface extends FormElementInterface {} diff --git a/typo3/sysext/form/Classes/Domain/Model/FormElements/Section.php b/typo3/sysext/form/Classes/Domain/Model/FormElements/Section.php index c166d4836cfb0606d7ca2f8cedb7d21b519ac600..c622193c7054918d589a5db64697a2eb21287ad7 100644 --- a/typo3/sysext/form/Classes/Domain/Model/FormElements/Section.php +++ b/typo3/sysext/form/Classes/Domain/Model/FormElements/Section.php @@ -92,9 +92,7 @@ class Section extends AbstractSection implements FormElementInterface * * @param mixed $defaultValue the default value for this Form Element */ - public function setDefaultValue($defaultValue) - { - } + public function setDefaultValue($defaultValue) {} /** * Get all element-specific configuration properties diff --git a/typo3/sysext/form/Classes/Domain/Model/FormElements/UnknownFormElement.php b/typo3/sysext/form/Classes/Domain/Model/FormElements/UnknownFormElement.php index bb50416090e5c5424bffc025b5b8244ccd40c18b..e2815d6fee68263bc07365c3398b34fe20c206c2 100644 --- a/typo3/sysext/form/Classes/Domain/Model/FormElements/UnknownFormElement.php +++ b/typo3/sysext/form/Classes/Domain/Model/FormElements/UnknownFormElement.php @@ -103,9 +103,7 @@ class UnknownFormElement extends AbstractRenderable implements FormElementInterf * @param mixed $defaultValue the default value for this Form Element * @internal */ - public function setDefaultValue($defaultValue) - { - } + public function setDefaultValue($defaultValue) {} /** * Not used in this implementation @@ -114,9 +112,7 @@ class UnknownFormElement extends AbstractRenderable implements FormElementInterf * @param mixed $value * @internal */ - public function setProperty(string $key, $value) - { - } + public function setProperty(string $key, $value) {} /** * @return array diff --git a/typo3/sysext/form/Classes/Domain/Runtime/Exception/PropertyMappingException.php b/typo3/sysext/form/Classes/Domain/Runtime/Exception/PropertyMappingException.php index 4d609b7ff1d9c01e5450c24bc614bd6bcc91728c..e1c31ec1eb11e6a6183acd136b897b71dd52b8bb 100644 --- a/typo3/sysext/form/Classes/Domain/Runtime/Exception/PropertyMappingException.php +++ b/typo3/sysext/form/Classes/Domain/Runtime/Exception/PropertyMappingException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Form\Domain\Exception; * a \TYPO3\CMS\Extbase\Property\Exception. It adds some more Information to * better understand why the PropertyMapper failed to map the properties */ -class PropertyMappingException extends Exception -{ -} +class PropertyMappingException extends Exception {} diff --git a/typo3/sysext/form/Classes/Exception.php b/typo3/sysext/form/Classes/Exception.php index f62631bbd63e87c5a98064fa5acd987d89aa901f..b8c2d05e9e36ff8b60cb6acf15794ea2bb5c50ad 100644 --- a/typo3/sysext/form/Classes/Exception.php +++ b/typo3/sysext/form/Classes/Exception.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Error\Exception as CoreException; /** * A generic Form Exception */ -class Exception extends CoreException -{ -} +class Exception extends CoreException {} diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/Exception.php b/typo3/sysext/form/Classes/Mvc/Configuration/Exception.php index 6fc290471caca5eeb0716e7c29bc3cad79d1ff7a..b05ca08646aa9583da1f3a579b6ca97fbbdcbb51 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/Exception.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/Exception.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Form\Exception as FormException; * * @internal */ -class Exception extends FormException -{ -} +class Exception extends FormException {} diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/CycleInheritancesException.php b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/CycleInheritancesException.php index f092db34c4220c5726f4fd931f3620a31f75c752..c653cc020997ce6e864b14df81c2a7292fc0f3c7 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/CycleInheritancesException.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/CycleInheritancesException.php @@ -25,6 +25,4 @@ use TYPO3\CMS\Form\Mvc\Configuration\Exception; * * @internal */ -class CycleInheritancesException extends Exception -{ -} +class CycleInheritancesException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ExtensionNameRequiredException.php b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ExtensionNameRequiredException.php index 12b6ae15428d70a5471dfe11b61ce2697194a702..e7e54712f555b2b130f43485d5d1032dbff19fda 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ExtensionNameRequiredException.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ExtensionNameRequiredException.php @@ -25,6 +25,4 @@ use TYPO3\CMS\Form\Mvc\Configuration\Exception; * * @internal */ -class ExtensionNameRequiredException extends Exception -{ -} +class ExtensionNameRequiredException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/FileWriteException.php b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/FileWriteException.php index 222f14e4f96318182fd13a3598a3cc1f1e1aa643..c54b63b5b9edcd15c9394bda0282a43841af8f79 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/FileWriteException.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/FileWriteException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Form\Mvc\Configuration\Exception; * Exception for file write errors * @internal */ -class FileWriteException extends Exception -{ -} +class FileWriteException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/NoSuchFileException.php b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/NoSuchFileException.php index 7349076b69f702ecf0342df7fe5921374be14f29..330dd2cad7cd4b99644b25daf067a61d7bdf0247 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/NoSuchFileException.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/NoSuchFileException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Form\Mvc\Configuration\Exception; * A No Such File exception * @internal */ -class NoSuchFileException extends Exception -{ -} +class NoSuchFileException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ParseErrorException.php b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ParseErrorException.php index 4e4be3bc80a9825395e9eeffe8062d3a6df7c1e7..d605bc9e7c44575bcf8586a61f695769a7797cd8 100644 --- a/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ParseErrorException.php +++ b/typo3/sysext/form/Classes/Mvc/Configuration/Exception/ParseErrorException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Form\Mvc\Configuration\Exception; * A Parse Error exception * @internal */ -class ParseErrorException extends Exception -{ -} +class ParseErrorException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/Persistence/Exception.php b/typo3/sysext/form/Classes/Mvc/Persistence/Exception.php index 1ac0d03232d8d9a832728149345c30b1eddbdf54..7af5f3e7f9f2a55bc47e06dd9b98c633685016b4 100644 --- a/typo3/sysext/form/Classes/Mvc/Persistence/Exception.php +++ b/typo3/sysext/form/Classes/Mvc/Persistence/Exception.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Form\Exception as FormException; * * @internal */ -class Exception extends FormException -{ -} +class Exception extends FormException {} diff --git a/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniqueIdentifierException.php b/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniqueIdentifierException.php index 0e2b0c7ab690fd87d71ed3252b1da60c028f20e7..b86a66117f514ab09c54105eea5a1ab55714c8a1 100644 --- a/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniqueIdentifierException.php +++ b/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniqueIdentifierException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Mvc\Persistence\Exception; /** * @internal */ -class NoUniqueIdentifierException extends Exception -{ -} +class NoUniqueIdentifierException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniquePersistenceIdentifierException.php b/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniquePersistenceIdentifierException.php index f8c2045994bf6cfb18af90ca2f9911db11064c5b..a652019106ef0c6404ea78bc7ebf2c689267ed1c 100644 --- a/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniquePersistenceIdentifierException.php +++ b/typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniquePersistenceIdentifierException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Form\Mvc\Persistence\Exception; /** * @internal */ -class NoUniquePersistenceIdentifierException extends Exception -{ -} +class NoUniquePersistenceIdentifierException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/Persistence/Exception/PersistenceManagerException.php b/typo3/sysext/form/Classes/Mvc/Persistence/Exception/PersistenceManagerException.php index f50e364267413d01da113138e8327768c4b52799..11fdcad17b682a36c0a18956268195c17cb9818c 100644 --- a/typo3/sysext/form/Classes/Mvc/Persistence/Exception/PersistenceManagerException.php +++ b/typo3/sysext/form/Classes/Mvc/Persistence/Exception/PersistenceManagerException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Form\Mvc\Persistence\Exception; * * @internal */ -class PersistenceManagerException extends Exception -{ -} +class PersistenceManagerException extends Exception {} diff --git a/typo3/sysext/form/Classes/Mvc/ProcessingRule.php b/typo3/sysext/form/Classes/Mvc/ProcessingRule.php index 4d06b02903aa6b4cf379b20cd66e5002690e7e4a..f79666729859c0f2d83938b9ee6ad2600cdd6982 100644 --- a/typo3/sysext/form/Classes/Mvc/ProcessingRule.php +++ b/typo3/sysext/form/Classes/Mvc/ProcessingRule.php @@ -111,7 +111,7 @@ class ProcessingRule */ public function removeAllValidators(): void { - $this->filterValidators(fn () => false); + $this->filterValidators(fn() => false); } /** diff --git a/typo3/sysext/form/Classes/Mvc/Validation/Exception/InvalidValidationOptionsException.php b/typo3/sysext/form/Classes/Mvc/Validation/Exception/InvalidValidationOptionsException.php index 8a0742de879414d7c9202b1b7b77cdacb5bd742f..0d07f3d66b2f8bcb12a1ef804168bdb9340f804e 100644 --- a/typo3/sysext/form/Classes/Mvc/Validation/Exception/InvalidValidationOptionsException.php +++ b/typo3/sysext/form/Classes/Mvc/Validation/Exception/InvalidValidationOptionsException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Form\Mvc\Validation\Exception; use TYPO3\CMS\Form\Exception; -class InvalidValidationOptionsException extends Exception -{ -} +class InvalidValidationOptionsException extends Exception {} diff --git a/typo3/sysext/form/Classes/Slot/FormDefinitionPersistenceException.php b/typo3/sysext/form/Classes/Slot/FormDefinitionPersistenceException.php index 7d3a2b8ec9806d301e4c10d56218bfde3d47160f..b0f8e8b0d6e0a751a547a3a7587f4b153b0d98d7 100644 --- a/typo3/sysext/form/Classes/Slot/FormDefinitionPersistenceException.php +++ b/typo3/sysext/form/Classes/Slot/FormDefinitionPersistenceException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Form\Slot; /** * @internal */ -class FormDefinitionPersistenceException extends \RuntimeException -{ -} +class FormDefinitionPersistenceException extends \RuntimeException {} diff --git a/typo3/sysext/form/Classes/Type/FormDefinitionArray.php b/typo3/sysext/form/Classes/Type/FormDefinitionArray.php index 91f3de109e6b17a7793025ec5f6aff3fb4e57511..93f23f17324dfcd2c7036fdde78ac69e7786cf55 100644 --- a/typo3/sysext/form/Classes/Type/FormDefinitionArray.php +++ b/typo3/sysext/form/Classes/Type/FormDefinitionArray.php @@ -21,6 +21,4 @@ namespace TYPO3\CMS\Form\Type; * Wrapper for basic form definition arrays * @internal */ -class FormDefinitionArray extends \ArrayObject -{ -} +class FormDefinitionArray extends \ArrayObject {} diff --git a/typo3/sysext/form/Tests/Functional/Domain/Model/Renderable/AbstractRenderableTest.php b/typo3/sysext/form/Tests/Functional/Domain/Model/Renderable/AbstractRenderableTest.php index df2abce47dd6ec8a413809283603b34ccc042af7..4ad0335e388eac7c5fd026884f76f1200e43f4a1 100644 --- a/typo3/sysext/form/Tests/Functional/Domain/Model/Renderable/AbstractRenderableTest.php +++ b/typo3/sysext/form/Tests/Functional/Domain/Model/Renderable/AbstractRenderableTest.php @@ -64,8 +64,7 @@ final class AbstractRenderableTest extends FunctionalTestCase $configurationService = GeneralUtility::makeInstance(ConfigurationService::class, $configurationManager); $prototypeConfiguration = $configurationService->getPrototypeConfiguration('standard'); - $subject = new class () extends AbstractRenderable { - }; + $subject = new class () extends AbstractRenderable {}; $subject->setIdentifier('Foo'); $subject->setParentRenderable(new FormDefinition('foo', $prototypeConfiguration)); diff --git a/typo3/sysext/form/Tests/Functional/Framework/FormHandling/FormData.php b/typo3/sysext/form/Tests/Functional/Framework/FormHandling/FormData.php index 1d001fd4a676bba151e54944f8b0a3af6f61a285..670175df6a7b6892929e79bf30067ee2f0743b27 100644 --- a/typo3/sysext/form/Tests/Functional/Framework/FormHandling/FormData.php +++ b/typo3/sysext/form/Tests/Functional/Framework/FormHandling/FormData.php @@ -116,7 +116,7 @@ final class FormData return array_values( array_filter( $this->formData['elementData'], - fn ($elementData) => $elementData['__isHoneypot'] + fn($elementData) => $elementData['__isHoneypot'] ) )[0]['autocomplete'] ?? null; } @@ -126,7 +126,7 @@ final class FormData return array_values( array_filter( $this->formData['elementData'], - fn ($elementData) => str_ends_with($elementData['name'], '[__session]') + fn($elementData) => str_ends_with($elementData['name'], '[__session]') ) )[0]['value'] ?? null; } diff --git a/typo3/sysext/form/Tests/Functional/RequestHandling/AbstractRequestHandlingTest.php b/typo3/sysext/form/Tests/Functional/RequestHandling/AbstractRequestHandlingTest.php index 0df1e439c3ba28170bbab59438365341a7ea42d0..68ae9a3efdd7734beb4035f4af2af0c2643e92e4 100644 --- a/typo3/sysext/form/Tests/Functional/RequestHandling/AbstractRequestHandlingTest.php +++ b/typo3/sysext/form/Tests/Functional/RequestHandling/AbstractRequestHandlingTest.php @@ -158,7 +158,7 @@ abstract class AbstractRequestHandlingTest extends FunctionalTestCase $rawParts = explode("\r\n\r\n", $rawMessage, 2); $rawLines = explode("\r\n", $rawParts[0]); $rawHeaders = array_map( - fn (string $rawLine) => array_map( + fn(string $rawLine) => array_map( 'trim', explode(':', $rawLine, 2) ), diff --git a/typo3/sysext/frontend/Classes/ContentObject/Exception/ContentRenderingException.php b/typo3/sysext/frontend/Classes/ContentObject/Exception/ContentRenderingException.php index dacef31997fa33903672b7b79e79f5f3f212a822..3d124b507969a14b991757aea27c74b604e71ea8 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/Exception/ContentRenderingException.php +++ b/typo3/sysext/frontend/Classes/ContentObject/Exception/ContentRenderingException.php @@ -21,6 +21,4 @@ use TYPO3\CMS\Core\Error\Exception; * Class Exception * @internal this is a concrete TYPO3 implementation and solely used for EXT:frontend and not part of TYPO3's Core API. */ -class ContentRenderingException extends Exception -{ -} +class ContentRenderingException extends Exception {} diff --git a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php index 93288fdd4d2049ae4d9647323dee37c4a3ebeed2..970449359b622d18321b2854d3ecc4ac82bca948 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php +++ b/typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php @@ -462,9 +462,7 @@ abstract class AbstractMenuContentObject * * Subclasses should overwrite this method. */ - public function generate() - { - } + public function generate() {} /** * @return string The HTML for the menu diff --git a/typo3/sysext/frontend/Classes/ContentObject/Menu/Exception/NoSuchMenuTypeException.php b/typo3/sysext/frontend/Classes/ContentObject/Menu/Exception/NoSuchMenuTypeException.php index 0c57d3626c7bbc2918a01845c88fa5a612c0d928..167bd0ae0f24612e201b49a04b007ec23593f02d 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/Menu/Exception/NoSuchMenuTypeException.php +++ b/typo3/sysext/frontend/Classes/ContentObject/Menu/Exception/NoSuchMenuTypeException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Frontend\Exception; /** * No such menu type exception */ -class NoSuchMenuTypeException extends Exception -{ -} +class NoSuchMenuTypeException extends Exception {} diff --git a/typo3/sysext/frontend/Classes/Exception.php b/typo3/sysext/frontend/Classes/Exception.php index 814fe60e20cbbed62f553a4b7eb1f0289966fd2c..1d7f737d9a290e631d575efe89c8591a522a23d2 100644 --- a/typo3/sysext/frontend/Classes/Exception.php +++ b/typo3/sysext/frontend/Classes/Exception.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception as CoreException; /** * A generic Frontend exception */ -class Exception extends CoreException -{ -} +class Exception extends CoreException {} diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/Framework/Builder/SkipException.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/Framework/Builder/SkipException.php index ecf5a3759a477c1e371738e875263c9251cc9a22..72ddd1be460091ba26bb5c14fe38038d64137961 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/Framework/Builder/SkipException.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/Framework/Builder/SkipException.php @@ -17,6 +17,4 @@ declare(strict_types=1); namespace TYPO3\CMS\Frontend\Tests\Functional\SiteHandling\Framework\Builder; -class SkipException extends \RuntimeException -{ -} +class SkipException extends \RuntimeException {} diff --git a/typo3/sysext/frontend/Tests/Unit/Fixtures/ResultBrowserPluginHook.php b/typo3/sysext/frontend/Tests/Unit/Fixtures/ResultBrowserPluginHook.php index e18441c7848cab81ff055a4523413d467baa47c2..ae950383f10ba30f885c2faa8448452645ac6acb 100644 --- a/typo3/sysext/frontend/Tests/Unit/Fixtures/ResultBrowserPluginHook.php +++ b/typo3/sysext/frontend/Tests/Unit/Fixtures/ResultBrowserPluginHook.php @@ -36,7 +36,5 @@ class ResultBrowserPluginHook * @param AbstractPlugin $pObj Instance of the calling object * @return mixed Output HTML-Table, wrapped in <div>-tags with a class attribute (if $wrapArr is not passed, */ - public function pi_list_browseresults($showResultCount, $tableParams, array $wrapArr, $pointerName, $hscText, $forceOutput, AbstractPlugin $pObj) - { - } + public function pi_list_browseresults($showResultCount, $tableParams, array $wrapArr, $pointerName, $hscText, $forceOutput, AbstractPlugin $pObj) {} } diff --git a/typo3/sysext/impexp/Classes/Exception.php b/typo3/sysext/impexp/Classes/Exception.php index c8c5ff4eef0280ed3c86e0184f995fa4ec3c5bab..25f8ce343a440f7130b25a57dceef1a08b8e7470 100644 --- a/typo3/sysext/impexp/Classes/Exception.php +++ b/typo3/sysext/impexp/Classes/Exception.php @@ -23,6 +23,4 @@ namespace TYPO3\CMS\Impexp; * * @internal This class is not considered part of the public TYPO3 API. It is allowed to catch exceptions of this type. */ -class Exception extends \Exception -{ -} +class Exception extends \Exception {} diff --git a/typo3/sysext/impexp/Classes/Exception/ImportFailedException.php b/typo3/sysext/impexp/Classes/Exception/ImportFailedException.php index 606ee23b0bc40f500d0c239eacb7d6dc2de6a611..c1b1ecd73b800eb1a8322c0e0dfa300ccc63aa26 100644 --- a/typo3/sysext/impexp/Classes/Exception/ImportFailedException.php +++ b/typo3/sysext/impexp/Classes/Exception/ImportFailedException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Impexp\Exception; * * @internal This class is not considered part of the public TYPO3 API. */ -class ImportFailedException extends Exception -{ -} +class ImportFailedException extends Exception {} diff --git a/typo3/sysext/impexp/Classes/Exception/InsufficientUserPermissionsException.php b/typo3/sysext/impexp/Classes/Exception/InsufficientUserPermissionsException.php index 62382d5a3c6f8d15ee76a4a9ebd4d0c453e1435e..924823a8a2d22b4f4d45daa5f7bc4efbe85b284d 100644 --- a/typo3/sysext/impexp/Classes/Exception/InsufficientUserPermissionsException.php +++ b/typo3/sysext/impexp/Classes/Exception/InsufficientUserPermissionsException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Impexp\Exception; * * @internal This class is not considered part of the public TYPO3 API. */ -class InsufficientUserPermissionsException extends Exception -{ -} +class InsufficientUserPermissionsException extends Exception {} diff --git a/typo3/sysext/impexp/Classes/Exception/LoadingFileFailedException.php b/typo3/sysext/impexp/Classes/Exception/LoadingFileFailedException.php index 66e186e621d348c53f57a2d38a92d015081f2c37..970842efa89d5743d4755f2e9f2414e3d2aaa531 100644 --- a/typo3/sysext/impexp/Classes/Exception/LoadingFileFailedException.php +++ b/typo3/sysext/impexp/Classes/Exception/LoadingFileFailedException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Impexp\Exception; * * @internal This class is not considered part of the public TYPO3 API. */ -class LoadingFileFailedException extends Exception -{ -} +class LoadingFileFailedException extends Exception {} diff --git a/typo3/sysext/impexp/Classes/Exception/MalformedPresetException.php b/typo3/sysext/impexp/Classes/Exception/MalformedPresetException.php index 925910d9e6401b975eb35b7528b85338d12556df..eb3c645d8bc64a3bc89ecf30fd336c5f826db14e 100644 --- a/typo3/sysext/impexp/Classes/Exception/MalformedPresetException.php +++ b/typo3/sysext/impexp/Classes/Exception/MalformedPresetException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Impexp\Exception; * * @internal This class is not considered part of the public TYPO3 API. */ -class MalformedPresetException extends Exception -{ -} +class MalformedPresetException extends Exception {} diff --git a/typo3/sysext/impexp/Classes/Exception/PrerequisitesNotMetException.php b/typo3/sysext/impexp/Classes/Exception/PrerequisitesNotMetException.php index 915e16a1cded9bb00ee3c3b71055fa7423106bc8..14b7054b5fa6293ebe69fda1727f4d5753417b53 100644 --- a/typo3/sysext/impexp/Classes/Exception/PrerequisitesNotMetException.php +++ b/typo3/sysext/impexp/Classes/Exception/PrerequisitesNotMetException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Impexp\Exception; * * @internal This class is not considered part of the public TYPO3 API. */ -class PrerequisitesNotMetException extends Exception -{ -} +class PrerequisitesNotMetException extends Exception {} diff --git a/typo3/sysext/impexp/Classes/Exception/PresetNotFoundException.php b/typo3/sysext/impexp/Classes/Exception/PresetNotFoundException.php index 3ebb2513940fda2e1a9910a5b124c4ae964eef49..795bed9515573e5859dad0d58de655e83e5f70af 100644 --- a/typo3/sysext/impexp/Classes/Exception/PresetNotFoundException.php +++ b/typo3/sysext/impexp/Classes/Exception/PresetNotFoundException.php @@ -24,6 +24,4 @@ use TYPO3\CMS\Impexp\Exception; * * @internal This class is not considered part of the public TYPO3 API. */ -class PresetNotFoundException extends Exception -{ -} +class PresetNotFoundException extends Exception {} diff --git a/typo3/sysext/install/Classes/Configuration/Exception.php b/typo3/sysext/install/Classes/Configuration/Exception.php index f16a9f187602ff5a13d4f959df8c0f34abf8ea0f..27330d6c0fca65c0d198c7b096b02fe574a13316 100644 --- a/typo3/sysext/install/Classes/Configuration/Exception.php +++ b/typo3/sysext/install/Classes/Configuration/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Install\Configuration; /** * A configuration exception */ -class Exception extends \TYPO3\CMS\Install\Exception -{ -} +class Exception extends \TYPO3\CMS\Install\Exception {} diff --git a/typo3/sysext/install/Classes/Exception.php b/typo3/sysext/install/Classes/Exception.php index b0e931d64268a99e455836724870f8e14a482473..8f76713646bff0dd76e690f01935f8c894143ed5 100644 --- a/typo3/sysext/install/Classes/Exception.php +++ b/typo3/sysext/install/Classes/Exception.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Core\Exception as CoreException; /** * A generic Install exception */ -class Exception extends CoreException -{ -} +class Exception extends CoreException {} diff --git a/typo3/sysext/install/Classes/FolderStructure/Exception.php b/typo3/sysext/install/Classes/FolderStructure/Exception.php index 83487ebcc64b658cf62b2006630e45344c601f74..e294a46306c4cf5d18a78dbcc98e3e15b3030719 100644 --- a/typo3/sysext/install/Classes/FolderStructure/Exception.php +++ b/typo3/sysext/install/Classes/FolderStructure/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Install\FolderStructure; /** * A folder structure exception */ -class Exception extends \TYPO3\CMS\Install\Exception -{ -} +class Exception extends \TYPO3\CMS\Install\Exception {} diff --git a/typo3/sysext/install/Classes/FolderStructure/Exception/InvalidArgumentException.php b/typo3/sysext/install/Classes/FolderStructure/Exception/InvalidArgumentException.php index d9b2c6036f537c974df03472b64a69e22f1a31c1..0960b60a2c32322ae8929e02fc6bb0216143a915 100644 --- a/typo3/sysext/install/Classes/FolderStructure/Exception/InvalidArgumentException.php +++ b/typo3/sysext/install/Classes/FolderStructure/Exception/InvalidArgumentException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Install\FolderStructure\Exception; /** * An invalid argument exception */ -class InvalidArgumentException extends Exception -{ -} +class InvalidArgumentException extends Exception {} diff --git a/typo3/sysext/install/Classes/FolderStructure/Exception/RootNodeException.php b/typo3/sysext/install/Classes/FolderStructure/Exception/RootNodeException.php index f3a776f1d38dcf7f581fe49a0bf61733472aadc9..901917bb9a59370e6f2e1973f51b1eb678821840 100644 --- a/typo3/sysext/install/Classes/FolderStructure/Exception/RootNodeException.php +++ b/typo3/sysext/install/Classes/FolderStructure/Exception/RootNodeException.php @@ -20,6 +20,4 @@ use TYPO3\CMS\Install\FolderStructure\Exception; /** * A root node exception */ -class RootNodeException extends Exception -{ -} +class RootNodeException extends Exception {} diff --git a/typo3/sysext/install/Classes/FolderStructure/RootNodeInterface.php b/typo3/sysext/install/Classes/FolderStructure/RootNodeInterface.php index c3fd6b915c3af8602ca7a63721a9b6a5aff4598e..4f3fb9bafb3c5f1aa8c7b83bfa0c14c7e486ddf7 100644 --- a/typo3/sysext/install/Classes/FolderStructure/RootNodeInterface.php +++ b/typo3/sysext/install/Classes/FolderStructure/RootNodeInterface.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Install\FolderStructure; /** * Interface implemented by root node */ -interface RootNodeInterface extends NodeInterface -{ -} +interface RootNodeInterface extends NodeInterface {} diff --git a/typo3/sysext/install/Classes/Service/Exception.php b/typo3/sysext/install/Classes/Service/Exception.php index 0f864ece35fa3a07d3ee1701f070d1343363b64c..39d4f4989eaf1307cfbd3b81e98f6c620a34699b 100644 --- a/typo3/sysext/install/Classes/Service/Exception.php +++ b/typo3/sysext/install/Classes/Service/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Install\Service; /** * A service exception */ -class Exception extends \TYPO3\CMS\Install\Exception -{ -} +class Exception extends \TYPO3\CMS\Install\Exception {} diff --git a/typo3/sysext/install/Classes/Service/Exception/ConfigurationChangedException.php b/typo3/sysext/install/Classes/Service/Exception/ConfigurationChangedException.php index 4063ae9d967afc8f7c5732ed93b56f976fa7597e..e20adec71840b95c19e0df399b01c7bbfd16eace 100644 --- a/typo3/sysext/install/Classes/Service/Exception/ConfigurationChangedException.php +++ b/typo3/sysext/install/Classes/Service/Exception/ConfigurationChangedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Install\Service\Exception; /** * An exception thrown if the silent configuration updater changed configuration */ -class ConfigurationChangedException extends Exception -{ -} +class ConfigurationChangedException extends Exception {} diff --git a/typo3/sysext/install/Classes/Service/Exception/CoreVersionServiceException.php b/typo3/sysext/install/Classes/Service/Exception/CoreVersionServiceException.php index bb0fe05f22c1c98329cb7522e216870290d01c2a..b2ee6b55a6ccb3d507ff2d8a1dcc0675f6f6c6ef 100644 --- a/typo3/sysext/install/Classes/Service/Exception/CoreVersionServiceException.php +++ b/typo3/sysext/install/Classes/Service/Exception/CoreVersionServiceException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Install\Service\Exception; /** * An exception thrown if version validation against official version matrix fails */ -class CoreVersionServiceException extends Exception -{ -} +class CoreVersionServiceException extends Exception {} diff --git a/typo3/sysext/install/Classes/Service/Exception/RemoteFetchException.php b/typo3/sysext/install/Classes/Service/Exception/RemoteFetchException.php index 4b1d3a3734cafb1c7602908cc57bb3c746351b57..382334182a38869a71174872652a2b8b80ee914d 100644 --- a/typo3/sysext/install/Classes/Service/Exception/RemoteFetchException.php +++ b/typo3/sysext/install/Classes/Service/Exception/RemoteFetchException.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Install\Service\Exception; /** * An exception thrown if fetching a resource from a remote server fails */ -class RemoteFetchException extends CoreVersionServiceException -{ -} +class RemoteFetchException extends CoreVersionServiceException {} diff --git a/typo3/sysext/install/Classes/Service/Exception/TemplateFileChangedException.php b/typo3/sysext/install/Classes/Service/Exception/TemplateFileChangedException.php index 19fdc146f1a3a008c83fd5b9023f28f7a4ee169c..2029caeae4b69d3958c0d424d1c01f87fd2a1a0d 100644 --- a/typo3/sysext/install/Classes/Service/Exception/TemplateFileChangedException.php +++ b/typo3/sysext/install/Classes/Service/Exception/TemplateFileChangedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Install\Service\Exception; /** * An exception thrown if the silent template file updater changed file content */ -class TemplateFileChangedException extends Exception -{ -} +class TemplateFileChangedException extends Exception {} diff --git a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOPgSql.php b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOPgSql.php index 22639e0a5d86d5c97c7d5bb534e1aace94e5037c..15e142d0c74e8924f26416992f1a844de36f3c85 100644 --- a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOPgSql.php +++ b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOPgSql.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver; /** * @internal This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API. */ -class PDOPgSql extends AbstractDriver -{ -} +class PDOPgSql extends AbstractDriver {} diff --git a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlite.php b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlite.php index 6b8d999bc39ecd728eeed0e1a9f3ab0627da81af..128e7b9f9aa174f3542350489ae468eb6684be06 100644 --- a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlite.php +++ b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlite.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver; /** * @internal This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API. */ -class PDOSqlite extends AbstractDriver -{ -} +class PDOSqlite extends AbstractDriver {} diff --git a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlsrv.php b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlsrv.php index 639bf142a954489776bd70847e7e00b99f1176d2..d4407f7b9a26eda36a6243750dcc1c9e020d46c5 100644 --- a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlsrv.php +++ b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/PDOSqlsrv.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver; /** * @internal This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API. */ -class PDOSqlsrv extends AbstractDriver -{ -} +class PDOSqlsrv extends AbstractDriver {} diff --git a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/SQLSrv.php b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/SQLSrv.php index b8bc83f211c971bfe6749016401b813f023a19bb..b0080e7a8d5d8e76291854764bf4fecc295a9007 100644 --- a/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/SQLSrv.php +++ b/typo3/sysext/install/Classes/SystemEnvironment/DatabaseCheck/Driver/SQLSrv.php @@ -20,6 +20,4 @@ namespace TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver; /** * @internal This class is only meant to be used within EXT:install and is not part of the TYPO3 Core API. */ -class SQLSrv extends AbstractDriver -{ -} +class SQLSrv extends AbstractDriver {} diff --git a/typo3/sysext/install/Classes/Updates/RepeatableInterface.php b/typo3/sysext/install/Classes/Updates/RepeatableInterface.php index 218120ecff0f7eb874858d9e4207a289fa3953c8..d25332475cb47de7c31072da7d2c8ec20ef2c147 100644 --- a/typo3/sysext/install/Classes/Updates/RepeatableInterface.php +++ b/typo3/sysext/install/Classes/Updates/RepeatableInterface.php @@ -22,6 +22,4 @@ namespace TYPO3\CMS\Install\Updates; * * Semantic/Marker interface only */ -interface RepeatableInterface -{ -} +interface RepeatableInterface {} diff --git a/typo3/sysext/install/Classes/ViewHelpers/Exception.php b/typo3/sysext/install/Classes/ViewHelpers/Exception.php index 4db38292a8650befb60f0c72307a3dc59cec6054..03e6fa840e44bf78f24001c16a768ab489a84a0f 100644 --- a/typo3/sysext/install/Classes/ViewHelpers/Exception.php +++ b/typo3/sysext/install/Classes/ViewHelpers/Exception.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Install\ViewHelpers; /** * A ViewHelper exception */ -class Exception extends \TYPO3\CMS\Install\Exception -{ -} +class Exception extends \TYPO3\CMS\Install\Exception {} diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/InterfaceMethodChangedMatcherFixture.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/InterfaceMethodChangedMatcherFixture.php index b5761c61fac71f58e93874e0dfd8c543dd6dc889..4e4d15efb993c11684855f315c995dd91ae5613f 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/InterfaceMethodChangedMatcherFixture.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/InterfaceMethodChangedMatcherFixture.php @@ -71,9 +71,7 @@ class InterfaceMethodChangedMatcherFixture * @param $arg2 * @param $arg3 */ - public static function like4($arg1, $arg2, $arg3): void - { - } + public static function like4($arg1, $arg2, $arg3): void {} /** * No match: Protected @@ -82,7 +80,5 @@ class InterfaceMethodChangedMatcherFixture * @param $arg2 * @param $arg3 */ - protected function like5($arg1, $arg2, $arg3): void - { - } + protected function like5($arg1, $arg2, $arg3): void {} } diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/MethodAnnotationMatcherFixture.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/MethodAnnotationMatcherFixture.php index ab8ab2d7f7aba7d0930324908ce23d119ab56b2b..8c7bd88cd88bcf26ea8f6ccc554b4669c114eaf4 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/MethodAnnotationMatcherFixture.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/MethodAnnotationMatcherFixture.php @@ -25,7 +25,5 @@ class MethodAnnotationMatcherFixture /** * @inject */ - public function foo(): void - { - } + public function foo(): void {} } diff --git a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/Subject.php b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/Subject.php index 611ebb1d3cb55f10f675a6a2ea1021be95157575..04db96958e92fc08005c9afe3c92c5ea185e2679 100644 --- a/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/Subject.php +++ b/typo3/sysext/install/Tests/Unit/ExtensionScanner/Php/Matcher/Fixtures/Subject.php @@ -22,7 +22,5 @@ namespace TYPO3\CMS\Install\Tests\Unit\ExtensionScanner\Php\Matcher\Fixtures; */ class Subject { - public function __construct(string $a = null, string $b = null, string $c = null) - { - } + public function __construct(string $a = null, string $b = null, string $c = null) {} } diff --git a/typo3/sysext/recordlist/Classes/Browser/RecordBrowser.php b/typo3/sysext/recordlist/Classes/Browser/RecordBrowser.php index b5c4ab78b9c9bd7ccb8581b2dad80d21de0b489d..abd3ef79de2e438c4be020f9033c1feb6c8549a7 100644 --- a/typo3/sysext/recordlist/Classes/Browser/RecordBrowser.php +++ b/typo3/sysext/recordlist/Classes/Browser/RecordBrowser.php @@ -40,9 +40,7 @@ class RecordBrowser extends DatabaseBrowser /** * Avoid any initialization */ - protected function initVariables() - { - } + protected function initVariables() {} /** * @param int $selectedPage Id of page diff --git a/typo3/sysext/recordlist/Classes/Controller/AccessDeniedException.php b/typo3/sysext/recordlist/Classes/Controller/AccessDeniedException.php index f00a1927b779d9acf558444ed0aa0dc3c15be3c2..ad21dbbf7a1bb99bfb7e805926f6f6c0173905c9 100644 --- a/typo3/sysext/recordlist/Classes/Controller/AccessDeniedException.php +++ b/typo3/sysext/recordlist/Classes/Controller/AccessDeniedException.php @@ -22,6 +22,4 @@ use TYPO3\CMS\Core\Exception; /** * This exception is thrown if a user is requesting something they should not do */ -class AccessDeniedException extends Exception -{ -} +class AccessDeniedException extends Exception {} diff --git a/typo3/sysext/recordlist/Classes/Controller/RecordListController.php b/typo3/sysext/recordlist/Classes/Controller/RecordListController.php index 1635582f348fd2bf11a59ad5f22435ad71889bdf..5c0981724002a5798266c927f906dbf799e15e25 100644 --- a/typo3/sysext/recordlist/Classes/Controller/RecordListController.php +++ b/typo3/sysext/recordlist/Classes/Controller/RecordListController.php @@ -362,7 +362,7 @@ class RecordListController $CB = array_replace_recursive($request->getQueryParams()['CB'] ?? [], $request->getParsedBody()['CB'] ?? []); if ($cmd === 'copyMarked' || $cmd === 'removeMarked') { // Get CBC from request, and map the element values (true => copy, false => remove) - $CBC = array_map(static fn () => ($cmd === 'copyMarked'), (array)($request->getParsedBody()['CBC'] ?? [])); + $CBC = array_map(static fn() => ($cmd === 'copyMarked'), (array)($request->getParsedBody()['CBC'] ?? [])); $cmd_table = (string)($request->getParsedBody()['cmd_table'] ?? $request->getQueryParams()['cmd_table'] ?? ''); // Cleanup CBC $CB['el'] = $clipboard->cleanUpCBC($CBC, $cmd_table); diff --git a/typo3/sysext/recordlist/Classes/LinkHandler/AbstractLinkHandler.php b/typo3/sysext/recordlist/Classes/LinkHandler/AbstractLinkHandler.php index 4c53e7461a6d2f7a3b391c583f70d205f4fd5baa..2f270b1fda214a9d7308745f767b044125e0fa5b 100644 --- a/typo3/sysext/recordlist/Classes/LinkHandler/AbstractLinkHandler.php +++ b/typo3/sysext/recordlist/Classes/LinkHandler/AbstractLinkHandler.php @@ -67,9 +67,7 @@ abstract class AbstractLinkHandler /** * Constructor */ - public function __construct() - { - } + public function __construct() {} /** * Initialize the handler diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index 07706e8bb9c39b76c8a5f7b9f998183a93cc9896..d33aa427b6599c25bd15abd72ec132e447f10b9f 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -2015,8 +2015,8 @@ class DatabaseRecordList $possibleTranslations = $this->possibleTranslations; if ($table === 'pages') { // Calculate possible translations for pages - $possibleTranslations = array_map(static fn ($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); - $possibleTranslations = array_filter($possibleTranslations, static fn ($languageUid) => $languageUid > 0); + $possibleTranslations = array_map(static fn($siteLanguage) => $siteLanguage->getLanguageId(), $this->languagesAllowedForUser); + $possibleTranslations = array_filter($possibleTranslations, static fn($languageUid) => $languageUid > 0); } // Traverse page translations and add icon for each language that does NOT yet exist and is included in site configuration: @@ -3398,7 +3398,7 @@ class DatabaseRecordList unset($actions['removeMarked']); } - return implode(LF, array_map(static fn (string $action): string => '<div class="col">' . $action . '</div>', $actions)); + return implode(LF, array_map(static fn(string $action): string => '<div class="col">' . $action . '</div>', $actions)); } /** diff --git a/typo3/sysext/redirects/Tests/Unit/ViewHelpers/TargetPageIdViewHelperTest.php b/typo3/sysext/redirects/Tests/Unit/ViewHelpers/TargetPageIdViewHelperTest.php index 39c3adf8b8603b4c121b9df20e15f98f47cb34d3..572070c949768a48b3dbf65590a52b61d708455c 100644 --- a/typo3/sysext/redirects/Tests/Unit/ViewHelpers/TargetPageIdViewHelperTest.php +++ b/typo3/sysext/redirects/Tests/Unit/ViewHelpers/TargetPageIdViewHelperTest.php @@ -32,12 +32,10 @@ class TargetPageIdViewHelperTest extends UnitTestCase public function nonTypo3TargetInRenderStaticReturnsEmptyString(): void { $renderingContext = new class () extends RenderingContext { - public function __construct() - { - } + public function __construct() {} }; $args = ['target' => 'nope']; - self::assertSame('', TargetPageIdViewHelper::renderStatic($args, static fn () => '', $renderingContext)); + self::assertSame('', TargetPageIdViewHelper::renderStatic($args, static fn() => '', $renderingContext)); } /** @@ -46,11 +44,9 @@ class TargetPageIdViewHelperTest extends UnitTestCase public function emptyTargetInRenderStaticReturnsEmptyString(): void { $renderingContext = new class () extends RenderingContext { - public function __construct() - { - } + public function __construct() {} }; $args = []; - self::assertSame('', TargetPageIdViewHelper::renderStatic($args, static fn () => '', $renderingContext)); + self::assertSame('', TargetPageIdViewHelper::renderStatic($args, static fn() => '', $renderingContext)); } } diff --git a/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php b/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php index a207b3d6538872af4fe67353b171b5eba49c61be..5685dd86f5ab618909826811ff85e6012069804b 100644 --- a/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php +++ b/typo3/sysext/scheduler/Classes/Command/SchedulerCommand.php @@ -109,7 +109,7 @@ Call it like this: typo3/sysext/core/bin/typo3 scheduler:run --task=13 -f') $overwrittenTaskList = $input->getOption('task'); $overwrittenTaskList = is_array($overwrittenTaskList) ? $overwrittenTaskList : []; - $overwrittenTaskList = array_filter($overwrittenTaskList, static fn ($value) => MathUtility::canBeInterpretedAsInteger($value)); + $overwrittenTaskList = array_filter($overwrittenTaskList, static fn($value) => MathUtility::canBeInterpretedAsInteger($value)); $overwrittenTaskList = array_map('intval', $overwrittenTaskList); if ($overwrittenTaskList !== []) { $this->overwrittenTaskList = $overwrittenTaskList; diff --git a/typo3/sysext/scheduler/Classes/FailedExecutionException.php b/typo3/sysext/scheduler/Classes/FailedExecutionException.php index e3e2d9bb071901b80e0f1f8dde0e44d598b6aab5..5e52fe026d39b2d05de844e56480fb94dccc0a97 100644 --- a/typo3/sysext/scheduler/Classes/FailedExecutionException.php +++ b/typo3/sysext/scheduler/Classes/FailedExecutionException.php @@ -18,6 +18,4 @@ namespace TYPO3\CMS\Scheduler; /** * Failed execution exception */ -class FailedExecutionException extends \RuntimeException -{ -} +class FailedExecutionException extends \RuntimeException {} diff --git a/typo3/sysext/seo/Classes/XmlSitemap/Exception/InvalidConfigurationException.php b/typo3/sysext/seo/Classes/XmlSitemap/Exception/InvalidConfigurationException.php index 2a9544046586fb90e448244b9b8fa151fed1deac..dfe1a6296621c56ed82346ea676a57534b753b8a 100644 --- a/typo3/sysext/seo/Classes/XmlSitemap/Exception/InvalidConfigurationException.php +++ b/typo3/sysext/seo/Classes/XmlSitemap/Exception/InvalidConfigurationException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Seo\XmlSitemap\Exception; use TYPO3\CMS\Core\Resource\Exception; -class InvalidConfigurationException extends Exception -{ -} +class InvalidConfigurationException extends Exception {} diff --git a/typo3/sysext/seo/Classes/XmlSitemap/Exception/MissingConfigurationException.php b/typo3/sysext/seo/Classes/XmlSitemap/Exception/MissingConfigurationException.php index 069364a6c919972e8d7d639af918125ceeed2132..ccab00d1170595621707d00194486b11aaf10f9b 100644 --- a/typo3/sysext/seo/Classes/XmlSitemap/Exception/MissingConfigurationException.php +++ b/typo3/sysext/seo/Classes/XmlSitemap/Exception/MissingConfigurationException.php @@ -19,6 +19,4 @@ namespace TYPO3\CMS\Seo\XmlSitemap\Exception; use TYPO3\CMS\Core\Resource\Exception; -class MissingConfigurationException extends Exception -{ -} +class MissingConfigurationException extends Exception {} diff --git a/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagGeneratorTest.php b/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagGeneratorTest.php index d1e5c9ff95d1e083152bae909b35f5a5c47aad9f..eeb526a2d06541f4151117bfb2c7170ffc5f3c70 100644 --- a/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagGeneratorTest.php +++ b/typo3/sysext/seo/Tests/Functional/MetaTag/MetaTagGeneratorTest.php @@ -213,7 +213,7 @@ class MetaTagGeneratorTest extends FunctionalTestCase // Filter allowed aspect ratios $cropVariant['allowedAspectRatios'] = array_filter( $cropVariant['allowedAspectRatios'] ?? [], - static fn ($aspectRatio) => empty($aspectRatio['disabled']) + static fn($aspectRatio) => empty($aspectRatio['disabled']) ); // Ignore disabled crop variants if (!empty($cropVariant['disabled'])) { diff --git a/typo3/sysext/t3editor/Classes/Exception/InvalidModeException.php b/typo3/sysext/t3editor/Classes/Exception/InvalidModeException.php index ea825fcbfd5e3ec593aa10667670fb85da54eab4..3a8167472504dce4e8909e686309dfb81925a329 100644 --- a/typo3/sysext/t3editor/Classes/Exception/InvalidModeException.php +++ b/typo3/sysext/t3editor/Classes/Exception/InvalidModeException.php @@ -23,6 +23,4 @@ use TYPO3\CMS\Core\Exception; * Exception thrown for invalid modes * @internal */ -class InvalidModeException extends Exception -{ -} +class InvalidModeException extends Exception {} diff --git a/typo3/sysext/workspaces/Classes/Controller/ReviewController.php b/typo3/sysext/workspaces/Classes/Controller/ReviewController.php index 4913d542c98a12383ed4d1b20c54ace7d1c75346..1a230043720517ff75bdf0740e54ed166cc18dd7 100644 --- a/typo3/sysext/workspaces/Classes/Controller/ReviewController.php +++ b/typo3/sysext/workspaces/Classes/Controller/ReviewController.php @@ -422,6 +422,6 @@ class ReviewController 'uid' => -99, 'label' => $this->getLanguageService()->sL('LLL:EXT:workspaces/Resources/Private/Language/locallang_mod_user_ws.xlf:stage_all'), ], - ], array_filter($stages, static fn (array $stage): bool => (int)($stage['uid'] ?? 0) !== -20)); + ], array_filter($stages, static fn(array $stage): bool => (int)($stage['uid'] ?? 0) !== -20)); } } diff --git a/typo3/sysext/workspaces/Tests/Unit/Domain/Model/WorkspaceRecordTest.php b/typo3/sysext/workspaces/Tests/Unit/Domain/Model/WorkspaceRecordTest.php index f1b290aa1193ed0fd0374289302b356d003efadf..a71d6f492489761b44c70246bb25c951c341f434 100644 --- a/typo3/sysext/workspaces/Tests/Unit/Domain/Model/WorkspaceRecordTest.php +++ b/typo3/sysext/workspaces/Tests/Unit/Domain/Model/WorkspaceRecordTest.php @@ -87,8 +87,7 @@ class WorkspaceRecordTest extends UnitTestCase */ public function getForConfiguredXclassReturnsInstanceOfXclass(): void { - $xclassInstance = new class ([]) extends WorkspaceRecord { - }; + $xclassInstance = new class ([]) extends WorkspaceRecord {}; $xclassName = get_class($xclassInstance); $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects'][WorkspaceRecord::class] = ['className' => $xclassName];