Initial commit
This commit is contained in:
19
.php-cs-fixer.php
Normal file
19
.php-cs-fixer.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
$finder = PhpCsFixer\Finder::create()
|
||||
->in(__DIR__ . '/api')
|
||||
->name('*.php');
|
||||
|
||||
return (new PhpCsFixer\Config())
|
||||
->setRules([
|
||||
'@PSR12' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'no_unused_imports' => true,
|
||||
'no_trailing_whitespace' => true,
|
||||
'no_empty_statement' => true,
|
||||
'single_quote' => true,
|
||||
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
|
||||
'no_whitespace_in_blank_line' => true,
|
||||
])
|
||||
->setFinder($finder)
|
||||
->setRiskyAllowed(false);
|
||||
Reference in New Issue
Block a user