forked from phpbrew/phpbrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
39 lines (32 loc) · 1.05 KB
/
.php-cs-fixer.php
File metadata and controls
39 lines (32 loc) · 1.05 KB
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
<?php
declare(strict_types=1);
require_once __DIR__.'/vendor-bin/php-cs-fixer/vendor/fidry/php-cs-fixer-config/src/FidryConfig.php';
use Fidry\PhpCsFixerConfig\FidryConfig;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
$finder = Finder::create()
->in(__DIR__)
->exclude([
'dist',
'.github',
'.phive',
'tools',
'vendor',
'vendor-bin',
]);
$config = new FidryConfig(null, 72000);
$config->addRules([
// For PHP 7.2 compat
'get_class_to_class_keyword' => false,
'heredoc_indentation' => false,
'trailing_comma_in_multiline' => false,
'use_arrow_functions' => false,
'declare_strict_types' => false, // TODO: requires some work to be done
'concat_space' => false,
'mb_str_functions' => false,
'no_trailing_whitespace_in_string' => false,
'yoda_style' => false,
]);
$config->setParallelConfig(ParallelConfigFactory::detect());
$config->setCacheFile(__DIR__ . '/dist/php-cs-fixer/.php-cs-fixer.cache');
return $config->setFinder($finder);