pay/.php-cs-fixer.php

23 lines
783 B
PHP
Raw Permalink Normal View History

2019-09-08 22:13:53 +08:00
<?php
$finder = PhpCsFixer\Finder::create()
2024-02-01 18:23:53 +08:00
->in('src');
2019-09-08 22:13:53 +08:00
2021-06-13 23:57:39 +08:00
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
2019-09-08 22:13:53 +08:00
->setUsingCache(false)
->setRiskyAllowed(true)
2019-09-08 22:13:53 +08:00
->setRules([
2023-04-09 18:28:30 +08:00
'@PhpCsFixer' => true,
'declare_strict_types' => true,
2023-04-09 18:28:30 +08:00
'single_line_comment_style' => ['comment_types' => ['hash']],
'general_phpdoc_annotation_remove' => ['annotations' => ['author'], 'case_sensitive' => false],
2022-11-01 16:15:17 +08:00
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
2023-04-09 18:28:30 +08:00
'import_functions' => true,
2021-07-09 23:05:02 +08:00
],
2023-06-10 12:58:57 +08:00
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
2019-09-08 22:13:53 +08:00
])
->setFinder($finder);