From af2e5c071d4ecce77c4fb551cea18d8ce10861d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20B=C3=BCrk?= <stefan@buerk.tech>
Date: Thu, 25 Aug 2022 11:40:17 +0200
Subject: [PATCH] [TASK] Streamline core php files header

Automatic check of php file header has been silently disabled
somewhere in the past, thus wrong file headers has slipped into
the core. With #98203 this will be ensured again.

To avoid making nightly core ci unhappy this change acts as
pre-patch to streamline the file header issues.

* add missing file headers
* fix invalid file headers
* move file headers to the right place

Resolves: #98204
Related: #98203
Releases: main
Change-Id: I37bf8e08fcab37f05352f2c315f4084b77211ef3
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75550
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Torben Hansen <derhansen@gmail.com>
Tested-by: Benjamin Franzke <bfr@qbus.de>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Torben Hansen <derhansen@gmail.com>
Reviewed-by: Benjamin Franzke <bfr@qbus.de>
---
 .../ModifyInlineElementEnabledControlsEvent.php    |  1 +
 .../Classes/Form/FormDataProvider/TcaLanguage.php  |  4 ++--
 .../Form/FormDataProvider/TcaGroupTest.php         |  4 ++--
 .../Tests/Functional/Module/ModuleDataTest.php     |  2 +-
 .../Functional/Utility/BackendUtilityTest.php      | 13 +++++++++++++
 .../NodeFactory/NodeElements/BarElement.php        | 13 +++++++++++++
 .../NodeFactory/NodeElements/FooElement.php        | 13 +++++++++++++
 .../NodeFactory/NodeResolvers/BarResolver.php      | 13 +++++++++++++
 .../NodeFactory/NodeResolvers/FooResolver.php      | 13 +++++++++++++
 .../NodeResolvers/InvalidNodeResolverClass.php     | 13 +++++++++++++
 .../StandardPreviewRendererResolverTest.php        |  2 +-
 .../Authentication/Mfa/Provider/RecoveryCodes.php  |  4 ++--
 .../Mfa/Provider/RecoveryCodesProvider.php         |  4 ++--
 .../Classes/Authentication/Mfa/Provider/Totp.php   |  4 ++--
 typo3/sysext/core/Classes/Core/RequestId.php       |  8 ++++----
 .../core/Classes/Html/DefaultSanitizerBuilder.php  | 11 +++++++----
 .../core/Classes/Html/I18nSanitizerBuilder.php     | 11 +++++++----
 .../core/Classes/Html/SanitizerBuilderFactory.php  | 11 +++++++----
 .../core/Classes/Html/SanitizerInitiator.php       | 11 +++++++----
 typo3/sysext/core/Resources/Private/Php/cli.php    |  1 +
 .../FileList/FileStorageTreeFilterCest.php         |  4 ++--
 .../FormEngine/ElementsBasicInputTextTableCest.php |  1 +
 .../PageCreationWithDragAndDropCest.php            |  4 ++--
 .../Application/PageTree/PageTreeFilterCest.php    |  4 ++--
 .../Tests/Acceptance/Support/Helper/FileTree.php   |  4 ++--
 .../DataHandling/Slug/SlugHelperUniqueTest.php     |  4 ++--
 ...sionManagementUtilityTcaOverrideRequireTest.php | 13 +++++++++++++
 .../DependencyInjection/TypeConverterPass.php      |  4 ++--
 .../Classes/Property/TypeConverterRegistry.php     |  4 ++--
 .../Validator/RegularExpressionValidatorTest.php   | 13 +++++++++++++
 .../Unit/Property/TypeConverterRegistryTest.php    |  4 ++--
 .../Domain/Repository/ExtensionRepositoryTest.php  | 13 +++++++++++++
 .../Classes/ContentObject/ContentObjectFactory.php |  4 ++--
 .../Classes/DataProcessing/FlexFormProcessor.php   |  4 ++--
 .../Classes/Preview/TextmediaPreviewRenderer.php   |  1 +
 .../Unit/DataProcessing/FlexFormProcessorTest.php  |  4 ++--
 .../RenderPreviewExportPageAndRecords.php          | 13 +++++++++++++
 ...nderPreviewExportPageAndRecordsWithSoftRefs.php | 13 +++++++++++++
 .../ArrayAssertions/RenderPreviewExportRecords.php | 13 +++++++++++++
 .../ArrayAssertions/RenderPreviewExportTable.php   | 13 +++++++++++++
 .../RenderPreviewImportPageAndRecords.php          | 13 +++++++++++++
 .../RenderPreviewImportPageAndRecordsByUpdate.php  | 13 +++++++++++++
 ...PreviewImportPageAndRecordsByUpdateWithDiff.php | 13 +++++++++++++
 .../RenderPreviewImportPageAndRecordsWithDiff.php  | 13 +++++++++++++
 ...nderPreviewImportPageAndRecordsWithSoftRefs.php | 13 +++++++++++++
 .../Fixtures/IrreRecordsIncludeFields.php          | 14 +++++++++++++-
 .../BackendGroupsExplicitAllowDenyMigration.php    |  4 ++--
 .../Updates/BackendModulePermissionMigration.php   |  4 ++--
 .../Updates/BackendUserLanguageMigration.php       |  4 ++--
 .../RowUpdater/L18nDiffsourceToJsonMigration.php   |  4 ++--
 .../Classes/Updates/ShortcutRecordsMigration.php   |  4 ++--
 .../Classes/Updates/SysLogSerializationUpdate.php  |  4 ++--
 52 files changed, 329 insertions(+), 67 deletions(-)

