MailConfigChecker/.php-cs-fixer.php

29 lines
737 B
PHP
Raw Permalink Normal View History

2023-12-08 14:31:53 +01:00
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;
2024-08-22 10:11:08 +02:00
$fileHeaderComment = <<<EOF
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;
2023-12-08 14:31:53 +01:00
$config = new PhpCsFixer\Config();
return $config->setRules([
2024-08-22 10:11:08 +02:00
'header_comment' => [
'header' => $fileHeaderComment,
'comment_type' => 'PHPDoc',
'location' => 'after_open'
],
'@PHP80Migration' => true,
2023-12-08 14:31:53 +01:00
'@PSR12' => true
])
->setFinder($finder)
;