mirror of
https://github.com/retailcrm/mailgun-php.git
synced 2024-11-28 07:46:07 +03:00
dd7c1d2361
Declare strict and no superfluous phpdoc
33 lines
815 B
PHP
33 lines
815 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' => true,
|
|
'no_empty_phpdoc' => true,
|
|
'no_superfluous_phpdoc_tags' => true,
|
|
'header_comment' => [
|
|
'commentType' => 'comment',
|
|
'header' => $header,
|
|
'location' => 'after_declare_strict',
|
|
'separate' => 'both',
|
|
],
|
|
])
|
|
->setFinder($finder)
|
|
;
|