From 6487672c1c254687ec11a857d4fa5a3e198d5e7a Mon Sep 17 00:00:00 2001
From: Benni Mack <benni@typo3.org>
Date: Fri, 1 May 2020 11:33:51 +0200
Subject: [PATCH] [TASK] Clean up header comments

The CGL changes and the streamlining of the header comments
is now cleaned up (via the php-cs-fixer rules) and are now
applied to other files.

This is a precursor patch to include this PHP-CS-Fixer
configuration in our pre-merge checks.

Resolves: #91253
Releases: master
Change-Id: Icb75ddb2255eee4ae2ff457c4d09465cde73e638
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64380
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
---
 Build/php-cs-fixer/header-comment.php         | 41 ++++---------------
 .../Classes/View/PageLayoutContext.php        | 13 ++++++
 .../backend/Migrations/Code/ClassAliasMap.php | 13 ++++++
 .../Migrations/Code/LegacyClassesForIde.php   | 13 ++++++
 .../backend/Resources/Private/Php/backend.php |  1 +
 .../LimitToTablesRestrictionContainer.php     |  3 +-
 .../core/Migrations/Code/ClassAliasMap.php    | 13 ++++++
 .../Migrations/Code/LegacyClassesForIde.php   | 13 ++++++
 .../Resources/PHP/GlobalDebugFunctions.php    | 13 ++++++
 .../Migrations/Code/ClassAliasMap.php         | 13 ++++++
 .../Migrations/Code/WrongClassAliasMap.php    | 13 ++++++
 .../Resources/PHP/AnotherTestFile.php         | 13 ++++++
 .../Resources/PHP/ClassAliasMap.php           | 13 ++++++
 .../PHP/Subdirectory/SubdirectoryTest.php     | 13 ++++++
 .../test_extension/Resources/PHP/Test.php     | 13 ++++++
 .../test_extension/Tests/TestClass.php        | 14 ++++++-
 .../test_extension/class.ext_update.php       | 13 ++++++
 .../LimitToTablesRestrictionContainerTest.php |  3 +-
 .../Classes/Mvc/View/GenericViewResolver.php  |  4 +-
 .../Mvc/View/ViewResolverInterface.php        | 13 ++++++
 .../Resources/Private/Php/frontend.php        |  1 +
 .../install/Resources/Private/Php/install.php |  1 +
 22 files changed, 210 insertions(+), 40 deletions(-)

diff --git a/Build/php-cs-fixer/header-comment.php b/Build/php-cs-fixer/header-comment.php
index 01b577f22a81..d259b4d47938 100644
--- a/Build/php-cs-fixer/header-comment.php
+++ b/Build/php-cs-fixer/header-comment.php
@@ -20,46 +20,19 @@ if (PHP_SAPI !== 'cli') {
 }
 
 $finder = PhpCsFixer\Finder::create()
-    ->files()
     ->name('*.php')
