Skip to content

Commit

Permalink
[TASK] styleguide: Prepare styleguide PHP file headers
Browse files Browse the repository at this point in the history
#470

Move header comment to correct position.
  • Loading branch information
lolli42 authored Nov 1, 2023
1 parent 5653204 commit 9bed46f
Show file tree
Hide file tree
Showing 91 changed files with 210 additions and 182 deletions.
1 change: 1 addition & 0 deletions Build/UnitTestsBootstrap.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/*
* This file is part of the TYPO3 CMS project.
*
Expand Down
13 changes: 13 additions & 0 deletions Build/php-cs-fixer/config.php
Original file line number Diff line number Diff line change
@@ -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!
*/

if (PHP_SAPI !== 'cli') {
die('This script supports command line usage only. Please check your command.');
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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
Expand Down
4 changes: 2 additions & 2 deletions Classes/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide;

/**
* General styleguide exception
*/
Expand Down
6 changes: 3 additions & 3 deletions Classes/Form/Element/User1Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\Form\Element;

/**
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\Form\Element;

use TYPO3\CMS\Backend\Form\Behavior\OnFieldChangeTrait;
use TYPO3\CMS\Backend\Form\Element\AbstractFormElement;
use TYPO3\CMS\Core\Page\JavaScriptModuleInstruction;
Expand Down
6 changes: 3 additions & 3 deletions Classes/Service/KauderwelschService.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\Service;

/**
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\Service;

/**
* Get test strings
*/
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator;

/**
* TcaDataGenerator exception
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Styleguide\Service\KauderwelschService;

Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/ConfigDefault.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/TypeCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/TypeColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/TypeDatetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use Doctrine\DBAL\Types\IntegerType;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\QueryHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use Doctrine\DBAL\Types\IntegerType;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\QueryHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/TypeEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/TypeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Core\DataHandling\DataHandler;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Core\Utility\StringUtility;
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/TypeFlex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Core\Configuration\FlexForm\FlexFormTools;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;
Expand Down
4 changes: 2 additions & 2 deletions Classes/TcaDataGenerator/FieldGenerator/TypeFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;
use TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

declare(strict_types=1);

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

/*
* This file is part of the TYPO3 CMS project.
*
Expand All @@ -17,6 +15,8 @@
* The TYPO3 project - inspiring people to share!
*/

namespace TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGenerator;

use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Styleguide\TcaDataGenerator\FieldGeneratorInterface;
use TYPO3\CMS\Styleguide\TcaDataGenerator\RecordFinder;
Expand Down
Loading

0 comments on commit 9bed46f

Please sign in to comment.