getch/.php-cs-fixer.dist.php

19 lines
423 B
PHP
Raw Normal View History

2020-12-22 14:19:32 -08:00
<?php
2024-07-18 12:34:40 -07:00
use PhpCsFixer\Config;
2024-07-18 12:44:34 -07:00
$header = file_exists(__DIR__.'/header.txt') ? file_get_contents(__DIR__.'/header.txt') : '';
2020-12-22 14:19:32 -08:00
$finder = PhpCsFixer\Finder::create()
2024-07-18 12:34:40 -07:00
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
2020-12-22 14:19:32 -08:00
;
2024-07-18 12:34:40 -07:00
return (new Config())
2024-07-18 12:44:34 -07:00
2020-12-22 14:19:32 -08:00
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
2024-07-18 12:44:34 -07:00
'header_comment' => ['header' => $header],
2020-12-22 14:19:32 -08:00
])
->setFinder($finder)
;