diff --git a/typo3/sysext/backend/Classes/Form/Event/ModifyInlineElementEnabledControlsEvent.php b/typo3/sysext/backend/Classes/Form/Event/ModifyInlineElementEnabledControlsEvent.php
index 2faa00670ffa..d3cabd4c6444 100644
--- a/typo3/sysext/backend/Classes/Form/Event/ModifyInlineElementEnabledControlsEvent.php
+++ b/typo3/sysext/backend/Classes/Form/Event/ModifyInlineElementEnabledControlsEvent.php
@@ -14,6 +14,7 @@ declare(strict_types=1);
  *
  * The TYPO3 project - inspiring people to share!
  */
+
 namespace TYPO3\CMS\Backend\Form\Event;
 
 /**
diff --git a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaLanguage.php b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaLanguage.php
index 6cc7554b6769..11a7774633b3 100644
--- a/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaLanguage.php
+++ b/typo3/sysext/backend/Classes/Form/FormDataProvider/TcaLanguage.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Backend\Form\FormDataProvider;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Backend\Form\FormDataProvider;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Backend\Form\FormDataProvider;
+
 use TYPO3\CMS\Backend\Form\FormDataProviderInterface;
 use TYPO3\CMS\Core\Site\Entity\Site;
 use TYPO3\CMS\Core\Site\SiteFinder;
diff --git a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaGroupTest.php b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaGroupTest.php
index ca8bc387681a..8f480a0aab33 100644
--- a/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaGroupTest.php
+++ b/typo3/sysext/backend/Tests/Functional/Form/FormDataProvider/TcaGroupTest.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Backend\Tests\Functional\Form\FormDataProvider;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Backend\Tests\Functional\Form\FormDataProvider;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Backend\Tests\Functional\Form\FormDataProvider;
+
 use TYPO3\CMS\Backend\Form\FormDataProvider\TcaGroup;
 use TYPO3\CMS\Core\Core\Bootstrap;
 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
diff --git a/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php b/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php
index fbca42e51a34..6e6ea231936a 100644
--- a/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php
+++ b/typo3/sysext/backend/Tests/Functional/Module/ModuleDataTest.php
@@ -3,7 +3,7 @@
 declare(strict_types=1);
 
 /*
- * This file is part of a TYPO3 extension.
+ * This file is part of the TYPO3 CMS project.
  *
  * It is free software; you can redistribute it and/or modify it under
  * the terms of the GNU General Public License, either version 2
diff --git a/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php b/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php
index 0071abed3d8e..6c621433fd8f 100644
--- a/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php
+++ b/typo3/sysext/backend/Tests/Functional/Utility/BackendUtilityTest.php
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Backend\Tests\Functional\Utility;
 
 use TYPO3\CMS\Backend\Utility\BackendUtility;
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..fa6346bb1ad8 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
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeElements;
 
 use TYPO3\CMS\Backend\Form\NodeFactory;
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..3186896397f7 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
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeElements;
 
 use TYPO3\CMS\Backend\Form\NodeFactory;
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..b7aab39a44f2 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
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeResolvers;
 
 use TYPO3\CMS\Backend\Form\NodeFactory;
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..66144fcf504e 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
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeResolvers;
 
 use TYPO3\CMS\Backend\Form\NodeFactory;
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..bdbd81dd2b7a 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
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Backend\Tests\Unit\Form\Fixtures\NodeFactory\NodeResolvers;
 
 class InvalidNodeResolverClass
diff --git a/typo3/sysext/backend/Tests/Unit/Preview/StandardPreviewRendererResolverTest.php b/typo3/sysext/backend/Tests/Unit/Preview/StandardPreviewRendererResolverTest.php
index 16ddf168284c..63bed0b8fa00 100644
--- a/typo3/sysext/backend/Tests/Unit/Preview/StandardPreviewRendererResolverTest.php
+++ b/typo3/sysext/backend/Tests/Unit/Preview/StandardPreviewRendererResolverTest.php
@@ -3,7 +3,7 @@
 declare(strict_types=1);
 
 /*
- * This file is part of a TYPO3 extension.
+ * This file is part of the TYPO3 CMS project.
  *
  * It is free software; you can redistribute it and/or modify it under
  * the terms of the GNU General Public License, either version 2
diff --git a/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodes.php b/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodes.php
index 7632a4d4d68d..fa70edb352ae 100644
--- a/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodes.php
+++ b/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodes.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -13,8 +15,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-declare(strict_types=1);
-
 namespace TYPO3\CMS\Core\Authentication\Mfa\Provider;
 
 use TYPO3\CMS\Core\Crypto\PasswordHashing\PasswordHashFactory;
diff --git a/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodesProvider.php b/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodesProvider.php
index 17ef4cd01584..3064fa8f8cd1 100644
--- a/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodesProvider.php
+++ b/typo3/sysext/core/Classes/Authentication/Mfa/Provider/RecoveryCodesProvider.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -13,8 +15,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-declare(strict_types=1);
-
 namespace TYPO3\CMS\Core\Authentication\Mfa\Provider;
 
 use Psr\Http\Message\ResponseInterface;
diff --git a/typo3/sysext/core/Classes/Authentication/Mfa/Provider/Totp.php b/typo3/sysext/core/Classes/Authentication/Mfa/Provider/Totp.php
index 531f209ffebc..3841ee6aeec8 100644
--- a/typo3/sysext/core/Classes/Authentication/Mfa/Provider/Totp.php
+++ b/typo3/sysext/core/Classes/Authentication/Mfa/Provider/Totp.php
@@ -1,5 +1,7 @@
 <?php
 
+declare(strict_types=1);
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -13,8 +15,6 @@
  * The TYPO3 project - inspiring people to share!
  */
 