-    ->in([
-        __DIR__ . '/../../typo3/sysext/*/Classes/',
-        __DIR__ . '/../../typo3/sysext/*/Tests/',
-        __DIR__ . '/../../typo3/sysext/core/Tests/Functional/Fixtures/Extensions/irre_tutorial/Classes/',
-        __DIR__ . '/../../typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_datahandler/Classes/',
-        __DIR__ . '/../../typo3/sysext/core/Tests/Functional/Fixtures/Extensions/test_meta/Classes/',
-        __DIR__ . '/../../typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Classes/',
-        __DIR__ . '/../../typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/a/Classes/',
-        __DIR__ . '/../../typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/class_overriding/b/Classes/',
-        __DIR__ . '/../../typo3/sysext/fluid/Tests/Functional/Fixtures/Extensions/fluid_test/Classes/',
-    ])
-    ->exclude('Unit/Core/Fixtures/test_extension/') // EXT:core
-    ->exclude('Functional/Configuration/SiteConfiguration/Fixtures/Extensions/conf_overriding/') // EXT:core
-    ->exclude('Functional/Fixtures/Extensions/irre_tutorial/') // EXT:core
-    ->exclude('Functional/Fixtures/Extensions/test_datahandler/') // EXT:core
-    ->exclude('Functional/Fixtures/Extensions/test_meta/') // EXT:core
-    ->exclude('Functional/Fixtures/Extensions/test_resources/') // EXT:core
-    ->exclude('Functional/Category/Collection/Fixtures/Extensions/test/') // EXT:core
-    ->exclude('Functional/Database/Fixtures/Extensions/test_expressionbuilder/') // EXT:core
-    ->exclude('Unit/Http/Fixtures/Package1') // EXT:core
-    ->exclude('Unit/Http/Fixtures/Package2') // EXT:core
-    ->exclude('Unit/Http/Fixtures/Package2Disables1') // EXT:core
-    ->exclude('Unit/Http/Fixtures/Package2Replaces1') // EXT:core
-    ->exclude('Functional/Fixtures/Extensions/blog_example/') // EXT:extbase
-    ->exclude('Functional/Fixtures/Extensions/class_overriding/a/') // EXT:extbase
-    ->exclude('Functional/Fixtures/Extensions/class_overriding/b/') // EXT:extbase
-    ->exclude('Functional/Fixtures/Extensions/template_extension/') // EXT:impexp
-    ->exclude('Functional/Hooks/Fixtures/test_resources/') // EXT:form
-    ->exclude('Functional/Fixtures/Extensions/fluid_test/') // EXT:fluid
-    ->exclude('Unit/Service/Fixtures/') // EXT:form
+    ->in(__DIR__ . '/../../typo3/sysext')
     ->exclude('Acceptance/Support/_generated') // EXT:core
-    ->notName('Rfc822AddressesParser.php')
+    // Configuration files do not need header comments
+    ->exclude('Configuration')
+    ->notName('*locallang*.php')
     ->notName('AdditionalConfiguration.php')
     ->notName('ext_localconf.php')
     ->notName('ext_tables.php')
     ->notName('ext_emconf.php')
-    ->notName('install.php')
-    ->notName('index.php')
+    // Third-party inclusion files should not have a changed comment
+    ->notName('Rfc822AddressesParser.php')
+    ->notName('ClassMapGenerator.php')
 ;
 
 $headerComment = <<<COMMENT
