1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-12 03:24:26 +01:00
guzzle/.php_cs.dist
2019-12-21 22:50:57 +01:00

41 lines
1.4 KiB
PHP

<?php
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => false,
'function_to_constant' => ['functions' => ['php_sapi_name']],
'concat_space' => ['spacing'=>'one'],
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'php_unit_no_expectation_annotation' => ['target' => 'newest'],
'php_unit_expectation' => ['target' => 'newest'],
'php_unit_dedicate_assert_internal_type' => ['target' => 'newest'],
'no_empty_phpdoc' => true,
'no_extra_blank_lines' => true,
'ordered_imports' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
'no_blank_lines_after_phpdoc' => true,
'no_unused_imports' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'phpdoc_trim' => true,
'phpdoc_scalar' => true,
'phpdoc_types' => true,
'phpdoc_var_without_name' => true,
'phpdoc_single_line_var_spacing' => true,
'phpdoc_separation' => true,
'phpdoc_align' => ['align'=>'vertical'],
'visibility_required' => true,
// 'native_function_invocation' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
->name('*.php')
)
;
return $config;