forked from cvc-digital/typo3-saml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
48 lines (42 loc) · 1.49 KB
/
.php-cs-fixer.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
$headerComment = <<<DOC
SAML extension for TYPO3 CMS
Copyright (C) 2022 CARL von CHIARI GmbH
This file is part of the TYPO3 CMS project.
It is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License, either version 3
of the License, or any later version.
For the full copyright and license information, please read the
LICENSE file that was distributed with this source code.
The TYPO3 project - inspiring people to share!
DOC;
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'mb_str_functions' => true,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'semicolon_after_instruction' => true,
'simplified_null_return' => true,
'header_comment' => [
'header' => $headerComment,
],
'yoda_style' => false,
])
->setRiskyAllowed(true)
->setFinder(PhpCsFixer\Finder::create()->in('./Classes'))
->setUsingCache(true)
;