forked from smalot/pdfparser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
33 lines (29 loc) · 869 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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests',
])
->name('*.php')
;
$config = new Config();
$config
->setFinder($finder)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'no_empty_phpdoc' => true,
'no_unused_imports' => true,
'no_superfluous_phpdoc_tags' => true,
'ordered_imports' => true,
'phpdoc_summary' => false,
'protected_to_private' => false,
'get_class_to_class_keyword' => false, // override for PHP < 8.0 (because ::class usage is not allowed there)
'modernize_strpos' => false, // override for PHP < 8.0 (because str_contains not available in PHP 7.x)
])
;
return $config;