mailgun-php/.php_cs
Tobias Nyholm 519fd7a674
Added proper PHP CS fixer rules (#527)
* Added proper PHP CS fixer rules

* Adding Symfony cs rules

* Updated CS on tests
2019-01-07 06:12:53 +01:00

33 lines
833 B
PHP

<?php
$header = <<<TXT
Copyright (C) 2013 Mailgun
This software may be modified and distributed under the terms
of the MIT license. See the LICENSE file for details.
TXT;
$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'],
'declare_strict_types' => false, // true
'no_empty_phpdoc' => true,
'no_superfluous_phpdoc_tags' => false, // true
'header_comment' => [
'commentType' => 'comment',
'header' => $header,
'location' => 'after_declare_strict',
'separate' => 'both',
],
])
->setFinder($finder)
;