29 lines
696 B
PHP
29 lines
696 B
PHP
|
<?php
|
||
|
|
||
|
/*
|
||
|
* This file is part of the yoeunes/toastr package.
|
||
|
* (c) Younes KHOUBZA <younes.khoubza@gmail.com>
|
||
|
*/
|
||
|
|
||
|
$header = <<<'EOF'
|
||
|
This file is part of the yoeunes/toastr package.
|
||
|
(c) Younes KHOUBZA <younes.khoubza@gmail.com>
|
||
|
EOF;
|
||
|
|
||
|
$rules = array(
|
||
|
'@Symfony' => true,
|
||
|
'header_comment' => array('header' => $header),
|
||
|
'array_syntax' => array('syntax' => 'long'),
|
||
|
'visibility_required' => array('elements' => array('property', 'method')),
|
||
|
);
|
||
|
|
||
|
$finder = new PhpCsFixer\Finder();
|
||
|
$finder->in(__DIR__)->exclude(__DIR__.'/vendor');
|
||
|
|
||
|
$config = new PhpCsFixer\Config();
|
||
|
|
||
|
return $config->setFinder($finder)
|
||
|
->setUsingCache(false)
|
||
|
->setRiskyAllowed(true)
|
||
|
->setRules($rules);
|