diff --git a/typo3/sysext/backend/Classes/View/PageLayoutContext.php b/typo3/sysext/backend/Classes/View/PageLayoutContext.php
index b430589cee36..f73ba3ad1cdd 100644
--- a/typo3/sysext/backend/Classes/View/PageLayoutContext.php
+++ b/typo3/sysext/backend/Classes/View/PageLayoutContext.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\View;
 
 /*
diff --git a/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php b/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php
index 80031842715a..c7a5897bda28 100644
--- a/typo3/sysext/backend/Migrations/Code/ClassAliasMap.php
+++ b/typo3/sysext/backend/Migrations/Code/ClassAliasMap.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 [
     'TYPO3\\CMS\\Lowlevel\\Utility\\ArrayBrowser' => \TYPO3\CMS\Backend\View\ArrayBrowser::class
 ];
diff --git a/typo3/sysext/backend/Migrations/Code/LegacyClassesForIde.php b/typo3/sysext/backend/Migrations/Code/LegacyClassesForIde.php
index 6eaf0e4f0710..4916833e6942 100644
--- a/typo3/sysext/backend/Migrations/Code/LegacyClassesForIde.php
+++ b/typo3/sysext/backend/Migrations/Code/LegacyClassesForIde.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 {
     die('Access denied');
 }
diff --git a/typo3/sysext/backend/Resources/Private/Php/backend.php b/typo3/sysext/backend/Resources/Private/Php/backend.php
index 737d56ac4cd8..68b300f97c29 100644
--- a/typo3/sysext/backend/Resources/Private/Php/backend.php
+++ b/typo3/sysext/backend/Resources/Private/Php/backend.php
@@ -1,4 +1,5 @@
 <?php
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
diff --git a/typo3/sysext/core/Classes/Database/Query/Restriction/LimitToTablesRestrictionContainer.php b/typo3/sysext/core/Classes/Database/Query/Restriction/LimitToTablesRestrictionContainer.php
index bd191ba813f2..e16c1badff27 100644
--- a/typo3/sysext/core/Classes/Database/Query/Restriction/LimitToTablesRestrictionContainer.php
+++ b/typo3/sysext/core/Classes/Database/Query/Restriction/LimitToTablesRestrictionContainer.php
@@ -1,7 +1,6 @@
 <?php
 
 declare(strict_types=1);
-namespace TYPO3\CMS\Core\Database\Query\Restriction;
 
 /*
  * This file is part of the TYPO3 CMS project.
@@ -16,6 +15,8 @@ namespace TYPO3\CMS\Core\Database\Query\Restriction;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Database\Query\Restriction;
+
 use TYPO3\CMS\Core\Database\Query\Expression\CompositeExpression;
 use TYPO3\CMS\Core\Database\Query\Expression\ExpressionBuilder;
 
diff --git a/typo3/sysext/core/Migrations/Code/ClassAliasMap.php b/typo3/sysext/core/Migrations/Code/ClassAliasMap.php
index 1634c1e1b5e9..08cde34b7f07 100644
--- a/typo3/sysext/core/Migrations/Code/ClassAliasMap.php
+++ b/typo3/sysext/core/Migrations/Code/ClassAliasMap.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 [
     'TYPO3\\CMS\\Frontend\\Page\\PageRepository' => \TYPO3\CMS\Core\Domain\Repository\PageRepository::class,
     'TYPO3\\CMS\\Frontend\\Page\\PageRepositoryGetPageHookInterface' => \TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageHookInterface::class,
diff --git a/typo3/sysext/core/Migrations/Code/LegacyClassesForIde.php b/typo3/sysext/core/Migrations/Code/LegacyClassesForIde.php
index cbb84dc5f963..595993a35f37 100644
--- a/typo3/sysext/core/Migrations/Code/LegacyClassesForIde.php
+++ b/typo3/sysext/core/Migrations/Code/LegacyClassesForIde.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 {
     die('Access denied');
 }
diff --git a/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php b/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php
index 4b3973eee971..1b9a8cdca635 100644
--- a/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.php
+++ b/typo3/sysext/core/Resources/PHP/GlobalDebugFunctions.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!
+ */
+
 // Short-hand debug function
 // If you wish to use the debug()-function, and it does not output something,
 // please edit the IP mask in TYPO3_CONF_VARS
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/ClassAliasMap.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/ClassAliasMap.php
index 882d1334dc41..de995421f659 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/ClassAliasMap.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/ClassAliasMap.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 [
     'foo' => \TYPO3\CMS\Core\Tests\Unit\Core\Fixtures\test_extension\Resources\PHP\Test::class,
     'bar' => \TYPO3\CMS\Core\Tests\Unit\Core\Fixtures\test_extension\Resources\PHP\AnotherTestFile::class,
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/WrongClassAliasMap.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/WrongClassAliasMap.php
index b3d9bbc7f371..2db20159bf59 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/WrongClassAliasMap.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Migrations/Code/WrongClassAliasMap.php
@@ -1 +1,14 @@
 <?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!
+ */
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php
index 1ac4a07ba542..c9c5e0731c2d 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/AnotherTestFile.php
@@ -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\Unit\Core\Fixtures\test_extension\Resources\PHP;
 
 /**
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/ClassAliasMap.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/ClassAliasMap.php
index 882d1334dc41..de995421f659 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/ClassAliasMap.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/ClassAliasMap.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 [
     'foo' => \TYPO3\CMS\Core\Tests\Unit\Core\Fixtures\test_extension\Resources\PHP\Test::class,
     'bar' => \TYPO3\CMS\Core\Tests\Unit\Core\Fixtures\test_extension\Resources\PHP\AnotherTestFile::class,
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php
index 47c25f49a624..d719704e8a2e 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Subdirectory/SubdirectoryTest.php
@@ -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\Unit\Core\Fixtures\test_extension\Resources\PHP\Subdirectory;
 
 /**
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php
index 68b7d0bffa3f..3917a0c13726 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Resources/PHP/Test.php
@@ -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\Unit\Core\Fixtures\test_extension\Resources\PHP;
 
 /**
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php
index eee7fda713c6..e6084c12a7b3 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/Tests/TestClass.php
@@ -1,8 +1,18 @@
 <?php
 
-/**
- * Class TestClass
+/*
+ * 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!
  */
+
 class TestClass
 {
 }
diff --git a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php
index 67ec4a5aba61..01bd18c5f4c4 100644
--- a/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php
+++ b/typo3/sysext/core/Tests/Unit/Core/Fixtures/test_extension/class.ext_update.php
@@ -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!
+ */
+
 /**
  * Class ext_update
  */
diff --git a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php
index c3355398573e..3da316b155ef 100644
--- a/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php
+++ b/typo3/sysext/core/Tests/Unit/Database/Query/Restriction/LimitToTablesRestrictionContainerTest.php
@@ -1,7 +1,6 @@
 <?php
 
 declare(strict_types=1);
-namespace TYPO3\CMS\Core\Tests\Unit\Database\Query\Restriction;
 
 /*
  * This file is part of the TYPO3 CMS project.
@@ -16,6 +15,8 @@ namespace TYPO3\CMS\Core\Tests\Unit\Database\Query\Restriction;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Core\Tests\Unit\Database\Query\Restriction;
+
 use TYPO3\CMS\Core\Database\Query\Restriction\DefaultRestrictionContainer;
 use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
 use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
diff --git a/typo3/sysext/extbase/Classes/Mvc/View/GenericViewResolver.php b/typo3/sysext/extbase/Classes/Mvc/View/GenericViewResolver.php
index 766c85c4393b..6d221c69a244 100644
--- a/typo3/sysext/extbase/Classes/Mvc/View/GenericViewResolver.php
+++ b/typo3/sysext/extbase/Classes/Mvc/View/GenericViewResolver.php
@@ -2,8 +2,6 @@
 
 declare(strict_types=1);
 
-namespace TYPO3\CMS\Extbase\Mvc\View;
-
 /*
  * This file is part of the TYPO3 CMS project.
  *
@@ -17,6 +15,8 @@ namespace TYPO3\CMS\Extbase\Mvc\View;
  * The TYPO3 project - inspiring people to share!
  */
 
+namespace TYPO3\CMS\Extbase\Mvc\View;
+
 use TYPO3\CMS\Extbase\Object\ObjectManager;
 
 /**
diff --git a/typo3/sysext/extbase/Classes/Mvc/View/ViewResolverInterface.php b/typo3/sysext/extbase/Classes/Mvc/View/ViewResolverInterface.php
index 27ee2f9c3349..31f83241d62f 100644
--- a/typo3/sysext/extbase/Classes/Mvc/View/ViewResolverInterface.php
+++ b/typo3/sysext/extbase/Classes/Mvc/View/ViewResolverInterface.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\Mvc\View;
 
 /**
diff --git a/typo3/sysext/frontend/Resources/Private/Php/frontend.php b/typo3/sysext/frontend/Resources/Private/Php/frontend.php
index 4681a4a5cf39..1e49d8e86dd6 100644
--- a/typo3/sysext/frontend/Resources/Private/Php/frontend.php
+++ b/typo3/sysext/frontend/Resources/Private/Php/frontend.php
@@ -1,4 +1,5 @@
 <?php
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
diff --git a/typo3/sysext/install/Resources/Private/Php/install.php b/typo3/sysext/install/Resources/Private/Php/install.php
index b0a70eeab749..dc962f5942ce 100644
--- a/typo3/sysext/install/Resources/Private/Php/install.php
+++ b/typo3/sysext/install/Resources/Private/Php/install.php
@@ -1,4 +1,5 @@
 <?php
+
 /*
  * This file is part of the TYPO3 CMS project.
  *
-- 
GitLab