mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-06-29 15:38:41 +02:00
Feature GLP11
This commit is contained in:
21
.php-cs-fixer.php
Normal file
21
.php-cs-fixer.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?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);
|
Reference in New Issue
Block a user