forked from joomla/framework.joomla.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
34 lines (31 loc) · 987 Bytes
/
.php-cs-fixer.dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/**
* Joomla! Framework Status Application
*
* @copyright Copyright (C) 2023 Open Source Matters, Inc. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License Version 2 or Later
*/
$mainFinder = PhpCsFixer\Finder::create()
->in(
[
__DIR__ . '/bin',
__DIR__ . '/src',
__DIR__ . '/www',
]
);
$config = new PhpCsFixer\Config();
$config
->setRiskyAllowed(true)
->setHideProgress(false)
->setUsingCache(false)
->setRules(
[
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'no_trailing_comma_in_list_call' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space_minimal', '=' => 'align']]
]
)
->setFinder($mainFinder);
return $config;