pay/.php-cs-fixer.php

23 lines
783 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->in('src');
return (new PhpCsFixer\Config())
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
->setUsingCache(false)
->setRiskyAllowed(true)
->setRules([
'@PhpCsFixer' => true,
'declare_strict_types' => true,
'single_line_comment_style' => ['comment_types' => ['hash']],
'general_phpdoc_annotation_remove' => ['annotations' => ['author'], 'case_sensitive' => false],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
])
->setFinder($finder);