2016-10-15 03:20:46 +03:00
|
|
|
<?php
|
|
|
|
|
2019-01-07 08:12:53 +03:00
|
|
|
$header = <<<TXT
|
|
|
|
Copyright (C) 2013 Mailgun
|
2016-10-15 03:20:46 +03:00
|
|
|
|
2019-01-07 08:12:53 +03:00
|
|
|
This software may be modified and distributed under the terms
|
|
|
|
of the MIT license. See the LICENSE file for details.
|
|
|
|
TXT;
|
2016-10-15 03:20:46 +03:00
|
|
|
|
2019-01-07 08:12:53 +03:00
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
|
|
->in('src')
|
|
|
|
->in('tests');
|
|
|
|
|
|
|
|
return PhpCsFixer\Config::create()
|
|
|
|
->setRiskyAllowed(true)
|
|
|
|
->setRules([
|
|
|
|
'@PSR2' => true,
|
|
|
|
'@Symfony' => true,
|
|
|
|
'strict_param' => true,
|
|
|
|
'array_syntax' => ['syntax' => 'short'],
|
2019-01-09 22:32:09 +03:00
|
|
|
'declare_strict_types' => true,
|
2019-01-07 08:12:53 +03:00
|
|
|
'no_empty_phpdoc' => true,
|
2019-01-09 22:32:09 +03:00
|
|
|
'no_superfluous_phpdoc_tags' => true,
|
2019-01-07 08:12:53 +03:00
|
|
|
'header_comment' => [
|
|
|
|
'commentType' => 'comment',
|
|
|
|
'header' => $header,
|
|
|
|
'location' => 'after_declare_strict',
|
|
|
|
'separate' => 'both',
|
|
|
|
],
|
|
|
|
])
|
|
|
|
->setFinder($finder)
|
|
|
|
;
|