-
Notifications
You must be signed in to change notification settings - Fork 19
/
.php_cs.php
56 lines (46 loc) · 1.19 KB
/
.php_cs.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
49
50
51
52
53
54
55
56
<?php
declare(strict_types=1);
/**
* PHPPgAdmin6
*/
use Ergebnis\PhpCsFixer\Config;
$composerinfo = \json_decode(\file_get_contents('composer.json'));
$version = $composerinfo->extra->version;
$header = 'PHPPgAdmin6';
$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php74($header), [
'declare_strict_types' => false,
'void_return' => false,
'escape_implicit_backslashes' => false,
'final_class' => false,
'final_internal_class' => false,
'final_public_method_for_abstract_class' => false,
'final_static_access' => false,
'global_namespace_import' => false,
'fully_qualified_strict_types' => false,
'visibility_required' => [
'elements' => [
'method',
'property',
],
],
]);
$config->getFinder()
->ignoreDotFiles(false)
->in(__DIR__)
->notName('rector.php')
->exclude([
'.build',
'.configs',
'__pycache__',
'assets',
'docs',
'node_modules',
'temp',
'rector.php',
'src/router.php',
'vendor',
'.github',
])
->name('.php_cs.php');
$config->setCacheFile(__DIR__ . '/.build/phpcs/csfixer.cache');
return $config;