blessing-skin-plugins/.php-cs-fixer.dist.php

20 lines
526 B
PHP
Raw Normal View History

2021-06-12 15:50:54 +08:00
<?php
$finder = PhpCsFixer\Finder::create()->in('plugins');
$config = new PhpCsFixer\Config();
return $config->setRules([
2023-01-27 10:19:43 +08:00
'@Symfony' => true,
'align_multiline_comment' => true,
'array_syntax' => ['syntax' => 'short'],
'increment_style' => ['style' => 'post'],
'list_syntax' => ['syntax' => 'short'],
'yoda_style' => false,
'global_namespace_import' => [
'import_constants' => true,
'import_functions' => true,
'import_classes' => null,
],
])
2021-06-12 15:50:54 +08:00
->setFinder($finder);