29 lines
980 B
PHP
29 lines
980 B
PHP
#!/usr/bin/env php
|
|
<?php
|
|
|
|
return (new PhpCsFixer\Config())
|
|
->setRiskyAllowed(true)
|
|
->setRules([
|
|
'@PhpCsFixer' => true,
|
|
'@PhpCsFixer:risky' => true,
|
|
'@PSR12' => true,
|
|
'@PSR12:risky' => true,
|
|
'braces' => [
|
|
'allow_single_line_closure' => true,
|
|
],
|
|
'blank_line_before_statement' => [
|
|
'statements' => ['continue', 'do', 'die', 'exit', 'goto', 'if', 'return', 'switch', 'throw', 'try'],
|
|
],
|
|
'declare_strict_types' => true,
|
|
'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false],
|
|
'php_unit_internal_class' => false,
|
|
'php_unit_test_case_static_method_calls'=> ['call_type' => 'self'],
|
|
'php_unit_test_class_requires_covers' => false,
|
|
'phpdoc_to_comment' => false,
|
|
'yoda_style' => true,
|
|
])
|
|
->setFinder(
|
|
PhpCsFixer\Finder::create()
|
|
->in(__DIR__)
|
|
);
|