From ddc9ee10db953588f8f0d28be8dc759dd6033186 Mon Sep 17 00:00:00 2001 From: Christian Kuhn <lolli@schwarzbu.ch> Date: Tue, 24 Oct 2023 00:35:57 +0200 Subject: [PATCH] [TASK] Bump friendsofphp/php-cs-fixer:^3.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's time to update to latest changes of php-cs-fixer to align with current community rules. This brings a rather huge series of changes, main changes due to single_line_empty_body rule which now formats empty class and method body curly braces into a single line, plus changes from function_declaration rule which tends to avoid more whitespaces. The change has a slight impact on phpstan, we regenerate baseline. To reduce backport headaches, this change is backported to v12 and v11. > composer req --dev friendsofphp/php-cs-fixer:^3.35.1 > Build/Scripts/runTests.sh -s cgl > Build/Scripts/runTests.sh -s phpstanGenerateBaseline Resolves: #102236 Releases: main, 12.4, 11.5 Change-Id: Iea45b10667951672b2194033216c49f580799f55 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81514 Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: core-ci <typo3@b13.com> Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- Build/phpstan/phpstan-baseline.neon | 2 +- composer.json | 2 +- composer.lock | 16 +++---- .../InvalidConfigurationException.php | 4 +- .../Classes/ModuleApi/ModuleData.php | 4 +- .../Tests/Unit/Fixtures/MainModuleFixture.php | 8 +--- .../Tests/Unit/Fixtures/SubModuleFixture.php | 4 +- .../Controller/ColumnSelectorController.php | 10 ++--- .../Controller/EditDocumentController.php | 2 +- .../Controller/Page/TreeController.php | 4 +- typo3/sysext/backend/Classes/Exception.php | 4 +- .../BackendAccessDeniedException.php | 4 +- .../Exception/BackendLockedException.php | 4 +- .../SiteValidationErrorException.php | 4 +- .../Form/Element/SelectSingleElement.php | 2 +- .../sysext/backend/Classes/Form/Exception.php | 4 +- .../AccessDeniedContentEditException.php | 4 +- .../AccessDeniedEditInternalsException.php | 4 +- .../Form/Exception/AccessDeniedException.php | 4 +- .../Exception/AccessDeniedHookException.php | 4 +- .../AccessDeniedPageEditException.php | 4 +- .../AccessDeniedPageNewException.php | 4 +- .../AccessDeniedRootNodeException.php | 4 +- .../AccessDeniedTableModifyException.php | 4 +- .../DatabaseDefaultLanguageException.php | 4 +- .../Form/FormDataProvider/TcaCategory.php | 2 +- .../Wizard/SuggestWizardDefaultReceiver.php | 4 +- .../InvalidRequestTokenException.php | 4 +- .../Exception/MethodNotAllowedException.php | 4 +- .../MissingRequestTokenException.php | 4 +- .../Exception/ResourceNotFoundException.php | 4 +- .../Exception/RouteNotFoundException.php | 4 +- .../RouteTypeNotAllowedException.php | 4 +- .../View/AbstractContentPagePositionMap.php | 4 +- .../AfterSectionMarkupGeneratedEvent.php | 4 +- .../BeforeSectionMarkupGeneratedEvent.php | 4 +- .../NodeFactory/NodeElements/BarElement.php | 4 +- .../NodeFactory/NodeElements/FooElement.php | 4 +- .../NodeFactory/NodeResolvers/BarResolver.php | 4 +- .../NodeFactory/NodeResolvers/FooResolver.php | 4 +- .../InvalidNodeResolverClass.php | 4 +- ...uteDispatcherClassWithoutInvokeFixture.php | 4 +- typo3/sysext/beuser/Classes/Exception.php | 4 +- .../AbstractUserAuthentication.php | 4 +- .../Classes/Cache/Backend/ApcuBackend.php | 4 +- .../Cache/Backend/MemcachedBackend.php | 4 +- .../Classes/Cache/Backend/NullBackend.php | 20 +++------ .../Cache/Backend/SimpleFileBackend.php | 4 +- .../Backend/TransientBackendInterface.php | 4 +- .../Cache/Backend/TransientMemoryBackend.php | 4 +- .../Classes/Cache/Backend/WincacheBackend.php | 4 +- typo3/sysext/core/Classes/Cache/Exception.php | 4 +- .../DuplicateIdentifierException.php | 4 +- .../Exception/InvalidBackendException.php | 4 +- .../Cache/Exception/InvalidCacheException.php | 4 +- .../Cache/Exception/InvalidDataException.php | 4 +- .../Cache/Exception/NoSuchCacheException.php | 4 +- .../Exception/NoSuchCacheGroupException.php | 4 +- .../Charset/UnknownCharsetException.php | 4 +- .../Collection/CollectionInterface.php | 4 +- ...urationExtensionNotConfiguredException.php | 4 +- ...ConfigurationPathDoesNotExistException.php | 4 +- .../SiteConfigurationWriteException.php | 4 +- .../AbstractInvalidDataStructureException.php | 4 +- .../InvalidCombinedPointerFieldException.php | 4 +- .../Exception/InvalidIdentifierException.php | 4 +- .../Exception/InvalidParentRowException.php | 4 +- .../InvalidParentRowLoopException.php | 4 +- .../InvalidParentRowRootException.php | 4 +- .../InvalidPointerFieldValueException.php | 4 +- .../InvalidSinglePointerFieldException.php | 4 +- .../Exception/InvalidTcaException.php | 4 +- .../Exception/YamlFileLoadingException.php | 4 +- .../Loader/Exception/YamlParseException.php | 4 +- .../Exception/YamlPlaceholderException.php | 4 +- .../InvalidTypoScriptConditionException.php | 4 +- .../CommandNameAlreadyInUseException.php | 4 +- .../Console/UnknownCommandException.php | 4 +- .../Exception/AspectNotFoundException.php | 4 +- .../AspectPropertyNotFoundException.php | 4 +- .../InvalidPasswordHashException.php | 4 +- .../Query/Expression/CompositeExpression.php | 4 +- .../core/Classes/Database/QueryGenerator.php | 8 +--- ...DefaultTcaSchemaTablePositionException.php | 4 +- ...expectedSignalReturnValueTypeException.php | 4 +- .../AST/AbstractCreateDefinitionItem.php | 4 +- .../Parser/AST/AbstractCreateStatement.php | 4 +- .../Parser/AST/DataType/BigIntDataType.php | 4 +- .../Parser/AST/DataType/DateDataType.php | 4 +- .../Parser/AST/DataType/DoubleDataType.php | 4 +- .../Parser/AST/DataType/MediumIntDataType.php | 4 +- .../Parser/AST/DataType/NumericDataType.php | 4 +- .../Parser/AST/DataType/RealDataType.php | 4 +- .../Parser/AST/DataType/SmallIntDataType.php | 4 +- .../Parser/AST/DataType/TinyIntDataType.php | 4 +- .../Parser/AST/DataType/YearDataType.php | 4 +- .../ContainerException.php | 4 +- .../DependencyInjection/NotFoundException.php | 4 +- typo3/sysext/core/Classes/Error/Exception.php | 4 +- .../Http/AbstractClientErrorException.php | 4 +- .../Http/AbstractServerErrorException.php | 4 +- .../ShortcutTargetPageNotFoundException.php | 4 +- .../InvalidPageErrorHandlerException.php | 4 +- .../PageContentErrorHandler.php | 4 +- ...PageErrorHandlerNotConfiguredException.php | 4 +- typo3/sysext/core/Classes/Exception.php | 4 +- .../Exception/Archive/ExtractException.php | 4 +- .../Exception/MissingTsfeException.php | 4 +- .../Page/BrokenRootLineException.php | 4 +- .../Page/CircularRootLineException.php | 4 +- .../Exception/Page/MountPointException.php | 4 +- .../Page/MountPointsDisabledException.php | 4 +- .../Exception/Page/PageNotFoundException.php | 4 +- .../PagePropertyRelationNotFoundException.php | 4 +- .../Exception/Page/RootLineException.php | 4 +- .../Exception/SiteNotFoundException.php | 4 +- .../FormProtection/DisabledFormProtection.php | 4 +- .../core/Classes/FormProtection/Exception.php | 4 +- .../FormProtection/FormProtectionFactory.php | 4 +- .../Http/PropagateResponseException.php | 4 +- .../Security/InvalidReferrerException.php | 4 +- .../Security/MissingReferrerException.php | 4 +- .../Exception/UnsupportedFileException.php | 4 +- .../Exception/ZeroImageDimensionException.php | 4 +- .../InvalidConfigurationException.php | 4 +- .../Exception/UnknownLinkHandlerException.php | 4 +- .../Exception/UnknownUrnException.php | 4 +- .../Exception/FileNotFoundException.php | 4 +- .../Exception/InvalidParserException.php | 4 +- .../Exception/InvalidXmlFileException.php | 4 +- .../core/Classes/Localization/Locale.php | 2 +- .../sysext/core/Classes/Locking/Exception.php | 4 +- .../Exception/LockAcquireException.php | 4 +- .../LockAcquireWouldBlockException.php | 4 +- .../Locking/Exception/LockCreateException.php | 4 +- typo3/sysext/core/Classes/Log/Exception.php | 4 +- ...alidLogProcessorConfigurationException.php | 4 +- ...InvalidLogWriterConfigurationException.php | 4 +- typo3/sysext/core/Classes/Log/LogLevel.php | 2 +- typo3/sysext/core/Classes/Log/LogManager.php | 2 +- .../Event/PackagesMayHaveChangedEvent.php | 4 +- .../sysext/core/Classes/Package/Exception.php | 4 +- .../Exception/InvalidPackageKeyException.php | 4 +- .../InvalidPackageManifestException.php | 4 +- .../Exception/InvalidPackagePathException.php | 4 +- .../InvalidPackageStateException.php | 4 +- .../MissingPackageManifestException.php | 4 +- .../PackageStatesFileNotWritableException.php | 4 +- .../PackageStatesUnavailableException.php | 4 +- .../ProtectedPackageKeyException.php | 4 +- .../Exception/UnknownPackageException.php | 4 +- .../Exception/UnknownPackagePathException.php | 4 +- .../sysext/core/Classes/Page/PageRenderer.php | 4 +- .../RequestRateLimitedException.php | 4 +- .../Classes/Resource/AbstractRepository.php | 20 +++------ .../Classes/Resource/Driver/LocalDriver.php | 4 +- .../core/Classes/Resource/Exception.php | 4 +- .../AbstractFileOperationException.php | 4 +- .../ExistingTargetFileNameException.php | 4 +- .../ExistingTargetFolderException.php | 4 +- .../Exception/FileDoesNotExistException.php | 4 +- .../Exception/FileOperationErrorException.php | 4 +- .../Exception/FolderDoesNotExistException.php | 4 +- .../IllegalFileExtensionException.php | 4 +- ...fficientFileAccessPermissionsException.php | 4 +- ...sufficientFileReadPermissionsException.php | 4 +- ...ufficientFileWritePermissionsException.php | 4 +- ...icientFolderAccessPermissionsException.php | 4 +- ...fficientFolderReadPermissionsException.php | 4 +- ...ficientFolderWritePermissionsException.php | 4 +- .../InsufficientUserPermissionsException.php | 4 +- .../InvalidConfigurationException.php | 4 +- .../Exception/InvalidFileException.php | 4 +- .../Exception/InvalidFileNameException.php | 4 +- .../Exception/InvalidFolderException.php | 4 +- .../Exception/InvalidHashException.php | 4 +- .../Exception/InvalidPathException.php | 4 +- .../InvalidTargetFolderException.php | 4 +- .../Exception/InvalidUidException.php | 4 +- .../Exception/NotInMountPointException.php | 4 +- .../ResourceDoesNotExistException.php | 4 +- ...esourcePermissionsUnavailableException.php | 4 +- .../Resource/Exception/UploadException.php | 4 +- .../Exception/UploadSizeException.php | 4 +- .../Result/FileSearchResultInterface.php | 4 +- .../Routing/Aspect/AspectInterface.php | 4 +- .../PersistedMappableAspectInterface.php | 4 +- .../Aspect/StaticMappableAspectInterface.php | 4 +- .../InvalidRouteArgumentsException.php | 4 +- .../core/Classes/Routing/RouteCollection.php | 4 +- .../Routing/RouteNotFoundException.php | 4 +- .../Classes/Routing/RouteResultInterface.php | 4 +- .../Routing/UnableToLinkToPageException.php | 4 +- .../Exception/InvalidDataException.php | 4 +- .../Exception/AbstractBackendException.php | 4 +- .../Exception/SessionNotCreatedException.php | 4 +- .../Exception/SessionNotFoundException.php | 4 +- .../Exception/SessionNotUpdatedException.php | 4 +- .../core/Classes/SingletonInterface.php | 4 +- .../DatabaseTreeDataProvider.php | 4 +- typo3/sysext/core/Classes/Type/Exception.php | 4 +- .../InvalidEnumerationDefinitionException.php | 4 +- .../InvalidEnumerationValueException.php | 4 +- .../InvalidValueExceptionInterface.php | 4 +- .../Exception/MissingArrayPathException.php | 4 +- .../NotImplementedMethodException.php | 4 +- .../Utility/File/ExtendedFileUtility.php | 2 +- .../core/Classes/Utility/GeneralUtility.php | 6 +-- .../String/StringFragmentCollection.php | 12 ++--- .../Utility/String/StringFragmentSplitter.php | 4 +- .../Fixtures/ExtendedSanitizerBuilder.php | 4 +- .../Fixtures/ConcreteBackendFixture.php | 32 ++++---------- .../Unit/Cache/Fixtures/BackendFixture.php | 28 +++--------- .../Unit/Cache/Fixtures/FrontendFixture.php | 44 +++++-------------- .../Resources/PHP/AnotherTestFile.php | 4 +- .../PHP/Subdirectory/SubdirectoryTest.php | 4 +- .../test_extension/Resources/PHP/Test.php | 4 +- .../test_extension/Tests/TestClass.php | 4 +- .../test_extension/class.ext_update.php | 4 +- .../Fixtures/InvalidHookFixture.php | 4 +- .../Fixtures/UserOddNumberFilter.php | 4 +- ...antiatableAbstractRestrictionContainer.php | 4 +- .../Unit/Database/Mocks/MockPlatform.php | 4 +- .../Fixtures/FormProtectionTesting.php | 4 +- .../core/Tests/Unit/Http/ClientTest.php | 3 +- .../Tests/Unit/Locking/Fixtures/DummyLock.php | 8 +--- .../Mail/Fixtures/FakeInvalidSpoolFixture.php | 4 +- .../core/Tests/Unit/Site/Entity/SiteTest.php | 16 ++----- .../Fixtures/TreeDataProviderFixture.php | 4 +- .../MissingConstantsEnumeration.php | 4 +- ...ensionManagementUtilityAccessibleProxy.php | 4 +- .../Tests/Unit/Utility/ArrayUtilityTest.php | 4 +- .../ExtendedSingletonClassFixture.php | 4 +- .../Utility/Fixtures/OriginalClassFixture.php | 4 +- .../Fixtures/OtherReplacementClassFixture.php | 4 +- .../Utility/Fixtures/ParentClassFixture.php | 4 +- .../Fixtures/ReplacementClassFixture.php | 4 +- .../Fixtures/SingletonClassFixture.php | 4 +- .../Utility/PathUtilityPublicPathsTest.php | 10 ++--- .../Tests/Unit/Utility/StringUtilityTest.php | 4 +- .../Utility/PathUtilityPublicPathsTest.php | 4 +- .../extbase/Classes/Annotation/Inject.php | 4 +- .../extbase/Classes/Annotation/ORM/Lazy.php | 4 +- .../Classes/Annotation/ORM/Transient.php | 4 +- .../Classes/Configuration/Exception.php | 4 +- .../InvalidConfigurationTypeException.php | 4 +- .../Exception/ParseErrorException.php | 4 +- .../extbase/Classes/Domain/Model/Folder.php | 4 +- .../FrontendUserGroupRepository.php | 4 +- .../Repository/FrontendUserRepository.php | 4 +- .../Classes/DomainObject/AbstractEntity.php | 4 +- typo3/sysext/extbase/Classes/Exception.php | 4 +- .../Mvc/Controller/ActionController.php | 8 +--- .../RequiredArgumentMissingException.php | 4 +- .../sysext/extbase/Classes/Mvc/Exception.php | 4 +- .../Mvc/Exception/InfiniteLoopException.php | 4 +- .../Exception/InvalidActionNameException.php | 4 +- .../InvalidArgumentMixingException.php | 4 +- .../InvalidArgumentNameException.php | 4 +- .../InvalidArgumentTypeException.php | 4 +- .../InvalidArgumentValueException.php | 4 +- .../Exception/InvalidControllerException.php | 4 +- .../InvalidControllerNameException.php | 4 +- .../InvalidExtensionNameException.php | 4 +- .../InvalidRequestMethodException.php | 4 +- .../Mvc/Exception/NoSuchActionException.php | 4 +- .../Mvc/Exception/NoSuchArgumentException.php | 4 +- .../Exception/NoSuchControllerException.php | 4 +- .../extbase/Classes/Mvc/View/AbstractView.php | 4 +- .../extbase/Classes/Mvc/View/EmptyView.php | 12 ++--- .../extbase/Classes/Mvc/View/JsonView.php | 4 +- .../Exception/UnknownObjectException.php | 4 +- .../extbase/Classes/Object/Exception.php | 4 +- .../Exception/CannotBuildObjectException.php | 4 +- .../CannotReconstituteObjectException.php | 4 +- .../extbase/Classes/Persistence/Exception.php | 4 +- .../Exception/IllegalObjectTypeException.php | 4 +- .../IllegalRelationTypeException.php | 4 +- .../Exception/InvalidQueryException.php | 4 +- .../Exception/UnknownObjectException.php | 4 +- .../Classes/Persistence/Generic/Exception.php | 4 +- .../InconsistentQuerySettingsException.php | 4 +- .../Exception/InvalidClassException.php | 4 +- .../InvalidNumberOfConstraintsException.php | 4 +- .../InvalidRelationConfigurationException.php | 4 +- .../Exception/MissingColumnMapException.php | 4 +- .../Generic/Exception/RepositoryException.php | 4 +- .../Generic/Exception/TooDirtyException.php | 4 +- .../Exception/UnexpectedTypeException.php | 4 +- .../Exception/UnsupportedMethodException.php | 4 +- .../Exception/UnsupportedOrderException.php | 4 +- .../UnsupportedRelationException.php | 4 +- .../Generic/LoadingStrategyInterface.php | 4 +- .../Persistence/Generic/Mapper/Exception.php | 4 +- .../NonExistentPropertyException.php | 4 +- .../UnknownPropertyTypeException.php | 4 +- .../Generic/PersistenceManager.php | 4 +- .../Persistence/Generic/PropertyType.php | 4 +- .../Persistence/Generic/Qom/Comparison.php | 4 +- .../Generic/Qom/DynamicOperandInterface.php | 4 +- .../Generic/Qom/OperandInterface.php | 4 +- .../Generic/Qom/SourceInterface.php | 4 +- .../Persistence/Generic/Qom/Statement.php | 4 +- .../Generic/Qom/StaticOperandInterface.php | 4 +- .../Classes/Persistence/Generic/Query.php | 4 +- .../Exception/BadConstraintException.php | 4 +- .../Storage/Exception/SqlErrorException.php | 4 +- .../extbase/Classes/Property/Exception.php | 4 +- .../Exception/DuplicateObjectException.php | 4 +- .../DuplicateTypeConverterException.php | 4 +- .../Exception/InvalidDataTypeException.php | 4 +- ...dPropertyMappingConfigurationException.php | 4 +- .../Exception/InvalidSourceException.php | 4 +- .../Exception/InvalidTargetException.php | 4 +- .../Exception/TargetNotFoundException.php | 4 +- .../Exception/TypeConverterException.php | 4 +- .../Classes/Reflection/ClassSchema.php | 2 +- .../Reflection/DocBlock/Tags/Null_.php | 4 +- .../extbase/Classes/Reflection/Exception.php | 4 +- .../PropertyNotAccessibleException.php | 4 +- .../Exception/UnknownClassException.php | 4 +- .../extbase/Classes/Security/Exception.php | 4 +- ...alidArgumentForHashGenerationException.php | 4 +- .../Exception/InvalidHashException.php | 4 +- .../Exception/InvalidSlotException.php | 4 +- .../Exception/InvalidSlotReturnException.php | 4 +- .../Exception/InvalidTypeException.php | 4 +- .../extbase/Classes/Validation/Exception.php | 4 +- .../Exception/InvalidTypeHintException.php | 4 +- ...nvalidValidationConfigurationException.php | 4 +- .../InvalidValidationOptionsException.php | 4 +- .../Exception/NoSuchValidatorException.php | 4 +- .../extbase/Tests/Fixture/DummyClass.php | 4 +- .../Tests/Fixture/SecondDummyClass.php | 4 +- .../extbase/Tests/Fixture/SlotFixture.php | 4 +- .../Fixture/TxClassWithGettersAndSetters.php | 4 +- .../Repository/AdministratorRepository.php | 4 +- .../Domain/Repository/TtContentRepository.php | 4 +- .../Classes/Domain/Repository/ARepository.php | 4 +- .../Classes/Domain/Repository/BRepository.php | 4 +- .../CustomNotInjectableValidator.php | 4 +- .../Validation/Validator/CustomValidator.php | 8 +--- .../Validation/Validator/CustomValidator.php | 4 +- .../Generic/Mapper/DataMapperTest.php | 2 +- .../Fixtures/ExtendedCountableInterface.php | 4 +- .../Property/PropertyMapperTest.php | 3 +- .../TypeConverter/ObjectConverterTest.php | 21 +++------ .../Mvc/Controller/ActionControllerTest.php | 6 +-- .../Unit/Object/Container/ContainerTest.php | 3 +- ...tainerConstructorInjectionTestFixtures.php | 4 +- .../Container/Fixtures/NamespacedClass.php | 4 +- .../testclasses/t3lib_object_prototype.php | 4 +- .../testclasses/t3lib_object_singleton.php | 4 +- .../t3lib_object_tests_b_child.php | 4 +- ...bject_tests_b_child_someimplementation.php | 4 +- .../testclasses/t3lib_object_tests_c.php | 4 +- ...object_tests_class_with_injectsettings.php | 12 ++--- .../t3lib_object_tests_cyclic1.php | 4 +- ...ject_tests_cyclic1WithSetterDependency.php | 4 +- .../t3lib_object_tests_cyclic2.php | 4 +- ...ject_tests_cyclic2WithSetterDependency.php | 4 +- .../t3lib_object_tests_serializable.php | 4 +- .../t3lib_object_tests_singleton.php | 4 +- .../t3lib_object_tests_someimplementation.php | 4 +- .../t3lib_object_tests_someinterface.php | 4 +- .../Persistence/Fixture/Domain/Model/A.php | 4 +- .../Persistence/Fixture/Domain/Model/B.php | 4 +- .../Persistence/Fixture/Domain/Model/C.php | 4 +- .../Fixture/Domain/Model/Entity.php | 4 +- .../Domain/Repository/EntityRepository.php | 4 +- .../Fixture/Model/CustomDateTime.php | 4 +- .../Mapper/Fixture/DummyChildEntity.php | 4 +- .../Property/Fixtures/DataProviderOne.php | 4 +- .../Fixtures/DataProviderOneInterface.php | 4 +- .../Property/Fixtures/DataProviderThree.php | 4 +- .../Fixtures/DataProviderThreeInterface.php | 4 +- .../Property/Fixtures/DataProviderTwo.php | 4 +- .../Fixtures/DataProviderTwoInterface.php | 4 +- .../PersistentObjectEntityFixture.php | 4 +- .../Fixtures/PersistentObjectFixture.php | 4 +- .../PersistentObjectValueObjectFixture.php | 4 +- .../Property/TypeConverter/Fixtures/Query.php | 4 +- .../Tests/Unit/Reflection/ClassSchemaTest.php | 24 +++------- .../DummyClassWithAllTypesOfMethods.php | 40 +++++------------ ...WithConstructorAndConstructorArguments.php | 4 +- ...ndConstructorArgumentsWithDependencies.php | 4 +- ...structorAndWithoutConstructorArguments.php | 4 +- .../DummyClassWithGettersAndSetters.php | 4 +- .../Fixture/DummyClassWithInvalidTypeHint.php | 4 +- .../Reflection/Fixture/DummyClassWithTags.php | 4 +- .../Fixture/DummyClassWithoutConstructor.php | 4 +- .../Reflection/Fixture/DummyController.php | 8 +--- ...WithIgnoreValidationDoctrineAnnotation.php | 4 +- ...llerWithValidateAnnotationWithoutParam.php | 4 +- ...ValidateAnnotationWithoutParamTypeHint.php | 4 +- .../Unit/Reflection/Fixture/DummyEntity.php | 4 +- .../Fixture/DummyModelRepository.php | 4 +- .../Reflection/Fixture/DummySingleton.php | 4 +- .../Reflection/Fixture/DummyValueObject.php | 4 +- .../Unit/Reflection/ReflectionServiceTest.php | 6 +-- .../Unit/Utility/DebuggerUtilityTest.php | 3 +- .../Controller/FirstController.php | 4 +- .../Controller/SecondController.php | 4 +- .../Controller/ThirdController.php | 4 +- .../Validation/Validator/CustomValidator.php | 4 +- ...otImplementValidatorInterfaceValidator.php | 4 +- .../Validator/DateTimeValidatorTest.php | 6 +-- .../Validator/StringLengthValidatorTest.php | 3 +- .../Validation/Validator/UrlValidatorTest.php | 3 +- .../Object/Container/ContainerTest.php | 3 +- .../ContainerPropertyInjectionTestClasses.php | 4 +- .../SignalSlot/DispatcherTest.php | 3 +- .../extensionmanager/Classes/Exception.php | 4 +- .../Exception/ExtensionManagerException.php | 4 +- .../Exception/InvalidFileException.php | 4 +- .../MissingExtensionDependencyException.php | 4 +- .../MissingVersionDependencyException.php | 4 +- .../UnresolvedDependencyException.php | 4 +- .../UnresolvedPhpDependencyException.php | 4 +- .../UnresolvedTypo3DependencyException.php | 4 +- .../Remote/DownloadFailedException.php | 4 +- .../Remote/RemoteNotRegisteredException.php | 4 +- .../Remote/VerificationFailedException.php | 4 +- .../Tests/Unit/Report/ExtensionStatusTest.php | 8 +--- .../IncompleteConfigurationException.php | 4 +- .../Classes/Event/LoginConfirmedEvent.php | 4 +- .../Classes/Event/LoginErrorOccurredEvent.php | 4 +- .../Classes/Event/LogoutConfirmedEvent.php | 4 +- .../Classes/Controller/FileListController.php | 2 +- typo3/sysext/filelist/Classes/FileList.php | 2 +- .../Classes/View/AbstractTemplateView.php | 4 +- .../ViewHelpers/ExtendsAbstractEntity.php | 4 +- .../Controller/FormEditorController.php | 2 +- .../Controller/FormManagerController.php | 2 +- .../Exception/ArrayProcessorException.php | 4 +- .../Exception/PropertyException.php | 4 +- .../Exception/PrototypeNotFoundException.php | 4 +- .../sysext/form/Classes/Domain/Exception.php | 4 +- .../Exception/IdentifierNotValidException.php | 4 +- .../Domain/Exception/RenderingException.php | 4 +- .../TypeDefinitionNotFoundException.php | 4 +- .../TypeDefinitionNotValidException.php | 4 +- .../UnknownCompositRenderableException.php | 4 +- .../Finishers/Exception/FinisherException.php | 4 +- .../form/Classes/Domain/Model/Exception.php | 4 +- .../DuplicateFormElementException.php | 4 +- .../FinisherPresetNotFoundException.php | 4 +- .../FormDefinitionConsistencyException.php | 4 +- .../ValidatorPresetNotFoundException.php | 4 +- .../Model/FormElements/GenericFormElement.php | 4 +- .../Domain/Model/FormElements/GridRow.php | 4 +- .../Model/FormElements/GridRowInterface.php | 4 +- .../Domain/Model/FormElements/Section.php | 4 +- .../Model/FormElements/UnknownFormElement.php | 8 +--- .../Exception/PropertyMappingException.php | 4 +- typo3/sysext/form/Classes/Exception.php | 4 +- .../Classes/Mvc/Configuration/Exception.php | 4 +- .../Exception/CycleInheritancesException.php | 4 +- .../ExtensionNameRequiredException.php | 4 +- .../Exception/FileWriteException.php | 4 +- .../Exception/NoSuchFileException.php | 4 +- .../Exception/ParseErrorException.php | 4 +- .../Classes/Mvc/Persistence/Exception.php | 4 +- .../Exception/NoUniqueIdentifierException.php | 4 +- ...NoUniquePersistenceIdentifierException.php | 4 +- .../Exception/PersistenceManagerException.php | 4 +- .../form/Classes/Mvc/ProcessingRule.php | 2 +- .../InvalidValidationOptionsException.php | 4 +- .../FormDefinitionPersistenceException.php | 4 +- .../form/Classes/Type/FormDefinitionArray.php | 4 +- .../Renderable/AbstractRenderableTest.php | 3 +- .../Framework/FormHandling/FormData.php | 4 +- .../AbstractRequestHandlingTest.php | 2 +- .../Exception/ContentRenderingException.php | 4 +- .../Menu/AbstractMenuContentObject.php | 4 +- .../Exception/NoSuchMenuTypeException.php | 4 +- typo3/sysext/frontend/Classes/Exception.php | 4 +- .../Framework/Builder/SkipException.php | 4 +- .../Unit/Fixtures/ResultBrowserPluginHook.php | 4 +- typo3/sysext/impexp/Classes/Exception.php | 4 +- .../Exception/ImportFailedException.php | 4 +- .../InsufficientUserPermissionsException.php | 4 +- .../Exception/LoadingFileFailedException.php | 4 +- .../Exception/MalformedPresetException.php | 4 +- .../PrerequisitesNotMetException.php | 4 +- .../Exception/PresetNotFoundException.php | 4 +- .../Classes/Configuration/Exception.php | 4 +- typo3/sysext/install/Classes/Exception.php | 4 +- .../Classes/FolderStructure/Exception.php | 4 +- .../Exception/InvalidArgumentException.php | 4 +- .../Exception/RootNodeException.php | 4 +- .../FolderStructure/RootNodeInterface.php | 4 +- .../install/Classes/Service/Exception.php | 4 +- .../ConfigurationChangedException.php | 4 +- .../Exception/CoreVersionServiceException.php | 4 +- .../Exception/RemoteFetchException.php | 4 +- .../TemplateFileChangedException.php | 4 +- .../DatabaseCheck/Driver/PDOPgSql.php | 4 +- .../DatabaseCheck/Driver/PDOSqlite.php | 4 +- .../DatabaseCheck/Driver/PDOSqlsrv.php | 4 +- .../DatabaseCheck/Driver/SQLSrv.php | 4 +- .../Classes/Updates/RepeatableInterface.php | 4 +- .../install/Classes/ViewHelpers/Exception.php | 4 +- .../InterfaceMethodChangedMatcherFixture.php | 8 +--- .../MethodAnnotationMatcherFixture.php | 4 +- .../Php/Matcher/Fixtures/Subject.php | 4 +- .../Classes/Browser/RecordBrowser.php | 4 +- .../Controller/AccessDeniedException.php | 4 +- .../Controller/RecordListController.php | 2 +- .../LinkHandler/AbstractLinkHandler.php | 4 +- .../Classes/RecordList/DatabaseRecordList.php | 6 +-- .../TargetPageIdViewHelperTest.php | 12 ++--- .../Classes/Command/SchedulerCommand.php | 2 +- .../Classes/FailedExecutionException.php | 4 +- .../InvalidConfigurationException.php | 4 +- .../MissingConfigurationException.php | 4 +- .../MetaTag/MetaTagGeneratorTest.php | 2 +- .../Exception/InvalidModeException.php | 4 +- .../Classes/Controller/ReviewController.php | 2 +- .../Unit/Domain/Model/WorkspaceRecordTest.php | 3 +- 520 files changed, 626 insertions(+), 1713 deletions(-) diff --git a/Build/phpstan/phpstan-baseline.neon b/Build/phpstan/phpstan-baseline.neon index 0b3cc298bb1d..43768fb78199 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 af0fc400c47c..cd588f3456c0 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 f2ae68be7b93..6b39beeed988 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 b47b9b5d0092..4b915763b3e4 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 5ebf56190d66..90b16081d635 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 cfcf9763676f..5468540ac15c 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 769647a760f0..b3cbcd4d0790 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 3acd46803d9b..c5bc3c4481ce 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 4e9da6d962fb..70f327c1e853 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 bf3e79d6b83b..52a28104dce4 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 e9531b460a15..c609c2ffc4ad 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 4795bf66fdb6..0f75ea9b3d5c 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 7843e7a616b3..fcbba1c22ad9 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 f34fb3bbeb5d..73acaed99edb 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 a2b8c45f81ac..aa7e4c279eac 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 cde029db5204..e1d61076cb3d 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 2d6d0cdac9b2..f1aa58de6e8f 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 39c0f8471680..49bac0c847dc 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 c7f09ec1ef5e..5e587003b7d3 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 32d7b6d6ca48..bdfc381280b8 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 219959cc2df5..b8282f24e270 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 71aefeeca6bf..a90dc04ca77f 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 014c9bc76f4d..067f1496c463 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 56b5265eb632..5b09d87bd525 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 3c3ca10aaef9..767b8361973a 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 85094ec389a1..2603837e462f 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 97787e30d15e..64f0c1550bd7 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 4a8d0e381fef..bfce79102d5d 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 3ffd71894de2..36095b30169b 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 dd087f497b88..2bc1e51b3dd4 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 80fdf4182fa4..45e19e87c281 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 39f6b63dda83..ed347dd73bee 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 c8cd10c07e5b..67f29572a5fb 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 e65bc2801603..e6ed6e7b16b8 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 afd9991c845e..3e75c9c1b709 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 1cd876bad40e..51543d368662 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 32dde7d93f7a..6f67aacdd16c 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 dcf06fa6f358..7df8fe047129 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 54b7395b8221..bc66b4a05c50 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 038ffeb474f9..c883e1362857 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 4d90e47d88f4..73bcd28fd772 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 0473d2ef42c2..7942ac6e393e 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 432d9e546655..4be47bf4fabf 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 dd111504a0b2..23ea562f8503 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 42c31e45a51e..08febfc7ec6c 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 b2aa5b394a0e..d8f24f9d88b4 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 c45d5dff46ed..e815621ed7f7 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 17eb78981dfa..b07ebf36742d 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 751fd9ccd18a..990d51cc53a1 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 49fa403acf4a..769ae6cdf3cd 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 025c105c0000..cf942f2974f8 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 1a5505860f38..a41f9bcc2684 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 a98f53c31e94..68bfac05bd60 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 a342bfd4c421..b1056b5eb3ff 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 3603171a1ad7..ab330ce3cf92 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 8744a5dc9eb7..7dece2602ef6 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 23252d9d5d06..3ac50fab40ce 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 03907f151a6d..d9c14a305be6 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 2435eed5afd1..a3933bbfbbf5 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 4c097cb28dc1..036b719f0377 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 4c4d54efb3d1..18077892b9c0 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 ce54090bab24..0414e0d98172 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 6123d4817575..19255a40b936 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 54bac7b0ed47..ef6ab0998cbd 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 614da003a00c..5e2d52f5fc9f 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 d1d6b474a9fd..784fece47d1a 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 cc8bfb1d77d1..62c52f46a223 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 814ec3292d0d..ae5f9b717af5 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 54cef3bcffc4..ae90ac4c942f 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 8de8c01e81b0..c3963d284ed8 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 5fb68a7d5311..7d6582c73e03 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 e97f07bad346..121c9ea6b152 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 f12ec1b4e435..cc40921baefa 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 09f137a2545f..dd7fda432c50 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 3457557b2c10..b4e82dfa390e 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 8005c190438a..ce0fcf796820 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 0a3b2e0698f0..6afb645d1ac6 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 15c6365d3f62..9ca3abaff0bc 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 ece741c372fc..2083ad50352a 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 338b2a910114..4668715f72ac 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 b52dd0058e6b..cabeb0ac7c50 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 b71650489a24..91ada38c60eb 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 a19e5a8b8d66..865a9173d98a 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 e59a4d423a5b..62d8d0f8fc4b 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 6dc8485ddb18..da44a8ce466b 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 315089ad2561..fbb3108865ab 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 892a9ef1ba30..bf9a78796309 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 1b7b9ace8cec..e87fc5d552fa 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 a876191f9285..09768ca0187b 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 9ff80f04bc0d..04578703945d 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 abc4ce806c3b..592707f07035 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 2b45178bbe9e..fd2026bd5295 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 63f3b3cea940..4844ac12177b 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 96d2c1a81af4..599c7689802c 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 25ed0b6ae725..df3684319d6e 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 61768dc61ba2..e0f6f4447308 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 b0c012c7b2d1..e919be82e7d1 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 eb6c6e4d084e..31ecae6f19b3 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 c4d656defc3c..4f2d8f83d429 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 c55a84f66bfa..6f60ab308e65 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 600c4f0ba2f3..e2cb98b5c7f4 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 3f32fdf05124..ed29a7516926 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 332850dc1ce1..9501711d403c 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 280ca0402738..8de4f07bcc6c 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 b0b89ddc7537..ae2fda7badfe 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 db31eb51fa73..ddbc5f47b900 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 824db9312947..c8f22f0bfd2a 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 a2941b312577..5dfa729a6e4f 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 24ebf82ba50f..2682f543c4f0 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 7fba7c7f2a29..a7cf408ad905 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 da57596f5cc5..18a92da012a9 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 00bc8677256f..f7359682dc6b 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 6b4e560e361b..ec0d18da6c3f 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 f08d0d90086d..b0da6a5c47b3 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 8e5594e71dcb..dd53d83e924d 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 76aea2526469..c5d91f295b06 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 711c20e52536..9deec3877c9c 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 3d16508f144c..78f0286d9a36 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 3b21ab716422..0123831b8fd1 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 b0a417139f7a..5898dac4a63f 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 be9068f1e739..615cbb1f1cfc 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 bc21cb952ab6..13ec7fac59b6 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 d9298200243a..3f13ce40b977 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 afc706757e65..b963bafe3610 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 366eb8cd59c4..329320ef648c 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 7e8d88621e54..09f5fd9ec6a0 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 aae459c962f3..03ee2be1ab0c 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 c3da70826c3b..c01cfc2f7e38 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 f0741265ca10..64405c1ad265 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 388b8c2d156a..b17006aabe31 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 69c4772f8282..36818759aae9 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 dd5b8cbd436c..33603a0f60f8 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 21fe4955ec77..2ab6deede998 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 b1f3f8829b0e..dbd14897a424 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 b8ee401c3a5a..c123ad1b2dea 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 e6ecdcde5c6b..4c93e0893bcf 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 2da3b74744d7..91068fe2ff73 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 6d07d625de4b..36d5e23a125d 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 eb7c6be14fae..9c7ff7e88298 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 04038d93bc28..469715451c0d 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 04e834a02774..2790410c15ff 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 03cddb222364..c6280d58dcce 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 d73a0b70514d..7b10ed20051c 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 44897384317a..841c818f70a5 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 e88933f48f00..6a5b25e521b1 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 8f4307b12fd1..12e81ec32da6 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 3ba8aeca5b96..457a4e6ee44d 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 225431039437..3f90bfc4064a 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 a6c739f4cd03..55980d46e17c 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 d215b844f059..55905ae83f5d 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 1965d6e95c6b..3bc3d22aa48e 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 82b3259f7456..5e97e44ad349 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 be818de45525..7cb966e53c46 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 58dbd76b48ad..b1e3c4a8a433 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 9409e7444a82..e4f920d0fad0 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 f95073070931..38bb6ed40867 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 6ee529780fc9..406404b822d1 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 a82f8b805337..d06773df19c5 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 2e2416086544..a7539432db6d 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 9c3892e6db72..a8053a54fcab 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 25e74c85ab3b..058a2660765a 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 0d0bd04ccab1..1777ca87c4cc 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 6cb160ef9ac4..7702b9f7c541 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 94601104544c..cb54901a54cf 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 0f300bb03577..e034ae8863a5 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 dc00ba104378..fb0dc5f6dfd7 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 04ae67cbf2bd..34c818580062 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 6bd4c8efdf99..47a2bf0d3bea 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 8e26c651015c..11dcf2c5834f 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 9362109df378..4f709f68a950 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 e0efe365b1e4..5faf58f71b20 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 3fd5035720a9..07f4f1df19d2 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 bd08e5e0885f..9433c83a0164 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 02a12ad7e786..79b9ff2e0b18 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 6e49001d5e99..a6051eb1b59c 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 3279f8deceaa..1d57be76292a 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 b390e53592f2..0efa7e5682a8 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 77da64ee8611..0cf907463548 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 75af07af4f06..cdad06faa818 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 f10d2ad60c3b..dd799189e2d6 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 e6ec5b9665de..d60403fd3d96 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 f0f5b252c320..45fe7745e6ed 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 0944c22a8393..7e35f4dcea69 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 2ad4e07f6a16..4164527264e4 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 5278359f63d7..9c329b54185a 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 2a91e55c31da..e70b63eebe52 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 f4a2e511c131..8fe3088f8a45 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 4fd09be065f6..eea9ac17d2f3 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 fcd62fb0f5a3..8490bc7a31b2 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 3fe2b9a67c17..b2d0c126dd1f 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 cf1e62518128..0f2f03d64898 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 3facadf7d6cd..decad1a6d5bc 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 4a1bc5e6130c..1ce551e0f038 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 bced45ffd3e5..00121691bea2 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 29329632e807..0374dcc5f376 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 5662d583bc95..941e053a2ac1 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 97ff4902a4d0..1bbe87494a9f 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 eca5d64f208c..72c103c0464c 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 139f534c4a1a..8c95257de00b 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 5575dcf08004..f79125daea81 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 a205a841088d..0f196424c918 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 51f3987c8c90..b56cb19342f3 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 1d42a7fef7b1..df5d746657ff 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 f5a47ecf374a..89c61e838990 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 4801a1587ccb..3d0ceb154178 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 eb22ccec9b33..75685c7c8fd5 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 806c1917a1b3..a5c22e7da5ab 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 8c22887f0810..fa57cf9f5a5f 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 c00133734b90..d20a51f5496f 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 9607ab46a77d..e2cbf6ef2ff5 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 53f212c9c21b..875f58a702af 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 dee0359a7494..42f81361b4a4 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 1412df7d6f25..3d411024ef19 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 6ee7088172ce..6b13f5ddfee6 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 6077a8d7b20b..e34f2db9625e 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 7c404ea9deba..41a0f91a95fe 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 eecb6036d345..aaec814df927 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 e47c94a8736a..7499f0816eb4 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 780313428c5b..e87815bdd8d8 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 3198378db8eb..48a9bbca56f1 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 07cb2a5ea3db..f5defe436194 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 2803b76de5eb..121496d8b891 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 543f7cd42326..7baf61ce79ce 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 c6062f9e8bbc..5ab698a29c07 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 d7ed13dea60b..e45e13b52e40 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 146825204669..b5e8e1c0e232 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 c36fee23f839..f1c3778c85e6 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 a6b98c720a47..87d21b5e94c1 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 fe2e7c0ff097..4b1dfc817f2e 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 4545e00b611d..3710f9abbaf3 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 991c87099bb7..0d8d6b3ec416 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 26613ee9fdb0..9bc6642b8f09 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 73033c3725f1..dbc2cd360492 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 1c95fd4173b2..f3fcc74f080c 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 e97daa40add3..3595c0bdff8c 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 1aec995d79ca..461657451866 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 ef3f5e8b0314..4e556548508f 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 49e69866e9f9..81e713984d97 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 c7a8a699b4ec..8075e3a77de7 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 381f439b5582..7f0163aa1867 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 56eac433c58c..3d463d97035d 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 2abe1ce93525..a81283fc0515 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 3e2fd9ccbfa0..7b3bc8ae82fd 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 b562d0d40b25..d0220b929875 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 e7827d7d5374..a47f892b9a43 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 142f0457c35b..251e78e72fe7 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 98c8df2b1947..07d0521bda5e 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 6cfeee621c8f..0147e6737468 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 a291c737afdc..df21c96fe54d 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 2ad7e679cc03..72cadf898b68 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 41b0a7fd1170..264ce87e82d9 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 f0e6c6bb7f10..ed386b9d3c0c 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 3a7c376b0c5c..c42c866045cc 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 f3ccb63499c8..7af6d24ce11b 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 36add3af17ac..6861cf89675c 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 73d60176b0bc..a3135b1483a2 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 c97afbd38598..fdd220123c91 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 44e709020d75..42dc9f7eea01 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 f589f9cab213..fd6ca5229c9c 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 ec0451fa0c2f..1df18bb5b9e9 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 146c7fccbfbd..01a1c0e8c7e2 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 a4c8aef89850..c98c916ccc9c 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 f48a61a9b5ea..f9b95667e3b5 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 ceda29bc801d..0dd934c65d54 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 c86ac06d6323..c5876410effb 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 526d10f5f3d7..e1d03b306c14 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 941678d246d0..3bb76e66932d 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 4a7af5f89f39..279346e89ec4 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 0df970c339e0..b51d1d961f15 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 87604ce20bd4..911c2f109065 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 81698d3916cc..9691e2ef9ed4 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 dd3af2ee51ce..8f10794808c6 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 40e0efee5b35..61271312b9b5 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 eec148daeab3..ced4b64c7f3c 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 06c166c63129..47898943e3b7 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 da827edeaf1c..2c1657575075 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 3f458c84f746..8df5b1bd952d 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 5b8cb3f0949d..2ce4120b3c24 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 c6dfb2eaf7f4..0018583940b1 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 08458608b15f..0bf01aa9b62b 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 a7b384a581f0..a9afc58a8a49 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 8b6992f8e114..53aecd3a6388 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 a9a1622b9beb..5da73f3d62ab 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 012f3561ae49..9306c2475ace 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 d941b525bd59..a0c486552403 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 bb7896a11b6b..6e3463272329 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 e282b7ff6a32..3fb32304de67 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 3294bb3da48d..394f30b1f874 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 d73e8aff4d74..9b8a469477cf 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 43d2149d5728..42c0f72956a9 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 4785fd2b1826..362988355100 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 bd2a98635995..d37315f66690 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 b61829ecfedc..edb90397c962 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 77cca7115386..4ede2789ac91 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 b32a55b335e5..1b6a82f84105 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 e281645e637d..bf0896c35a3e 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 6ca715fdccab..2a2a57f0d2de 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 27176254449f..8449267ece1b 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 88c9138c8110..a812f5310546 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 9363a8a420b7..9e9e4dec8161 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 541ab4068aa8..f7dac93c3031 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 bdb40a80a261..4c511f707634 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 dd0d0a1e485e..8a6248efd617 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 0ca30574b452..0e618f41ab0a 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 d8453760ffe2..b0121a7ef836 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 db5ea01a7bc1..1e552478294d 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 8c9369eca20d..1ef0fa9b6b36 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 be90b1acb5d9..3220e07ac728 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 2c2753cacb0c..c9f502c69706 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 bfd23b27701d..5fce1ea16c1c 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 02d1c45d200d..c028d8e34f16 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 df88343e1921..5ab6335f55a7 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 2fdbcca14e62..248900be7ce7 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 77e8715a9fe4..ffaa38e4dc6a 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 201942e2e398..b4fe59fd466b 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 e8ea365f7be2..dbe5abe03018 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 8b80bc4c9341..edf21a00b5f7 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 dc8d3eba6d52..bb4f397ec37e 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 f5d7fa4c6fb5..21c39f18ec19 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 24075a3e4e35..24140aad65dd 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 8d0edd4ba412..266ef1c95369 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 66b90a84aefb..7752431a337f 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 e467bd491887..c8829b717ca6 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 df1bd72ebd4d..d9b07aeb5d5c 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 af466b6d2f0b..adf2bbaa7da9 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 42bd2b2f7d0e..a0384d973826 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 dbd956a16b88..266a5ded93d3 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 dfdddfdfdc30..43ae11852889 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 9f963100fa02..9684150c6a6e 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 ad54ab6b02f4..16610bb1927a 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 0d434bce34a2..6b4a71cb6c6b 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 8951053e9df4..b1ef78d6fe89 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 c36f7aba3268..34ef76e787e5 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 f7c7f8cf80ab..27b8fdca5fb5 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 2fbde14142f5..292239d3cf62 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 6add7129f6ba..7a3df87084ea 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 26d3517efcd8..69d55375e26f 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 ffd53650ecdb..4df74c63f7d4 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 ad567d79a1c9..82c40afe35ea 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 e9d72aa7c6ca..4013b78810da 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 e832bc592f31..8dc3b556da29 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 95ccc48a1e58..923961c3a6e8 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 ff1a1e51b519..5d8b3b499c84 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 a54a1eb47840..ee162bcf726b 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 4035bbd801ba..61e8d841e64e 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 04fe348d0377..ec8345e00b89 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 75937809be93..b4cc953191bf 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 ddd22d744d0d..ce1d8589ed0e 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 5c351ab504bb..3a141ae3851f 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 fe50ce164f80..f7844e8075ad 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 f091c257d9a5..6b5592645ba1 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 1ce52433ed1e..206fe01849be 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 fa8b357e2777..2b69d5b02208 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 e02ed934d1b9..e52fc8bb9233 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 db71119cd5b5..8957a5653e31 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 6b101055249b..2824fff07eee 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 23fe866c1ff2..e3d2c209fb75 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 5d6bb9edbca9..5f353699449d 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 65a954a66f94..be55fdb11b1e 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 796a0696af54..0272f27a90f2 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 23bbf301fac6..0ecfb281fa29 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 e78c965cde7e..f425a7772a5f 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 80b6189d79b1..e6de17e749c5 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 3183fa6405f7..74e8065f7e95 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 2d1f1bc9cd7b..52f2683563d9 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 09f8d13d5c09..4756d1424ae2 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 d13eb661865a..ccdc23f0a82d 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 7af2c2641847..b224446a756c 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 f70d83838375..1df4181b035b 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 66ecea943c46..82938b73b764 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 03029a2c14aa..c1f5d3a10e99 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 94de351563cb..2df8ba35b78a 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 4cb992ffbae7..78bf89ee39fd 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 4c851823866a..afa716673902 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 aeedc8b10159..21851d8ebcfd 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 748e962e2de6..ebdbedf7c6c2 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 f54bc27a1e85..95ce3a6f67e0 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 c7c4f78b75b6..3546242af23a 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 093d13265181..9fc7722f8db0 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 087654e5c09c..5f4c30ef5bb1 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 92452c26c3a0..96f6c3c1ac5b 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 d489da716385..7080a8ac2543 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 38ccf606ee02..cf0d8a677037 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 b883d1b5431d..bf16beebdc7d 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 6e353ba2b883..09b3790700de 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 45628e87aba6..f86b5d9311e9 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 10c63f7fcfca..925f920d7d65 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 649d7c0323b9..54f8071c8551 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 be5390137999..2c3b4146c781 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 014a339f57e2..63ade43b5f3a 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 1e328f054eca..85efda4379b5 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 0ce5a1ad173b..34cfcbde842e 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 1f4b2403a373..e2dac368e9dd 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 f0894e8f47b8..d70b46a2046c 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 0a735618a776..76f697ec730f 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 e08e3e2b5367..2ff06bf575df 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 104f14bd63b2..f8c5a315b3f1 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 6a78fb193b9b..b554e0509079 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 754b19f94300..ddf8bac1afd2 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 246b16c31151..9b6834998cb9 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 465cd6f87c3d..d87be601b93a 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 d9438b1fe4ef..41a784ed3ab5 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 f6032ea1ed0f..dc443f86c365 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 bc9a2f4474a4..520a13e82cc4 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 d4db8360a586..0954558a3e85 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 48e70218e304..9c262b6cdc1c 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 68e1679babde..8fcab6052669 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 467fdaf4c904..584ec43a6b69 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 e7d49d64a131..b95949ae46d4 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 9917c32b9b91..2500d7f15f7c 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 41f1aad390fd..fea1475de34a 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 161ef8ab8b6d..53f6d51159d8 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 89d25385385b..0dec237744ef 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 c3c305699a04..f5021ab5c1a6 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 4f73368a1da1..24fef9f02fb1 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 f03125b9e62f..ae346fbc8894 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 09d67976e510..1b1d1f46c5a3 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 c5e8d11b2972..8b10461c65c3 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 2439ad86f3b9..88d339ba0959 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 942dfb3ca5ff..294921de8003 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 dcc951ca70b8..0d7d0e6d7fc7 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 7347ed85182d..3ee8e69a95fd 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 14f2bc38379a..566c6783b899 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 437624aff005..10cb228919a1 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 7b5d95c5c7b2..b5c5c108a2e3 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 bc1e62611579..bf4cdd2b64d9 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 37c4c5ad4bf2..92cb70bb1730 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 6443b8ab5727..fe404a8df9ee 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 44d32e7ff6a2..9a32753a8859 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 cb547dfa1f75..29e9d6231a7e 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 00b1184e3f4c..41104d628bd9 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 896264eb5240..df6e50817306 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 1988eea45c94..47c09b45637a 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 53a837183652..d14b42b84279 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 5ac4e36f260a..19620f051330 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 40381b0478c6..d41770f857ac 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 b5242be769d1..13113ffb4239 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 9f382e31be15..b8bb4006f4cb 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 b00f182cc130..600a4f37f778 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 97b3eeb3deaa..b6f6a80d5c56 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 7717e037bc4c..d71e98b201dd 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 ea1f33b75388..4e1393a84c39 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 0e4868dacc45..d0dc6d989e39 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 5014857df70e..71f30490b201 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 483c6349581c..ac158ee2f361 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 6c43a25c14bb..a5812830faf5 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 da2421f80879..596e9d6b8095 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 dfc1dcef9903..f736875b3c04 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 6dd36acc0d81..a917e51f3583 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 2d5bb8d043ca..0e31dace9c58 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 c64d28c7fa40..6b7c278e37fb 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 3e742bc82bd2..a963d29987f9 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 c166d4836cfb..c622193c7054 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 bb50416090e5..e2815d6fee68 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 4d609b7ff1d9..e1c31ec1eb11 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 f62631bbd63e..b8c2d05e9e36 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 6fc290471cac..b05ca08646aa 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 f092db34c422..c653cc020997 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 12b6ae15428d..e7e54712f555 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 222f14e4f963..c54b63b5b9ed 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 7349076b69f7..330dd2cad7cd 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 4e4be3bc80a9..d605bc9e7c44 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 1ac0d03232d8..7af5f3e7f9f2 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 0e2b0c7ab690..b86a66117f51 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 f8c2045994bf..a652019106ef 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 f50e36426741..11fdcad17b68 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 4d06b02903aa..f79666729859 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 8a0742de8794..0d07f3d66b2f 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 7d3a2b8ec980..b0f8e8b0d6e0 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 91f3de109e6b..93f23f17324d 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 df2abce47dd6..4ad0335e388e 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 1d001fd4a676..670175df6a7b 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 0df1e439c3ba..68ae9a3efdd7 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 dacef31997fa..3d124b507969 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 93288fdd4d20..970449359b62 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 0c57d3626c7b..167bd0ae0f24 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 814fe60e20cb..1d7f737d9a29 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 ecf5a3759a47..72ddd1be4600 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 e18441c7848c..ae950383f10b 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 c8c5ff4eef02..25f8ce343a44 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 606ee23b0bc4..c1b1ecd73b80 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 62382d5a3c6f..924823a8a2d2 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 66e186e621d3..970842efa89d 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 925910d9e640..eb3c645d8bc6 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 915e16a1cded..14b7054b5fa6 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 3ebb2513940f..795bed951557 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 f16a9f187602..27330d6c0fca 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 b0e931d64268..8f76713646bf 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 83487ebcc64b..e294a46306c4 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 d9b2c6036f53..0960b60a2c32 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 f3a776f1d38d..901917bb9a59 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 c3fd6b915c3a..4f3fb9bafb3c 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 0f864ece35fa..39d4f4989eaf 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 4063ae9d967a..e20adec71840 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 bb0fe05f22c1..b2ee6b55a6cc 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 4b1d3a3734ca..382334182a38 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 19fdc146f1a3..2029caeae4b6 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 22639e0a5d86..15e142d0c74e 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 6b8d999bc39e..128e7b9f9aa1 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 639bf142a954..d4407f7b9a26 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 b8bc83f211c9..b0080e7a8d5d 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 218120ecff0f..d25332475cb4 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 4db38292a865..03e6fa840e44 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 b5761c61fac7..4e4d15efb993 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 ab8ab2d7f7ab..8c7bd88cd88b 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 611ebb1d3cb5..04db96958e92 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 b5c4ab78b9c9..abd3ef79de2e 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 f00a1927b779..ad21dbbf7a1b 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 1635582f348f..5c0981724002 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 4c53e7461a6d..2f270b1fda21 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 07706e8bb9c3..d33aa427b659 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 39c3adf8b860..572070c94976 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 a207b3d65388..5685dd86f5ab 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 e3e2d9bb0719..5e52fe026d39 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 2a9544046586..dfe1a6296621 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 069364a6c919..ccab00d11705 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 d1e5c9ff95d1..eeb526a2d065 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 ea825fcbfd5e..3a8167472504 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 4913d542c98a..1a2300437205 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 f1b290aa1193..a71d6f492489 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]; -- GitLab