mirror of
https://github.com/justinrainbow/json-schema.git
synced 2025-05-03 04:48:11 +02:00
35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
|
|
$finder = new PhpCsFixer\Finder();
|
|
$config = new PhpCsFixer\Config('json-schema', 'json-schema style guide');
|
|
$finder->in(__DIR__);
|
|
|
|
/* Based on ^2.1 of php-cs-fixer */
|
|
$config
|
|
->setRules(array(
|
|
// default
|
|
'@PSR2' => true,
|
|
'@Symfony' => true,
|
|
// additionally
|
|
'align_multiline_comment' => array('comment_type' => 'phpdocs_like'),
|
|
'array_syntax' => array('syntax' => 'long'),
|
|
'binary_operator_spaces' => false,
|
|
'concat_space' => array('spacing' => 'one'),
|
|
'no_unused_imports' => false,
|
|
'no_useless_else' => true,
|
|
'no_useless_return' => true,
|
|
'ordered_imports' => true,
|
|
'phpdoc_no_package' => false,
|
|
'phpdoc_order' => true,
|
|
'phpdoc_summary' => false,
|
|
'pre_increment' => false,
|
|
'trailing_comma_in_multiline_array' => false,
|
|
'simplified_null_return' => false,
|
|
'yoda_style' => null,
|
|
'increment_style' => false,
|
|
))
|
|
->setFinder($finder)
|
|
;
|
|
|
|
return $config;
|