8
0
TestingTools/.php-cs-fixer.php

34 Zeilen
826 B
PHP

2022-11-11 11:30:45 +01:00
<?php
2024-06-16 13:53:57 +02:00
declare(strict_types=1);
2022-11-11 11:30:45 +01:00
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;
2024-06-16 13:53:57 +02:00
$header = <<<EOF
Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
https://www.d3data.de
@copyright (C) D3 Data Development (Inh. Thomas Dartsch)
@author D3 Data Development - Daniel Seifert <info@shopmodule.com>
@link https://www.oxidmodule.com
EOF;
2022-11-11 11:30:45 +01:00
$config = new PhpCsFixer\Config();
return $config->setRules([
2022-11-11 13:26:07 +01:00
'@PHP71Migration' => true,
2024-06-16 13:53:57 +02:00
'@PSR12' => true,
'header_comment' => [
'comment_type' => 'PHPDoc',
'header' => $header,
'location' => 'after_open',
'separate' => 'both',
],
2022-11-11 11:30:45 +01:00
])
->setFinder($finder)
;