mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:01:24 +00:00
33 lines
751 B
Plaintext
33 lines
751 B
Plaintext
<?php
|
|
/**
|
|
* Config for PHP-CS-Fixer ver2
|
|
*/
|
|
$rules = [
|
|
'@PSR2' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'no_multiline_whitespace_before_semicolons' => true,
|
|
'no_short_echo_tag' => true,
|
|
'no_unused_imports' => true,
|
|
'not_operator_with_successor_space' => true,
|
|
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
|
|
];
|
|
$excludes = [
|
|
// add exclude project directory
|
|
'vendor',
|
|
'resources',
|
|
'tests',
|
|
'storage',
|
|
'docs',
|
|
'public',
|
|
'bootstrap',
|
|
];
|
|
return PhpCsFixer\Config::create()
|
|
->setRules($rules)
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->exclude($excludes)
|
|
->in(__DIR__)
|
|
->name('*.php')
|
|
->notName('*.blade.php')
|
|
);
|