This repository has been archived on 2020-11-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pingan/vendor/scrivo/highlight.php/.php_cs.dist
2020-08-06 16:37:53 +08:00

34 lines
877 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->in('demo')
->in('Highlight')
->in('HighlightUtilities')
->in('test')
->in('tools')
->exclude('tools/lib_*')
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'long'],
'concat_space' => ['spacing' => 'one'],
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_align' => true,
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'single_quote' => false,
'ternary_to_null_coalescing' => false,
'trailing_comma_in_multiline_array' => true,
'yoda_style' => [
'equal' => false,
'identical' => false,
],
])
->setFinder($finder)
;