-declare(strict_types=1);
-
 namespace TYPO3\CMS\Core\Authentication\Mfa\Provider;
 
 use Base32\Base32;
diff --git a/typo3/sysext/core/Classes/Core/RequestId.php b/typo3/sysext/core/Classes/Core/RequestId.php
index 81eaae410722..78aadcf83ebd 100644
--- a/typo3/sysext/core/Classes/Core/RequestId.php
+++ b/typo3/sysext/core/Classes/Core/RequestId.php
@@ -2,10 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Core\Core;
-
-use TYPO3\CMS\Core\Utility\StringUtility;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -19,6 +15,10 @@ use TYPO3\CMS\Core\Utility\StringUtility;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Core;
+
+use TYPO3\CMS\Core\Utility\StringUtility;
+
 /**
  * @internal
  */
diff --git a/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php b/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php
index 5a5b86529203..a68ff4c9d043 100644
--- a/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php
+++ b/typo3/sysext/core/Classes/Html/DefaultSanitizerBuilder.php
@@ -3,11 +3,14 @@
 declare(strict_types=1);
 
 /*
- * This file is part of the TYPO3 project.
+ * This file is part of the TYPO3 CMS project.
  *
- * It is free software; you can redistribute it and/or modify it under the terms
- * of the MIT License (MIT). For the full copyright and license information,
- * please read the LICENSE file that was distributed with this source code.
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
  *
  * The TYPO3 project - inspiring people to share!
  */
