forked from altcha-org/altcha-lib-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
38 lines (35 loc) · 1.04 KB
/
.php-cs-fixer.dist.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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
if (!file_exists(__DIR__ . '/src') || !file_exists(__DIR__ . '/tests')) {
exit(0);
}
return (new Config())
// @see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7777
->setParallelConfig(ParallelConfigFactory::detect())
->setRules([
'@PHP71Migration' => true,
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'protected_to_private' => false,
'phpdoc_annotation_without_dot' => false,
'increment_style' => [
'style' => 'post',
],
'phpdoc_types_order' => [
'null_adjustment' => 'always_first',
],
'concat_space' => [
'spacing' => 'one',
],
])
->setRiskyAllowed(true)
->setFinder(
(new Finder())
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->append([__FILE__])
)
->setCacheFile('.php-cs-fixer.cache');