mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-28 06:58:43 +02:00
22 lines
454 B
PHP
22 lines
454 B
PHP
<?php
|
|
|
|
use PhpCsFixer\Config;
|
|
use PhpCsFixer\Finder;
|
|
|
|
$finder = Finder::create()
|
|
->in(__DIR__)
|
|
->name('*.php')
|
|
->ignoreVCSIgnored(true);
|
|
|
|
$config = new Config();
|
|
|
|
$rules = [
|
|
'@PER-CS2.0' => true,
|
|
'trailing_comma_in_multiline' => ['elements' => ['arguments', 'array_destructuring', 'arrays']], // For PHP 7.4 compatibility
|
|
];
|
|
|
|
return $config
|
|
->setRules($rules)
|
|
->setFinder($finder)
|
|
->setUsingCache(false);
|