1
0
mirror of https://github.com/AlexKrunch/AnonIB-3D.git synced 2024-11-16 09:31:05 -05:00
AnonIB-3D/src_php/php/Libs/torrent-rw/.php_cs.dist
2019-08-17 10:21:07 +02:00

37 lines
1.4 KiB
PHP
Executable File

<?php
$config = PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'no_whitespace_in_blank_line' => true,
'phpdoc_align' => true,
'phpdoc_indent' => true,
'phpdoc_scalar' => true,
'phpdoc_separation' => true,
'short_scalar_cast' => true,
'single_blank_line_before_namespace' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
'whitespace_after_comma_in_array' => true,
'concat_space' => ["spacing" => "one"],
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'],
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['default' => 'align'],
'cast_spaces' => ['space' => 'single'],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->exclude('node_modules')
->exclude('plugins')
->notPath('adminer.php')
)
;
return $config;