Welcome to mirror list, hosted at ThFree Co, Russian Federation.

.php_cs.php - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 725fbd435fe80d6a9798a49485287c3586b5694d (plain)
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
<?php

declare(strict_types=1);

/**
 * PHPPgAdmin 6.1.2
 */

use Ergebnis\PhpCsFixer\Config;

$composerinfo = \json_decode(\file_get_contents('composer.json'));

$version = $composerinfo->extra->version;

$header = "PHPPgAdmin {$version}";

$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php71($header), [
    'declare_strict_types' => 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;