[TASK] Add more rules for Code sniffer 90/56690/4
authorGeorg Ringer <georg.ringer@gmail.com>
Mon, 16 Apr 2018 15:08:33 +0000 (17:08 +0200)
committerAndreas Fernandez <a.fernandez@scripting-base.de>
Thu, 10 May 2018 18:54:24 +0000 (20:54 +0200)
In order to improve code quality, the following code sniffers are added:

- cast_spaces
- declare_equal_normalize
- dir_constant

Resolves: #84590
Releases: master, 8.7
Change-Id: Ib8a353b9ec47bff146b5decc3d5f97d242672efa
Reviewed-on: https://review.typo3.org/56690
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de>
413 files changed:
Build/.php_cs
Build/Scripts/validateRstFiles.php
typo3/sysext/backend/Classes/ContextMenu/ContextMenu.php
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/AbstractProvider.php
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/PageProvider.php
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/ProviderInterface.php
typo3/sysext/backend/Classes/ContextMenu/ItemProviders/RecordProvider.php
typo3/sysext/backend/Classes/Controller/AbstractFormEngineAjaxController.php
typo3/sysext/backend/Classes/Controller/ContextMenuController.php
typo3/sysext/backend/Classes/Controller/FormFlexAjaxController.php
typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php
typo3/sysext/backend/Classes/Form/AbstractNode.php
typo3/sysext/backend/Classes/Form/Element/FileInfoElement.php
typo3/sysext/backend/Classes/Form/Element/ImageManipulationElement.php
typo3/sysext/backend/Classes/Form/FieldControl/AddRecord.php
typo3/sysext/backend/Classes/Form/FieldControl/EditPopup.php
typo3/sysext/backend/Classes/Form/FieldControl/ElementBrowser.php
typo3/sysext/backend/Classes/Form/FieldControl/InsertClipboard.php
typo3/sysext/backend/Classes/Form/FieldControl/LinkPopup.php
typo3/sysext/backend/Classes/Form/FieldControl/ListModule.php
typo3/sysext/backend/Classes/Form/FieldControl/ResetSelection.php
typo3/sysext/backend/Classes/Form/FieldControl/TableWizard.php
typo3/sysext/backend/Classes/Form/FieldWizard/DefaultLanguageDifferences.php
typo3/sysext/backend/Classes/Form/FieldWizard/FileThumbnails.php
typo3/sysext/backend/Classes/Form/FieldWizard/FileTypeList.php
typo3/sysext/backend/Classes/Form/FieldWizard/FileUpload.php
typo3/sysext/backend/Classes/Form/FieldWizard/LocalizationStateSelector.php
typo3/sysext/backend/Classes/Form/FieldWizard/OtherLanguageContent.php
typo3/sysext/backend/Classes/Form/FieldWizard/RecordsOverview.php
typo3/sysext/backend/Classes/Form/FieldWizard/SelectIcons.php
typo3/sysext/backend/Classes/Form/FieldWizard/TableList.php
typo3/sysext/backend/Classes/Form/FormDataProvider/EvaluateDisplayConditions.php
typo3/sysext/backend/Classes/Form/FormDataProvider/InlineOverrideChildTca.php
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaText.php
typo3/sysext/backend/Classes/Form/NodeExpansion/FieldControl.php
typo3/sysext/backend/Classes/Form/NodeExpansion/FieldInformation.php
typo3/sysext/backend/Classes/Form/NodeExpansion/FieldWizard.php
typo3/sysext/backend/Classes/Form/Wizard/ImageManipulationWizard.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/backend/Tests/Functional/Controller/Page/LocalizationControllerTest.php
typo3/sysext/backend/Tests/Unit/Form/Container/ListOfFieldsContainerTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/EvaluateDisplayConditionsTest.php
typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaTextTest.php
typo3/sysext/beuser/Classes/ContextMenu/ItemProvider.php
typo3/sysext/core/Classes/Configuration/FlexForm/FlexFormTools.php
typo3/sysext/core/Classes/Configuration/Richtext.php
typo3/sysext/core/Classes/Controller/ErrorPageController.php
typo3/sysext/core/Classes/Crypto/Random.php
typo3/sysext/core/Classes/Database/Connection.php
typo3/sysext/core/Classes/Database/ConnectionPool.php
typo3/sysext/core/Classes/Database/Platform/PlatformInformation.php
typo3/sysext/core/Classes/Database/Query/BulkInsertQuery.php
typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php
typo3/sysext/core/Classes/Database/Query/Expression/ExpressionBuilder.php
typo3/sysext/core/Classes/Database/Query/QueryBuilder.php
typo3/sysext/core/Classes/Database/Query/QueryHelper.php
typo3/sysext/core/Classes/Database/Query/Restriction/AbstractRestrictionContainer.php
typo3/sysext/core/Classes/Database/Query/Restriction/BackendWorkspaceRestriction.php
typo3/sysext/core/Classes/Database/Query/Restriction/DefaultRestrictionContainer.php
typo3/sysext/core/Classes/Database/Query/Restriction/DeletedRestriction.php
typo3/sysext/core/Classes/Database/Query/Restriction/EndTimeRestriction.php
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendGroupRestriction.php
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendRestrictionContainer.php
typo3/sysext/core/Classes/Database/Query/Restriction/FrontendWorkspaceRestriction.php
typo3/sysext/core/Classes/Database/Query/Restriction/HiddenRestriction.php
typo3/sysext/core/Classes/Database/Query/Restriction/QueryRestrictionContainerInterface.php
typo3/sysext/core/Classes/Database/Query/Restriction/QueryRestrictionInterface.php
typo3/sysext/core/Classes/Database/Query/Restriction/RootLevelRestriction.php
typo3/sysext/core/Classes/Database/Query/Restriction/StartTimeRestriction.php
typo3/sysext/core/Classes/Database/Schema/Comparator.php
typo3/sysext/core/Classes/Database/Schema/ConnectionMigrator.php
typo3/sysext/core/Classes/Database/Schema/EventListener/SchemaAlterTableListener.php
typo3/sysext/core/Classes/Database/Schema/EventListener/SchemaColumnDefinitionListener.php
typo3/sysext/core/Classes/Database/Schema/EventListener/SchemaIndexDefinitionListener.php
typo3/sysext/core/Classes/Database/Schema/Exception/StatementException.php
typo3/sysext/core/Classes/Database/Schema/Exception/UnexpectedSignalReturnValueTypeException.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateDefinitionItem.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/AbstractCreateStatement.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/CreateColumnDefinitionItem.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/CreateDefinition.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/CreateForeignKeyDefinitionItem.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/CreateIndexDefinitionItem.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/CreateTableClause.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/CreateTableStatement.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/AbstractDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BigIntDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BinaryDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BitDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/BlobDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/CharDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DateDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DateTimeDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DecimalDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/DoubleDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/EnumDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/FloatDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/IntegerDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/JsonDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/LongBlobDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/LongTextDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/MediumBlobDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/MediumIntDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/MediumTextDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/NumericDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/RealDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/SetDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/SmallIntDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TextDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TimeDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TimestampDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TinyBlobDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TinyIntDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/TinyTextDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/VarBinaryDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/VarCharDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/DataType/YearDataType.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/Identifier.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/IndexColumnName.php
typo3/sysext/core/Classes/Database/Schema/Parser/AST/ReferenceDefinition.php
typo3/sysext/core/Classes/Database/Schema/Parser/Lexer.php
typo3/sysext/core/Classes/Database/Schema/Parser/Parser.php
typo3/sysext/core/Classes/Database/Schema/Parser/TableBuilder.php
typo3/sysext/core/Classes/Database/Schema/SchemaMigrator.php
typo3/sysext/core/Classes/Database/Schema/SqlReader.php
typo3/sysext/core/Classes/Database/Schema/TableDiff.php
typo3/sysext/core/Classes/Database/Schema/Types/EnumType.php
typo3/sysext/core/Classes/Database/Schema/Types/SetType.php
typo3/sysext/core/Classes/Imaging/ImageManipulation/Area.php
typo3/sysext/core/Classes/Imaging/ImageManipulation/CropVariant.php
typo3/sysext/core/Classes/Imaging/ImageManipulation/CropVariantCollection.php
typo3/sysext/core/Classes/Imaging/ImageManipulation/InvalidConfigurationException.php
typo3/sysext/core/Classes/Imaging/ImageManipulation/Ratio.php
typo3/sysext/core/Classes/LinkHandling/EmailLinkHandler.php
typo3/sysext/core/Classes/LinkHandling/FileLinkHandler.php
typo3/sysext/core/Classes/LinkHandling/FolderLinkHandler.php
typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php
typo3/sysext/core/Classes/LinkHandling/LinkHandlingInterface.php
typo3/sysext/core/Classes/LinkHandling/LinkService.php
typo3/sysext/core/Classes/LinkHandling/PageLinkHandler.php
typo3/sysext/core/Classes/LinkHandling/RecordLinkHandler.php
typo3/sysext/core/Classes/Messaging/AbstractMessage.php
typo3/sysext/core/Classes/Messaging/FlashMessage.php
typo3/sysext/core/Classes/Messaging/FlashMessageRendererResolver.php
typo3/sysext/core/Classes/Messaging/FlashMessageService.php
typo3/sysext/core/Classes/Messaging/Renderer/BootstrapRenderer.php
typo3/sysext/core/Classes/Messaging/Renderer/FlashMessageRendererInterface.php
typo3/sysext/core/Classes/Messaging/Renderer/ListRenderer.php
typo3/sysext/core/Classes/Messaging/Renderer/PlaintextRenderer.php
typo3/sysext/core/Classes/Migrations/TcaMigration.php
typo3/sysext/core/Classes/Preparations/TcaPreparation.php
typo3/sysext/core/Classes/Session/Backend/DatabaseSessionBackend.php
typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotCreatedException.php
typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotFoundException.php
typo3/sysext/core/Classes/Session/Backend/Exception/SessionNotUpdatedException.php
typo3/sysext/core/Classes/Session/Backend/RedisSessionBackend.php
typo3/sysext/core/Classes/Session/Backend/SessionBackendInterface.php
typo3/sysext/core/Classes/Session/SessionManager.php
typo3/sysext/core/Classes/TypoScript/TypoScriptService.php
typo3/sysext/core/Classes/Utility/GeneralUtility.php
typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/Fixtures/HookFixture.php
typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/GetUniqueTest.php
typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/HookTest.php
typo3/sysext/core/Tests/Functional/DataHandling/DataHandler/SpecialLanguagesTest.php
typo3/sysext/core/Tests/Functional/DataHandling/Regular/CheckValueTestForCheckboxes.php
typo3/sysext/core/Tests/Functional/Database/Query/Expression/ExpressionBuilderTest.php
typo3/sysext/core/Tests/Functional/Database/Schema/SchemaMigratorTest.php
typo3/sysext/core/Tests/Functional/Session/Backend/DatabaseSessionBackendTest.php
typo3/sysext/core/Tests/Functional/Session/Backend/RedisSessionBackendTest.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPostProcessHookReturnArray.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPostProcessHookReturnEmptyArray.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPostProcessHookReturnString.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPostProcessHookThrowException.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPreProcessHookReturnArray.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPreProcessHookReturnEmptyArray.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPreProcessHookReturnString.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureIdentifierPreProcessHookThrowException.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureParsePostProcessHookReturnArray.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureParsePostProcessHookReturnString.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureParsePostProcessHookThrowException.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureParsePreProcessHookReturnEmptyString.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureParsePreProcessHookReturnObject.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureParsePreProcessHookReturnString.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/Fixtures/DataStructureParsePreProcessHookThrowException.php
typo3/sysext/core/Tests/Unit/Configuration/FlexForm/FlexFormToolsTest.php
typo3/sysext/core/Tests/Unit/Configuration/Loader/YamlFileLoaderTest.php
typo3/sysext/core/Tests/Unit/Configuration/RichtextTest.php
typo3/sysext/core/Tests/Unit/Crypto/RandomTest.php
typo3/sysext/core/Tests/Unit/Database/ConnectionPoolTest.php
typo3/sysext/core/Tests/Unit/Database/ConnectionTest.php
typo3/sysext/core/Tests/Unit/Database/Platform/PlatformInformationTest.php
typo3/sysext/core/Tests/Unit/Database/Query/BulkInsertTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Expression/ExpressionBuilderTest.php
typo3/sysext/core/Tests/Unit/Database/Query/QueryBuilderTest.php
typo3/sysext/core/Tests/Unit/Database/Query/QueryHelperTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/AbstractRestrictionTestCase.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/BackendWorkspaceRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/DefaultRestrictionContainerTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/DeletedRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/EndTimeRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendGroupRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendRestrictionContainerTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/FrontendWorkspaceRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/HiddenRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/RootLevelRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Query/Restriction/StartTimeRestrictionTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/ConnectionMigratorTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/EventListener/SchemaColumnDefinitionListenerTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/AbstractDataTypeBaseTestCase.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/ColumnDefinitionAttributesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/ColumnDefinitionItemTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/CreateTableFragmentTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypeAttributes/CharacterTypeAttributesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypeAttributes/EnumerationTypeAttributesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypeAttributes/NumericTypeAttributesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/BinaryDataTypeTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/BitDataTypeTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/BlobTypesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/CharDataTypeTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/DateTimeTypesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/EnumDataTypeTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/FixedPointTypesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/FloatingPointTypesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/IntegerTypesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/JsonDataTypeTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/SetDataTypeTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/DataTypes/TextTypesTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/ForeignKeyDefinitionTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/IndexDefinitionTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/ReferenceDefinitionTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableBuilderTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Parser/TableOptionsTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/SqlReaderTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Types/EnumTypeTest.php
typo3/sysext/core/Tests/Unit/Database/Schema/Types/SetTypeTest.php
typo3/sysext/core/Tests/Unit/Error/AbstractExceptionHandlerTest.php
typo3/sysext/core/Tests/Unit/Http/MessageTest.php
typo3/sysext/core/Tests/Unit/Http/RequestTest.php
typo3/sysext/core/Tests/Unit/Http/ResponseTest.php
typo3/sysext/core/Tests/Unit/Http/StreamTest.php
typo3/sysext/core/Tests/Unit/Http/UploadedFileTest.php
typo3/sysext/core/Tests/Unit/Http/UriTest.php
typo3/sysext/core/Tests/Unit/Imaging/GraphicalFunctionsTest.php
typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/AreaTest.php
typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/CropVariantCollectionTest.php
typo3/sysext/core/Tests/Unit/Imaging/ImageManipulation/CropVariantTest.php
typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest.php
typo3/sysext/core/Tests/Unit/Resource/ResourceCompressorTest/Fixtures/TestableResourceCompressor.php
typo3/sysext/core/Tests/Unit/Session/Backend/DatabaseSessionBackendTest.php
typo3/sysext/core/Tests/Unit/Session/Backend/RedisSessionBackendTest.php
typo3/sysext/core/Tests/Unit/Session/SessionManagerTest.php
typo3/sysext/core/Tests/Unit/TimeTracker/TimeTrackerTest.php
typo3/sysext/core/Tests/Unit/Utility/MathUtilityTest.php
typo3/sysext/extbase/Classes/Mvc/Web/CacheHashEnforcer.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Controller/ContentController.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Model/TtContent.php
typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/Domain/Repository/TtContentRepository.php
typo3/sysext/extbase/Tests/Functional/Persistence/TranslatedContentTest.php
typo3/sysext/extbase/Tests/Unit/Mvc/Web/CacheHashEnforcerTest.php
typo3/sysext/extensionmanager/Classes/ViewHelpers/Format/JsonEncodeViewHelper.php
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileDragProvider.php
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileStorageProvider.php
typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FilemountsProvider.php
typo3/sysext/fluid/Classes/Core/Widget/AbstractWidgetController.php
typo3/sysext/fluid/Classes/ViewHelpers/Debug/RenderViewHelper.php
typo3/sysext/fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php
typo3/sysext/form/Classes/Controller/AbstractBackendController.php
typo3/sysext/form/Classes/Controller/FormEditorController.php
typo3/sysext/form/Classes/Controller/FormFrontendController.php
typo3/sysext/form/Classes/Controller/FormManagerController.php
typo3/sysext/form/Classes/Domain/Configuration/ConfigurationService.php
typo3/sysext/form/Classes/Domain/Configuration/Exception/PrototypeNotFoundException.php
typo3/sysext/form/Classes/Domain/Exception.php
typo3/sysext/form/Classes/Domain/Exception/IdentifierNotValidException.php
typo3/sysext/form/Classes/Domain/Exception/RenderingException.php
typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotFoundException.php
typo3/sysext/form/Classes/Domain/Exception/TypeDefinitionNotValidException.php
typo3/sysext/form/Classes/Domain/Exception/UnknownCompositRenderableException.php
typo3/sysext/form/Classes/Domain/Factory/AbstractFormFactory.php
typo3/sysext/form/Classes/Domain/Factory/ArrayFormFactory.php
typo3/sysext/form/Classes/Domain/Factory/FormFactoryInterface.php
typo3/sysext/form/Classes/Domain/Finishers/AbstractFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/ClosureFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/ConfirmationFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/DeleteUploadsFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/EmailFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/Exception/FinisherException.php
typo3/sysext/form/Classes/Domain/Finishers/FinisherContext.php
typo3/sysext/form/Classes/Domain/Finishers/FinisherInterface.php
typo3/sysext/form/Classes/Domain/Finishers/FinisherVariableProvider.php
typo3/sysext/form/Classes/Domain/Finishers/FlashMessageFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/RedirectFinisher.php
typo3/sysext/form/Classes/Domain/Finishers/SaveToDatabaseFinisher.php
typo3/sysext/form/Classes/Domain/Model/Exception.php
typo3/sysext/form/Classes/Domain/Model/Exception/DuplicateFormElementException.php
typo3/sysext/form/Classes/Domain/Model/Exception/FinisherPresetNotFoundException.php
typo3/sysext/form/Classes/Domain/Model/Exception/FormDefinitionConsistencyException.php
typo3/sysext/form/Classes/Domain/Model/Exception/ValidatorPresetNotFoundException.php
typo3/sysext/form/Classes/Domain/Model/FormDefinition.php
typo3/sysext/form/Classes/Domain/Model/FormElements/AbstractFormElement.php
typo3/sysext/form/Classes/Domain/Model/FormElements/AbstractSection.php
typo3/sysext/form/Classes/Domain/Model/FormElements/AdvancedPassword.php
typo3/sysext/form/Classes/Domain/Model/FormElements/DatePicker.php
typo3/sysext/form/Classes/Domain/Model/FormElements/FileUpload.php
typo3/sysext/form/Classes/Domain/Model/FormElements/FormElementInterface.php
typo3/sysext/form/Classes/Domain/Model/FormElements/GenericFormElement.php
typo3/sysext/form/Classes/Domain/Model/FormElements/GridContainer.php
typo3/sysext/form/Classes/Domain/Model/FormElements/GridContainerInterface.php
typo3/sysext/form/Classes/Domain/Model/FormElements/GridRow.php
typo3/sysext/form/Classes/Domain/Model/FormElements/GridRowInterface.php
typo3/sysext/form/Classes/Domain/Model/FormElements/Page.php
typo3/sysext/form/Classes/Domain/Model/FormElements/Section.php
typo3/sysext/form/Classes/Domain/Model/FormElements/UnknownFormElement.php
typo3/sysext/form/Classes/Domain/Model/Renderable/AbstractCompositeRenderable.php
typo3/sysext/form/Classes/Domain/Model/Renderable/AbstractRenderable.php
typo3/sysext/form/Classes/Domain/Model/Renderable/CompositeRenderableInterface.php
typo3/sysext/form/Classes/Domain/Model/Renderable/RenderableInterface.php
typo3/sysext/form/Classes/Domain/Model/Renderable/RootRenderableInterface.php
typo3/sysext/form/Classes/Domain/Renderer/AbstractElementRenderer.php
typo3/sysext/form/Classes/Domain/Renderer/FluidFormRenderer.php
typo3/sysext/form/Classes/Domain/Renderer/RendererInterface.php
typo3/sysext/form/Classes/Domain/Runtime/Exception/PropertyMappingException.php
typo3/sysext/form/Classes/Domain/Runtime/FormRuntime.php
typo3/sysext/form/Classes/Domain/Runtime/FormState.php
typo3/sysext/form/Classes/Exception.php
typo3/sysext/form/Classes/Hooks/DataStructureIdentifierHook.php
typo3/sysext/form/Classes/Hooks/FormPagePreviewRenderer.php
typo3/sysext/form/Classes/Mvc/Configuration/ConfigurationManager.php
typo3/sysext/form/Classes/Mvc/Configuration/ConfigurationManagerInterface.php
typo3/sysext/form/Classes/Mvc/Configuration/Exception.php
typo3/sysext/form/Classes/Mvc/Configuration/Exception/CycleInheritancesException.php
typo3/sysext/form/Classes/Mvc/Configuration/Exception/ExtensionNameRequiredException.php
typo3/sysext/form/Classes/Mvc/Configuration/InheritancesResolverService.php
typo3/sysext/form/Classes/Mvc/Configuration/TypoScriptService.php
typo3/sysext/form/Classes/Mvc/Configuration/YamlSource.php
typo3/sysext/form/Classes/Mvc/Persistence/Exception.php
typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniqueIdentifierException.php
typo3/sysext/form/Classes/Mvc/Persistence/Exception/NoUniquePersistenceIdentifierException.php
typo3/sysext/form/Classes/Mvc/Persistence/Exception/PersistenceManagerException.php
typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManager.php
typo3/sysext/form/Classes/Mvc/Persistence/FormPersistenceManagerInterface.php
typo3/sysext/form/Classes/Mvc/ProcessingRule.php
typo3/sysext/form/Classes/Mvc/Property/TypeConverter/FormDefinitionArrayConverter.php
typo3/sysext/form/Classes/Mvc/Property/TypeConverter/UploadedFileReferenceConverter.php
typo3/sysext/form/Classes/Mvc/Validation/CountValidator.php
typo3/sysext/form/Classes/Mvc/Validation/EmptyValidator.php
typo3/sysext/form/Classes/Mvc/Validation/Exception/InvalidValidationOptionsException.php
typo3/sysext/form/Classes/Mvc/Validation/MimeTypeValidator.php
typo3/sysext/form/Classes/Service/TranslationService.php
typo3/sysext/form/Classes/Type/FormDefinitionArray.php
typo3/sysext/form/Classes/ViewHelpers/Be/RenderContentElementPreviewViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/Form/CheckboxViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/Form/DatePickerViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/Form/TimePickerViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/Form/UploadedResourceViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/FormViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/GridColumnClassAutoConfigurationViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/PlainTextMailViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/RenderAllFormValuesViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/RenderRenderableViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/RenderViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/TranslateElementErrorViewHelper.php
typo3/sysext/form/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php
typo3/sysext/form/Tests/Unit/Domain/Finishers/AbstractFinisherTest.php
typo3/sysext/form/Tests/Unit/Domain/Finishers/ClosureFinisherTest.php
typo3/sysext/form/Tests/Unit/Mvc/Property/PropertyMappingConfigurationTest.php
typo3/sysext/form/Tests/Unit/ViewHelpers/Form/DatePickerViewHelperTest.php
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php
typo3/sysext/frontend/Classes/Imaging/GifBuilder.php
typo3/sysext/frontend/Classes/Typolink/AbstractTypolinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/DatabaseRecordLinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/EmailLinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/ExternalUrlLinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/FileOrFolderLinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/LegacyLinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php
typo3/sysext/frontend/Classes/Typolink/UnableToLinkException.php
typo3/sysext/frontend/Tests/Functional/Rendering/LocalizedContentRenderingTest.php
typo3/sysext/frontend/Tests/Unit/Authentication/FrontendUserAuthenticationTest.php
typo3/sysext/impexp/Classes/ContextMenu/ItemProvider.php
typo3/sysext/install/Classes/Controller/Action/Ajax/FilterManager.php
typo3/sysext/install/Classes/Controller/Action/Ajax/RemoveIgnoredItems.php
typo3/sysext/install/Classes/Controller/Action/Ajax/SaveIgnoredItems.php
typo3/sysext/install/Classes/Updates/DatabaseRowsUpdateWizard.php
typo3/sysext/install/Classes/Updates/FileReferenceUpdate.php
typo3/sysext/install/Classes/Updates/MigrateFeSessionDataUpdate.php
typo3/sysext/install/Classes/Updates/RowUpdater/ImageCropUpdater.php
typo3/sysext/install/Classes/Updates/RowUpdater/L10nModeUpdater.php
typo3/sysext/install/Classes/Updates/RowUpdater/RowUpdaterInterface.php
typo3/sysext/install/Classes/Updates/RowUpdater/RteLinkSyntaxUpdater.php
typo3/sysext/install/Classes/Updates/SectionFrameToFrameClassUpdate.php
typo3/sysext/install/Classes/UpgradeAnalysis/DocumentationFile.php
typo3/sysext/install/Tests/Unit/UpgradeAnalysis/DocumentationFileTest.php
typo3/sysext/lang/Classes/Service/TranslationService.php
typo3/sysext/lowlevel/Classes/Command/CleanFlexFormsCommand.php
typo3/sysext/lowlevel/Classes/Command/DeletedRecordsCommand.php
typo3/sysext/lowlevel/Classes/Command/FilesWithMultipleReferencesCommand.php
typo3/sysext/lowlevel/Classes/Command/LostFilesCommand.php
typo3/sysext/lowlevel/Classes/Command/MissingFilesCommand.php
typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php
typo3/sysext/lowlevel/Classes/Command/OrphanRecordsCommand.php
typo3/sysext/lowlevel/Classes/Command/RteImagesCommand.php
typo3/sysext/lowlevel/Classes/Command/WorkspaceVersionRecordsCommand.php
typo3/sysext/recordlist/Classes/Browser/RecordBrowser.php
typo3/sysext/recordlist/Classes/LinkHandler/RecordLinkHandler.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php
typo3/sysext/recordlist/Classes/Tree/View/RecordBrowserPageTreeView.php
typo3/sysext/rte_ckeditor/Classes/Controller/BrowseLinksController.php
typo3/sysext/rte_ckeditor/Classes/Form/Element/RichTextElement.php
typo3/sysext/saltedpasswords/Classes/Utility/ExtensionManagerConfigurationUtility.php
typo3/sysext/sv/Tests/Functional/AuthenticationServiceTest.php
typo3/sysext/sv/Tests/Unit/Report/ServicesListReportTest.php