diff --git a/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php b/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php
index 528ed2f6a4a4..22a9b6efb46a 100644
--- a/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php
+++ b/typo3/sysext/core/Classes/Html/I18nSanitizerBuilder.php
@@ -3,11 +3,14 @@
 declare(strict_types=1);
 
 /*
- * This file is part of the TYPO3 project.
+ * This file is part of the TYPO3 CMS project.
  *
- * It is free software; you can redistribute it and/or modify it under the terms
- * of the MIT License (MIT). For the full copyright and license information,
- * please read the LICENSE file that was distributed with this source code.
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
  *
  * The TYPO3 project - inspiring people to share!
  */
diff --git a/typo3/sysext/core/Classes/Html/SanitizerBuilderFactory.php b/typo3/sysext/core/Classes/Html/SanitizerBuilderFactory.php
index 2ee9333d2bdb..cd9ec236b335 100644
--- a/typo3/sysext/core/Classes/Html/SanitizerBuilderFactory.php
+++ b/typo3/sysext/core/Classes/Html/SanitizerBuilderFactory.php
@@ -3,11 +3,14 @@
 declare(strict_types=1);
 
 /*
- * This file is part of the TYPO3 project.
+ * This file is part of the TYPO3 CMS project.
  *
- * It is free software; you can redistribute it and/or modify it under the terms
- * of the MIT License (MIT). For the full copyright and license information,
- * please read the LICENSE file that was distributed with this source code.
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
  *
  * The TYPO3 project - inspiring people to share!
  */
diff --git a/typo3/sysext/core/Classes/Html/SanitizerInitiator.php b/typo3/sysext/core/Classes/Html/SanitizerInitiator.php
index 4458724471ed..b16f9cf08ce5 100644
--- a/typo3/sysext/core/Classes/Html/SanitizerInitiator.php
+++ b/typo3/sysext/core/Classes/Html/SanitizerInitiator.php
@@ -3,11 +3,14 @@
 declare(strict_types=1);
 
 /*
- * This file is part of the TYPO3 project.
+ * This file is part of the TYPO3 CMS project.
  *
- * It is free software; you can redistribute it and/or modify it under the terms
- * of the MIT License (MIT). For the full copyright and license information,
- * please read the LICENSE file that was distributed with this source code.
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
  *
  * The TYPO3 project - inspiring people to share!
  */
diff --git a/typo3/sysext/core/Resources/Private/Php/cli.php b/typo3/sysext/core/Resources/Private/Php/cli.php
index d16c5746bc26..e11fc9ae4cdb 100644
--- a/typo3/sysext/core/Resources/Private/Php/cli.php
+++ b/typo3/sysext/core/Resources/Private/Php/cli.php
@@ -1,5 +1,6 @@
 #!/usr/bin/env php
 <?php
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
diff --git a/typo3/sysext/core/Tests/Acceptance/Application/FileList/FileStorageTreeFilterCest.php b/typo3/sysext/core/Tests/Acceptance/Application/FileList/FileStorageTreeFilterCest.php
index 2908481f322e..3952be437b10 100644
--- a/typo3/sysext/core/Tests/Acceptance/Application/FileList/FileStorageTreeFilterCest.php
+++ b/typo3/sysext/core/Tests/Acceptance/Application/FileList/FileStorageTreeFilterCest.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Core\Tests\Acceptance\Application\FileList;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Core\Tests\Acceptance\Application\FileList;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Tests\Acceptance\Application\FileList;
+
 use TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester;
 use TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\FileTree;
 
