-
Notifications
You must be signed in to change notification settings - Fork 79
/
.php-cs-fixer.php
45 lines (39 loc) · 1009 Bytes
/
.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
<?php
declare(strict_types=1);
if (PHP_SAPI !== 'cli') {
die('This script supports command line usage only. Please check your command.');
}
$config = \TYPO3\CodingStandards\CsFixerConfig::create()
->setHeader();
$config->addRules([
'no_blank_lines_after_class_opening' => true,
'self_accessor' => true,
'visibility_required' => true,
'fully_qualified_strict_types' => true,
'void_return' => true,
'is_null' => true,
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
]);
$config
->getFinder()
->name('*.php')
->in(__DIR__)
->exclude(
[
'.Build',
'.github',
'Configuration',
'Documentation',
'Resources',
'Tests/Fixtures',
]
)
->notName([
'ext_localconf.php',
'ext_tables.php',
'ext_emconf.php',
'SpycYAMLParser.php',
])
->depth('> 1')
;
return $config;