index 3573867..09996f5 100644 (file)
@@ -25,8 +25,8 @@
  * inside the TYPO3 directory. Warning: This may take up to 10 minutes.
  *
  * For more information read:
- *      http://www.php-fig.org/psr/psr-2/
- *      http://cs.sensiolabs.org
+ *      https://www.php-fig.org/psr/psr-2/
+ *      https://cs.sensiolabs.org
  */
 if (PHP_SAPI !== 'cli') {
     die('This script supports command line usage only. Please check your command.');
@@ -82,5 +82,8 @@ return PhpCsFixer\Config::create()
         'phpdoc_types' => true,
         'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
         'return_type_declaration' => ['space_before' => 'none'],
+        'cast_spaces' => ['space' => 'none'],
+        'declare_equal_normalize' => ['space' => 'single'],
+        'dir_constant' => true,
     ])
     ->setFinder($finder);
index fcbac85..c5932e8 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env php
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 
 /*
  * This file is part of the TYPO3 CMS project.
index b72da3e..517782c 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\ContextMenu;
 
 /*
index 9609b84..f360ff1 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\ContextMenu\ItemProviders;
 
 /*
@@ -503,7 +503,7 @@ class RecordProvider extends AbstractProvider
     protected function isDeletionDisabledInTS(): bool
     {
         $disableDeleteTS = $this->backendUser->getTSConfig('options.disableDelete');
-        $disableDelete = (bool) trim($disableDeleteTS['properties'][$this->table] ?? (string)$disableDeleteTS['value']);
+        $disableDelete = (bool)trim($disableDeleteTS['properties'][$this->table] ?? (string)$disableDeleteTS['value']);
         return $disableDelete;
     }
 
index 6db48f3..f4bcc09 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form;
 
 /*
index 0f197ef..1c46d40 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FieldControl;
 
 /*
index 41e32eb..b786cd1 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FieldControl;
 
 /*
index d327a27..5375a18 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FieldControl;
 
 /*
index e7f560d..aa87ae5 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FieldControl;
 
 /*
index ec91f12..8b322fa 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FieldWizard;
 
 /*
index 18d0c61..ee2a49e 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FieldWizard;
 
 /*
index 7d26d22..32b6641 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FieldWizard;
 
 /*
index 8818e27..c2c95eb 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Backend\Form\FormDataProvider;
 
 /*
index 05e4986..55b05d2 100644 (file)
@@ -1603,7 +1603,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                 }
                 // Delete
                 $disableDeleteTS = $this->getBackendUser()->getTSConfig('options.disableDelete');
-                $disableDelete = (bool) trim(isset($disableDeleteTS['properties']['tt_content']) ? $disableDeleteTS['properties']['tt_content'] : $disableDeleteTS['value']);
+                $disableDelete = (bool)trim(isset($disableDeleteTS['properties']['tt_content']) ? $disableDeleteTS['properties']['tt_content'] : $disableDeleteTS['value']);
                 if (!$disableDelete) {
                     $params = '&cmd[tt_content][' . $row['uid'] . '][delete]=1';
                     $confirm = $this->getLanguageService()->getLL('deleteWarning')
index 98cdcaa..229711e 100644 (file)
@@ -440,7 +440,7 @@ class LocalizationControllerTest extends \TYPO3\TestingFramework\Core\Functional
         $recordLocalizeSummaryResponse = $this->subject->getRecordLocalizeSummary($request, new Response());
 
         // Reduce the fetched record summary to list of uids
-        if ($recordLocalizeSummary = json_decode((string) $recordLocalizeSummaryResponse->getBody(), true)) {
+        if ($recordLocalizeSummary = json_decode((string)$recordLocalizeSummaryResponse->getBody(), true)) {
             foreach ($recordLocalizeSummary as &$record) {
                 if (is_array($record)) {
                     $record = array_intersect_key($record, ['uid' => '']);
index 34c734d..dee30df 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Beuser\ContextMenu;
 
 /*
index 1e8d636..e01b7f7 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Configuration;
 
 /*
index 909b1d2..189a99f 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Crypto;
 
 /*
index 783740a..9757ff9 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database;
 
 /*
index 83b0be1..5b1adc2 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database;
 
 /*
index 45db0f8..b87ec08 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database\Query;
 
 /*
index 069a5a5..4fe67cb 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database\Query;
 
 /*
index f21f255..cdaa44c 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database\Schema;
 
 /*
index 6720a8b..00fb9b0 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 
 namespace TYPO3\CMS\Core\Database\Schema\Parser;
 
index a460955..3986fa2 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 
 namespace TYPO3\CMS\Core\Database\Schema\Parser;
 
index 5df5f89..c3a5b1b 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database\Schema;
 
 /*
index 9687292..42fc3a5 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database\Schema;
 
 /*
index 1f42cdd..deb0242 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database\Schema\Types;
 
 /*
index 1688d3a..5ce7690 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Database\Schema\Types;
 
 /*
index df6e16c..6203182 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Imaging\ImageManipulation;
 
 /*
index 45e05a2..70c92bd 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Imaging\ImageManipulation;
 
 /*
index e111d7a..b2799eb 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\LinkHandling;
 
 /*
index 2984d3d..ccc18e9 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\LinkHandling;
 
 /*
index a7ee98d..93ee385 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\LinkHandling;
 
 /*
index c4dccb6..e06f513 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Messaging;
 
 /*
index 1fd8152..2e473cc 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Messaging;
 
 /*
index 8c763c6..fb336d4 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Migrations;
 
 /*
index 9f1aa3b..3c29ead 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Preparations;
 
 /*
index dd27f32..2586f36 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Session;
 
 /*
index a9c5c25..754cc2a 100644 (file)
@@ -1897,7 +1897,7 @@ class GeneralUtility
                                 $current[$tagName] = (int)$current[$tagName];
                                 break;
                             case 'double':
-                                $current[$tagName] = (double) $current[$tagName];
+                                $current[$tagName] = (double)$current[$tagName];
                                 break;
                             case 'boolean':
                                 $current[$tagName] = (bool)$current[$tagName];
index fe150e8..1e55a72 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Configuration;
 
 /*
index 2835453..60e330a 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Crypto;
 
 /*
index 793b1e7..a5c1bd5 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Database;
 
 /*
index abe8df2..84db4c2 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Database;
 
 /*
index 44998b3..57b3afc 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Database\Query;
 
 /*
index c92f296..88efeeb 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Database\Query;
 
 /*
index eb80528..75b1f9f 100644 (file)
@@ -194,7 +194,7 @@ class MessageTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'    => [1],
             'float'  => [1.1],
             'array'  => [['foo' => ['bar']]],
-            'object' => [(object) ['foo' => 'bar']],
+            'object' => [(object)['foo' => 'bar']],
         ];
     }
 
@@ -219,7 +219,7 @@ class MessageTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'false'  => [false],
             'int'    => [1],
             'float'  => [1.1],
-            'object' => [(object) ['foo' => 'bar']],
+            'object' => [(object)['foo' => 'bar']],
         ];
     }
 
index 91b02c9..a04c912 100644 (file)
@@ -80,7 +80,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $request2 = $request->withUri(new Uri('/baz/bat?foo=bar'));
         $this->assertNotSame($this->request, $request2);
         $this->assertNotSame($request, $request2);
-        $this->assertEquals('/baz/bat?foo=bar', (string) $request2->getUri());
+        $this->assertEquals('/baz/bat?foo=bar', (string)$request2->getUri());
     }
 
     /**
@@ -121,7 +121,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'      => [1],
             'float'    => [1.1],
             'array'    => [['http://example.com']],
-            'stdClass' => [(object) ['href' => 'http://example.com']],
+            'stdClass' => [(object)['href' => 'http://example.com']],
         ];
     }
 
@@ -147,7 +147,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'        => [1],
             'float'      => [1.1],
             'array'      => [['POST']],
-            'stdClass'   => [(object) ['method' => 'POST']],
+            'stdClass'   => [(object)['method' => 'POST']],
         ];
     }
 
@@ -183,7 +183,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'      => [1],
             'float'    => [1.1],
             'array'    => [['BODY']],
-            'stdClass' => [(object) ['body' => 'BODY']],
+            'stdClass' => [(object)['body' => 'BODY']],
         ];
     }
 
@@ -209,7 +209,7 @@ class RequestTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'x-invalid-true'   => true,
             'x-invalid-false'  => false,
             'x-invalid-int'    => 1,
-            'x-invalid-object' => (object) ['INVALID'],
+            'x-invalid-object' => (object)['INVALID'],
             'x-valid-string'   => 'VALID',
             'x-valid-array'    => ['VALID'],
         ];
index b632c5e..7f6199a 100644 (file)
@@ -64,7 +64,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'bool'     => [true],
             'string'   => ['foo'],
             'array'    => [[200]],
-            'object'   => [(object) [200]],
+            'object'   => [(object)[200]],
         ];
     }
 
@@ -133,7 +133,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'      => [100.1],
             'bad-string' => ['Two hundred'],
             'array'      => [[200]],
-            'object'     => [(object) ['statusCode' => 200]],
+            'object'     => [(object)['statusCode' => 200]],
             'too-small'  => [1],
             'too-big'    => [600],
         ];
@@ -161,7 +161,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'      => [1],
             'float'    => [1.1],
             'array'    => [['BODY']],
-            'stdClass' => [(object) ['body' => 'BODY']],
+            'stdClass' => [(object)['body' => 'BODY']],
         ];
     }
 
@@ -187,7 +187,7 @@ class ResponseTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'x-invalid-true'   => true,
             'x-invalid-false'  => false,
             'x-invalid-int'    => 1,
-            'x-invalid-object' => (object) ['INVALID'],
+            'x-invalid-object' => (object)['INVALID'],
             'x-valid-string'   => 'VALID',
             'x-valid-array'    => ['VALID'],
         ];
index 733150a..ddd194c 100644 (file)
@@ -79,7 +79,7 @@ class StreamTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     {
         $message = 'foo bar';
         $this->stream->write($message);
-        $this->assertEquals($message, (string) $this->stream);
+        $this->assertEquals($message, (string)$this->stream);
     }
 
     /**
@@ -428,7 +428,7 @@ class StreamTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'                 => [1],
             'float'               => [1.1],
             'array'               => [[fopen($fileName, 'r+')]],
-            'object'              => [(object) ['resource' => fopen($fileName, 'r+')]],
+            'object'              => [(object)['resource' => fopen($fileName, 'r+')]],
         ];
     }
 
@@ -484,7 +484,7 @@ class StreamTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         fwrite($resource, 'FooBar');
 
         $this->stream->rewind();
-        $test = (string) $this->stream;
+        $test = (string)$this->stream;
         $this->assertEquals('FooBar', $test);
     }
 
index bf5794b..dd9cf6c 100644 (file)
@@ -56,7 +56,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'invalid-path' => [ ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) ? '[:]' : 'foo' . chr(0) ],
              */
             'array'  => [['filename']],