diff --git a/typo3/sysext/core/Tests/Acceptance/Application/FormEngine/ElementsBasicInputTextTableCest.php b/typo3/sysext/core/Tests/Acceptance/Application/FormEngine/ElementsBasicInputTextTableCest.php
index d77a555f6320..4076b701e201 100644
--- a/typo3/sysext/core/Tests/Acceptance/Application/FormEngine/ElementsBasicInputTextTableCest.php
+++ b/typo3/sysext/core/Tests/Acceptance/Application/FormEngine/ElementsBasicInputTextTableCest.php
@@ -1,6 +1,7 @@
 <?php
 
 declare(strict_types=1);
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
diff --git a/typo3/sysext/core/Tests/Acceptance/Application/PageTree/DragAndDrop/PageCreationWithDragAndDropCest.php b/typo3/sysext/core/Tests/Acceptance/Application/PageTree/DragAndDrop/PageCreationWithDragAndDropCest.php
index f2e5631fdb3c..c3b79920685e 100644
--- a/typo3/sysext/core/Tests/Acceptance/Application/PageTree/DragAndDrop/PageCreationWithDragAndDropCest.php
+++ b/typo3/sysext/core/Tests/Acceptance/Application/PageTree/DragAndDrop/PageCreationWithDragAndDropCest.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree\DragAndDrop;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree\DragAndDrop;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree\DragAndDrop;
+
 use Facebook\WebDriver\WebDriverKeys;
 use TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester;
 use TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\Mouse;
diff --git a/typo3/sysext/core/Tests/Acceptance/Application/PageTree/PageTreeFilterCest.php b/typo3/sysext/core/Tests/Acceptance/Application/PageTree/PageTreeFilterCest.php
index d85c181e267c..cc76c1880789 100644
--- a/typo3/sysext/core/Tests/Acceptance/Application/PageTree/PageTreeFilterCest.php
+++ b/typo3/sysext/core/Tests/Acceptance/Application/PageTree/PageTreeFilterCest.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Tests\Acceptance\Application\PageTree;
+
 use Facebook\WebDriver\WebDriverKeys;
 use TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester;
 use TYPO3\CMS\Core\Tests\Acceptance\Support\Helper\ModalDialog;
diff --git a/typo3/sysext/core/Tests/Acceptance/Support/Helper/FileTree.php b/typo3/sysext/core/Tests/Acceptance/Support/Helper/FileTree.php
index ebf0a4b4d447..ebff831d4a0b 100644
--- a/typo3/sysext/core/Tests/Acceptance/Support/Helper/FileTree.php
+++ b/typo3/sysext/core/Tests/Acceptance/Support/Helper/FileTree.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Core\Tests\Acceptance\Support\Helper;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Core\Tests\Acceptance\Support\Helper;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Tests\Acceptance\Support\Helper;
+
 use TYPO3\CMS\Core\Tests\Acceptance\Support\ApplicationTester;
 use TYPO3\TestingFramework\Core\Acceptance\Helper\AbstractPageTree;
 
diff --git a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueTest.php b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueTest.php
index 9f5c8dd16d39..54da43236607 100644
--- a/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueTest.php
+++ b/typo3/sysext/core/Tests/Functional/DataHandling/Slug/SlugHelperUniqueTest.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Core\Tests\Functional\DataHandling\Slug;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Core\Tests\Functional\DataHandling\Slug;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Tests\Functional\DataHandling\Slug;
+
 use TYPO3\CMS\Core\DataHandling\Model\RecordStateFactory;
 use TYPO3\CMS\Core\DataHandling\SlugHelper;
 use TYPO3\CMS\Core\Tests\Functional\DataHandling\AbstractDataHandlerActionTestCase;
