json-schema/.php_cs.dist

35 lines
1.0 KiB
Plaintext
Raw Normal View History

<?php
$finder = new PhpCsFixer\Finder();
2017-12-30 19:11:40 +01:00
$config = new PhpCsFixer\Config('json-schema');
$finder->in(__DIR__);
/* Based on ^2.1 of php-cs-fixer */
$config
->setRules(array(
// default
'@PSR2' => true,
'@Symfony' => true,
// additionally
'array_syntax' => array('syntax' => 'long'),
'binary_operator_spaces' => false,
'concat_space' => array('spacing' => 'one'),
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_no_package' => false,
'phpdoc_order' => true,
'phpdoc_summary' => false,
'pre_increment' => false,
'increment_style' => false,
'simplified_null_return' => false,
2017-12-31 13:17:17 +01:00
'trailing_comma_in_multiline_array' => false,
'yoda_style' => false,
'phpdoc_types_order' => array('null_adjustment' => 'none', 'sort_algorithm' => 'none'),
2021-07-21 16:18:28 +02:00
'no_superfluous_phpdoc_tags' => false,
))
->setFinder($finder)
;
return $config;