-            'object' => [(object) ['filename']],
+            'object' => [(object)['filename']],
         ];
     }
 
@@ -82,7 +82,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'  => [1.1],
             'string' => ['1'],
             'array'  => [[1]],
-            'object' => [(object) [1]],
+            'object' => [(object)[1]],
         ];
     }
 
@@ -109,7 +109,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'    => [1.1],
             'string'   => ['1'],
             'array'    => [[1]],
-            'object'   => [(object) [1]],
+            'object'   => [(object)[1]],
             'negative' => [-1],
             'too-big'  => [9],
         ];
@@ -137,7 +137,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'    => [1],
             'float'  => [1.1],
             'array'  => [['string']],
-            'object' => [(object) ['string']],
+            'object' => [(object)['string']],
         ];
     }
 
@@ -226,7 +226,7 @@ class UploadedFileTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'float'  => [1.1],
             'empty'  => [''],
             'array'  => [['filename']],
-            'object' => [(object) ['filename']],
+            'object' => [(object)['filename']],
         ];
     }
 
index fb26993..8725676 100644 (file)
@@ -46,7 +46,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     {
         $url = 'https://user:pass@local.example.com:3001/foo?bar=baz#quz';
         $uri = new Uri($url);
-        $this->assertEquals($url, (string) $uri);
+        $this->assertEquals($url, (string)$uri);
     }
 
     /**
@@ -58,7 +58,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withScheme('http');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('http', $new->getScheme());
-        $this->assertEquals('http://user:pass@local.example.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('http://user:pass@local.example.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -70,7 +70,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withUserInfo('matthew');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('matthew', $new->getUserInfo());
-        $this->assertEquals('https://matthew@local.example.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://matthew@local.example.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -82,7 +82,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withUserInfo('matthew', 'zf2');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('matthew:zf2', $new->getUserInfo());
-        $this->assertEquals('https://matthew:zf2@local.example.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://matthew:zf2@local.example.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -94,7 +94,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withHost('framework.zend.com');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('framework.zend.com', $new->getHost());
-        $this->assertEquals('https://user:pass@framework.zend.com:3001/foo?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://user:pass@framework.zend.com:3001/foo?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -106,7 +106,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withPort(null);
         $this->assertEquals(
             'https://user:pass@local.example.com/foo?bar=baz#quz',
-            (string) $new
+            (string)$new
         );
     }
     /**
@@ -132,7 +132,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $this->assertEquals($port, $new->getPort());
         $this->assertEquals(
             sprintf('https://user:pass@local.example.com:%d/foo?bar=baz#quz', $port),
-            (string) $new
+            (string)$new
         );
     }
 
@@ -145,7 +145,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'false'     => [false],
             'string'    => ['string'],
             'array'     => [[3000]],
-            'object'    => [(object) [3000]],
+            'object'    => [(object)[3000]],
         ];
     }
 
@@ -209,7 +209,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withPath('/bar/baz');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('/bar/baz', $new->getPath());
-        $this->assertEquals('https://user:pass@local.example.com:3001/bar/baz?bar=baz#quz', (string) $new);
+        $this->assertEquals('https://user:pass@local.example.com:3001/bar/baz?bar=baz#quz', (string)$new);
     }
 
     /**
@@ -222,7 +222,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'true'     => [true],
             'false'    => [false],
             'array'    => [['/bar/baz']],
-            'object'   => [(object) ['/bar/baz']],
+            'object'   => [(object)['/bar/baz']],
         ];
     }
 
@@ -269,7 +269,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withQuery('baz=bat');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('baz=bat', $new->getQuery());
-        $this->assertEquals('https://user:pass@local.example.com:3001/foo?baz=bat#quz', (string) $new);
+        $this->assertEquals('https://user:pass@local.example.com:3001/foo?baz=bat#quz', (string)$new);
     }
 
     /**
@@ -282,7 +282,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'true'     => [true],
             'false'    => [false],
             'array'    => [['baz=bat']],
-            'object'   => [(object) ['baz=bat']],
+            'object'   => [(object)['baz=bat']],
         ];
     }
 
@@ -318,7 +318,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         $new = $uri->withFragment('qat');
         $this->assertNotSame($uri, $new);
         $this->assertEquals('qat', $new->getFragment());
-        $this->assertEquals('https://user:pass@local.example.com:3001/foo?bar=baz#qat', (string) $new);
+        $this->assertEquals('https://user:pass@local.example.com:3001/foo?bar=baz#qat', (string)$new);
     }
 
     /**
@@ -351,7 +351,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     {
         $url = '/foo/bar?baz=bat';
         $uri = new Uri($url);
-        $this->assertEquals($url, (string) $uri);
+        $this->assertEquals($url, (string)$uri);
     }
 
     /**
@@ -370,7 +370,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     public function stringRepresentationOfAbsoluteUriWithNoPathSetsAnEmptyPath()
     {
         $uri = new Uri('http://example.com');
-        $this->assertEquals('http://example.com', (string) $uri);
+        $this->assertEquals('http://example.com', (string)$uri);
     }
 
     /**
@@ -388,7 +388,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
     public function stringRepresentationOfOriginFormWithNoPathRetainsEmptyPath()
     {
         $uri = new Uri('?foo=bar');
-        $this->assertEquals('?foo=bar', (string) $uri);
+        $this->assertEquals('?foo=bar', (string)$uri);
     }
 
     /**
@@ -403,7 +403,7 @@ class UriTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
             'int'    => [1],
             'float'  => [1.1],
             'array'  => [['http://example.com/']],
-            'object' => [(object) ['uri' => 'http://example.com/']],
+            'object' => [(object)['uri' => 'http://example.com/']],
         ];
     }
 
index fbda54f..ab45d33 100644 (file)
@@ -54,7 +54,7 @@ class GraphicalFunctionsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestC
                     'origH' => 0,
                     'max' => 0,
                     0 => 150,
-                    1 => (float) 120
+                    1 => (float)120
                 ],
             ],
             'Get image scale with a maximum width of 100px' => [
@@ -73,7 +73,7 @@ class GraphicalFunctionsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestC
                     'origH' => 0,
                     'max' => 1,
                     0 => 100,
-                    1 => (float) 80
+                    1 => (float)80
                 ],
             ],
             'Get image scale with a minimum width of 200px' => [
@@ -92,7 +92,7 @@ class GraphicalFunctionsTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestC
                     'origH' => 0,
                     'max' => 0,
                     0 => 200,
-                    1 => (float) 136
+                    1 => (float)136
                 ],
             ],
         ];
index 0fabb6d..9feacc6 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Imaging\ImageManipulation;
 
 /*
index 61f320a..9b45992 100644 (file)
@@ -349,7 +349,7 @@ class ResourceCompressorTest extends BaseTestCase
      */
     public function compressCssFileContentDataProvider()
     {
-        $path = dirname(__FILE__) . '/ResourceCompressorTest/Fixtures/';
+        $path = __DIR__ . '/ResourceCompressorTest/Fixtures/';
         return [
             // File. Tests:
             // - Stripped comments and white-space.
index d4079ca..dbf2a52 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\Session;
 
 /*
index 8d83218..8e0d3ab 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-declare(strict_types=1);
+declare(strict_types = 1);
 namespace TYPO3\CMS\Core\Tests\Unit\TimeTracker;
 
 /*
index fc07e81..3540392 100644 (file)
@@ -166,8 +166,8 @@ class MathUtilityTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
         // testcases for Integer apply for float as well
         $intTestcases = $this->functionCanBeInterpretedAsIntegerValidDataProvider();
         $floatTestcases = [
-            'zero as float' => [(float) 0],
-            'negative float' => [(float) -7.5],
+            'zero as float' => [(float)0],
+            'negative float' => [(float)-7.5],
             'negative float as string with exp #1' => ['-7.5e3'],
             'negative float as string with exp #2' => ['-7.5e03'],
             'negative float as string with exp #3' => ['-7.5e-3'],
index 88b4719..50161d6 100644 (file)
@@ -55,6 +55,6 @@ class JsonEncodeViewHelper extends AbstractViewHelper
      */
     public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
     {
-        return json_encode((array) $renderChildrenClosure());
+        return json_encode((array)$renderChildrenClosure());
     }
 }
index 19c6564..0dd9d11 100644 (file)
@@ -70,9 +70,9 @@ abstract class AbstractWidgetController extends \TYPO3\CMS\Extbase\Mvc\Controlle
             $pluginConfiguration['templateRootPaths'][10] = $pluginConfiguration['templateRootPath'];
         }
         $widgetViewConfiguration = array_merge_recursive(
-            (array) $rootConfiguration,
-            (array) $parentConfiguration,
-            (array) $pluginConfiguration
+            (array)$rootConfiguration,
+            (array)$parentConfiguration,
+            (array)$pluginConfiguration
         );
         $view->getTemplatePaths()->fillFromConfigurationArray($widgetViewConfiguration);
     }
index 1624283..0c2633c 100644 (file)
@@ -61,8 +61,8 @@ class RenderViewHelper extends AbstractViewHelper
     {
         $section = $this->arguments['section'];
         $partial = $this->arguments['partial'];
-        $arguments = (array) $this->arguments['arguments'];
-        $optional = (boolean) $this->arguments['optional'];
+        $arguments = (array)$this->arguments['arguments'];
+        $optional = (boolean)$this->arguments['optional'];
         $contentAs = $this->arguments['contentAs'];
         $tagContent = $this->renderChildren();
 
index 0eec3bb..727b81b 100644 (file)
@@ -113,7 +113,7 @@ class CheckboxViewHelper extends AbstractFormFieldViewHelper
         } elseif ($multiple === true) {
             $nameAttribute .= '[]';
         } elseif ($propertyValue !== null) {
-            $checked = (boolean) $propertyValue === (boolean) $valueAttribute;
+            $checked = (boolean)$propertyValue === (boolean)$valueAttribute;
         }
 
         $this->registerFieldNameForFormTokenGeneration($nameAttribute);