diff --git a/typo3/sysext/core/Tests/Functional/Utility/ExtensionManagementUtility/ExtensionManagementUtilityTcaOverrideRequireTest.php b/typo3/sysext/core/Tests/Functional/Utility/ExtensionManagementUtility/ExtensionManagementUtilityTcaOverrideRequireTest.php
index 8a742f7d0ea2..392e0fc72907 100644
--- a/typo3/sysext/core/Tests/Functional/Utility/ExtensionManagementUtility/ExtensionManagementUtilityTcaOverrideRequireTest.php
+++ b/typo3/sysext/core/Tests/Functional/Utility/ExtensionManagementUtility/ExtensionManagementUtilityTcaOverrideRequireTest.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Core\Tests\Functional\Utility\ExtensionManagementUtility;
 
 use TYPO3\TestingFramework\Core\Functional\FunctionalTestCase;
diff --git a/typo3/sysext/extbase/Classes/DependencyInjection/TypeConverterPass.php b/typo3/sysext/extbase/Classes/DependencyInjection/TypeConverterPass.php
index 91b8b8d02165..2f16b65eeecb 100644
--- a/typo3/sysext/extbase/Classes/DependencyInjection/TypeConverterPass.php
+++ b/typo3/sysext/extbase/Classes/DependencyInjection/TypeConverterPass.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Extbase\DependencyInjection;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Extbase\DependencyInjection;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Extbase\DependencyInjection;
+
 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
 use Symfony\Component\DependencyInjection\ContainerBuilder;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
