2017-01-31 19:33:08 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return PhpCsFixer\Config::create()
|
|
|
|
->setRules([
|
|
|
|
'@PSR2' => true,
|
|
|
|
'array_syntax' => ['syntax' => 'short'],
|
2017-08-17 06:50:37 +00:00
|
|
|
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
|
2017-01-31 19:33:08 +00:00
|
|
|
'blank_line_after_opening_tag' => true,
|
2017-08-17 06:50:37 +00:00
|
|
|
'blank_line_before_return' => true,
|
|
|
|
'cast_spaces' => true,
|
|
|
|
'concat_space' => ['spacing' => 'none'],
|
|
|
|
'declare_strict_types' => true,
|
|
|
|
'method_separation' => true,
|
|
|
|
'no_blank_lines_after_class_opening' => true,
|
|
|
|
'no_spaces_around_offset' => ['positions' => ['inside', 'outside']],
|
|
|
|
'no_unneeded_control_parentheses' => true,
|
|
|
|
'no_unused_imports' => true,
|
|
|
|
'phpdoc_align' => true,
|
|
|
|
'phpdoc_no_access' => true,
|
|
|
|
'phpdoc_separation' => true,
|
|
|
|
'pre_increment' => true,
|
|
|
|
'single_quote' => true,
|
|
|
|
'trim_array_spaces' => true,
|
2017-01-31 19:33:08 +00:00
|
|
|
'single_blank_line_before_namespace' => true,
|
|
|
|
])
|
|
|
|
->setFinder(
|
|
|
|
PhpCsFixer\Finder::create()
|
|
|
|
->in(__DIR__ . '/src')
|
|
|
|
->in(__DIR__ . '/tests')
|
2017-05-13 10:57:32 +00:00
|
|
|
)
|
|
|
|
->setRiskyAllowed(true)
|
|
|
|
->setUsingCache(false);
|