diff --git a/typo3/sysext/extbase/Classes/Property/TypeConverterRegistry.php b/typo3/sysext/extbase/Classes/Property/TypeConverterRegistry.php
index b2c71f807fde..622903be456b 100644
--- a/typo3/sysext/extbase/Classes/Property/TypeConverterRegistry.php
+++ b/typo3/sysext/extbase/Classes/Property/TypeConverterRegistry.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Extbase\Property;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Extbase\Property;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Extbase\Property;
+
 use TYPO3\CMS\Extbase\Utility\TypeHandlingUtility;
 
 /**
diff --git a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php
index c4267c2d99ad..18edad94e7ca 100644
--- a/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php
+++ b/typo3/sysext/extbase/Tests/Functional/Validation/Validator/RegularExpressionValidatorTest.php
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Extbase\Tests\Functional\Validation\Validator;
 
 use TYPO3\CMS\Core\Localization\LanguageServiceFactory;
diff --git a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverterRegistryTest.php b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverterRegistryTest.php
index e9d48bb1f63e..6b02907c5894 100644
--- a/typo3/sysext/extbase/Tests/Unit/Property/TypeConverterRegistryTest.php
+++ b/typo3/sysext/extbase/Tests/Unit/Property/TypeConverterRegistryTest.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Extbase\Tests\Unit\Property;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Extbase\Tests\Unit\Property;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Extbase\Tests\Unit\Property;
+
 use TYPO3\CMS\Core\Authentication\LoginType;
 use TYPO3\CMS\Core\Type\TypeInterface;
 use TYPO3\CMS\Extbase\Domain\Model\FileReference;
diff --git a/typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ExtensionRepositoryTest.php b/typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ExtensionRepositoryTest.php
index 420712f9d40a..4518cdd1f1e5 100644
--- a/typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ExtensionRepositoryTest.php
+++ b/typo3/sysext/extensionmanager/Tests/Unit/Domain/Repository/ExtensionRepositoryTest.php
@@ -2,6 +2,19 @@
 
 declare(strict_types=1);
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 namespace TYPO3\CMS\Extensionmanager\Tests\Unit\Domain\Repository;
 
 use TYPO3\CMS\Extensionmanager\Domain\Model\Dependency;
diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectFactory.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectFactory.php
index c55aebecf350..f86cd907472b 100644
--- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectFactory.php
+++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectFactory.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Frontend\ContentObject;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Frontend\ContentObject;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Frontend\ContentObject;
+
 use Psr\Container\ContainerInterface;
 use Psr\Http\Message\ServerRequestInterface;
 use TYPO3\CMS\Frontend\ContentObject\Exception\ContentRenderingException;
diff --git a/typo3/sysext/frontend/Classes/DataProcessing/FlexFormProcessor.php b/typo3/sysext/frontend/Classes/DataProcessing/FlexFormProcessor.php
index ac5980344703..50e404931c7c 100644
--- a/typo3/sysext/frontend/Classes/DataProcessing/FlexFormProcessor.php
+++ b/typo3/sysext/frontend/Classes/DataProcessing/FlexFormProcessor.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Frontend\DataProcessing;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Frontend\DataProcessing;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Frontend\DataProcessing;
+
 use TYPO3\CMS\Core\Service\FlexFormService;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
 use TYPO3\CMS\Frontend\ContentObject\ContentDataProcessor;
diff --git a/typo3/sysext/frontend/Classes/Preview/TextmediaPreviewRenderer.php b/typo3/sysext/frontend/Classes/Preview/TextmediaPreviewRenderer.php
index 43be3f2d4672..4dd0591d01d7 100644
--- a/typo3/sysext/frontend/Classes/Preview/TextmediaPreviewRenderer.php
+++ b/typo3/sysext/frontend/Classes/Preview/TextmediaPreviewRenderer.php
@@ -1,6 +1,7 @@
 <?php
 
 declare(strict_types=1);
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
diff --git a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php
index a523d07eb7d9..3e2439c394f0 100644
--- a/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php
+++ b/typo3/sysext/frontend/Tests/Unit/DataProcessing/FlexFormProcessorTest.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Frontend\Tests\Unit\DataProcessing;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Frontend\Tests\Unit\DataProcessing;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Frontend\Tests\Unit\DataProcessing;
+
 use Prophecy\PhpUnit\ProphecyTrait;
 use Prophecy\Prophecy\ObjectProphecy;
 use TYPO3\CMS\Core\Service\FlexFormService;
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php
index afea1bcb39eb..64b26e232c10 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecords.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => false,
   'showDiff' => false,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php
index 2bd427efa1bb..fc8f8d9ccf9a 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportPageAndRecordsWithSoftRefs.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => false,
   'showDiff' => false,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php
index 14db601b9e62..9102e8a55b63 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportRecords.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => false,
   'showDiff' => false,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php
index cc93f2b8fc54..8c758945de49 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewExportTable.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => false,
   'showDiff' => false,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php
index cf37cd4d0462..d6e11966b363 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecords.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => false,
   'showDiff' => false,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php
index 87688b782d0a..ed1c44e1a682 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdate.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => true,
   'showDiff' => false,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php
index 26d4c25d6a35..357d3ee0caf5 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsByUpdateWithDiff.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => true,
   'showDiff' => true,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php
index 4f08b5ff352e..d6215346ba3e 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithDiff.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => false,
   'showDiff' => true,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php
index 7af2acf37327..68c92e1d7a74 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/ArrayAssertions/RenderPreviewImportPageAndRecordsWithSoftRefs.php
@@ -1,5 +1,18 @@
 <?php
 
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
   'update' => false,
   'showDiff' => false,
diff --git a/typo3/sysext/impexp/Tests/Functional/Fixtures/IrreRecordsIncludeFields.php b/typo3/sysext/impexp/Tests/Functional/Fixtures/IrreRecordsIncludeFields.php
index bd602a881814..5e6abc270ba2 100644
--- a/typo3/sysext/impexp/Tests/Functional/Fixtures/IrreRecordsIncludeFields.php
+++ b/typo3/sysext/impexp/Tests/Functional/Fixtures/IrreRecordsIncludeFields.php
@@ -1,6 +1,18 @@
 <?php
 
-// Fields of record types to be included in the export
+/*
+ * This file is part of the TYPO3 CMS project.
+ *
+ * It is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU General Public License, either version 2
+ * of the License, or any later version.
+ *
+ * For the full copyright and license information, please read the
+ * LICENSE.txt file that was distributed with this source code.
+ *
+ * The TYPO3 project - inspiring people to share!
+ */
+
 return [
     'pages' => [
         'title',
diff --git a/typo3/sysext/install/Classes/Updates/BackendGroupsExplicitAllowDenyMigration.php b/typo3/sysext/install/Classes/Updates/BackendGroupsExplicitAllowDenyMigration.php
index c97004fe2b15..47a9cc0d1021 100644
--- a/typo3/sysext/install/Classes/Updates/BackendGroupsExplicitAllowDenyMigration.php
+++ b/typo3/sysext/install/Classes/Updates/BackendGroupsExplicitAllowDenyMigration.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Install\Updates;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Install\Updates;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Install\Updates;
+
 use Symfony\Component\Console\Output\OutputInterface;
 use TYPO3\CMS\Core\Database\ConnectionPool;
 use TYPO3\CMS\Core\Database\Query\QueryBuilder;
diff --git a/typo3/sysext/install/Classes/Updates/BackendModulePermissionMigration.php b/typo3/sysext/install/Classes/Updates/BackendModulePermissionMigration.php
index 917d28385c93..e46789317cd2 100644
--- a/typo3/sysext/install/Classes/Updates/BackendModulePermissionMigration.php
+++ b/typo3/sysext/install/Classes/Updates/BackendModulePermissionMigration.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Install\Updates;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Install\Updates;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Install\Updates;
+
 use TYPO3\CMS\Backend\Module\ModuleRegistry;
 use TYPO3\CMS\Core\Database\ConnectionPool;
 use TYPO3\CMS\Core\Database\Query\QueryBuilder;
diff --git a/typo3/sysext/install/Classes/Updates/BackendUserLanguageMigration.php b/typo3/sysext/install/Classes/Updates/BackendUserLanguageMigration.php
index 7504ca7b99e3..04970ab619bd 100644
--- a/typo3/sysext/install/Classes/Updates/BackendUserLanguageMigration.php
+++ b/typo3/sysext/install/Classes/Updates/BackendUserLanguageMigration.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Install\Updates;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Install\Updates;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Install\Updates;
+
 use TYPO3\CMS\Core\Database\ConnectionPool;
 use TYPO3\CMS\Core\Database\Query\QueryBuilder;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
diff --git a/typo3/sysext/install/Classes/Updates/RowUpdater/L18nDiffsourceToJsonMigration.php b/typo3/sysext/install/Classes/Updates/RowUpdater/L18nDiffsourceToJsonMigration.php
index 27e4de9977be..82e2318a630a 100644
--- a/typo3/sysext/install/Classes/Updates/RowUpdater/L18nDiffsourceToJsonMigration.php
+++ b/typo3/sysext/install/Classes/Updates/RowUpdater/L18nDiffsourceToJsonMigration.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Install\Updates\RowUpdater;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Install\Updates\RowUpdater;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Install\Updates\RowUpdater;
+
 use TYPO3\CMS\Backend\Utility\BackendUtility;
 
 /**
diff --git a/typo3/sysext/install/Classes/Updates/ShortcutRecordsMigration.php b/typo3/sysext/install/Classes/Updates/ShortcutRecordsMigration.php
index 7cafddfcab2e..cd8e9ec520d5 100644
--- a/typo3/sysext/install/Classes/Updates/ShortcutRecordsMigration.php
+++ b/typo3/sysext/install/Classes/Updates/ShortcutRecordsMigration.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Install\Updates;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Install\Updates;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Install\Updates;
+
 use TYPO3\CMS\Backend\Module\ModuleProvider;
 use TYPO3\CMS\Backend\Routing\Router;
 use TYPO3\CMS\Core\Database\ConnectionPool;
diff --git a/typo3/sysext/install/Classes/Updates/SysLogSerializationUpdate.php b/typo3/sysext/install/Classes/Updates/SysLogSerializationUpdate.php
index 0eba3acd257e..b02aac0f0ad1 100644
--- a/typo3/sysext/install/Classes/Updates/SysLogSerializationUpdate.php
+++ b/typo3/sysext/install/Classes/Updates/SysLogSerializationUpdate.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Install\Updates;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Install\Updates;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Install\Updates;
+
 use TYPO3\CMS\Core\Database\ConnectionPool;
 use TYPO3\CMS\Core\Database\Query\QueryBuilder;
 use TYPO3\CMS\Core\Log\LogDataTrait;
-- 
GitLab