-
-
Notifications
You must be signed in to change notification settings - Fork 156
/
.php-cs-fixer.dist.php
44 lines (42 loc) · 1.48 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
39
40
41
42
43
44
<?php
/**
* Box packing (3D bin packing, knapsack problem).
*
* @author Doug Wright
*/
declare(strict_types=1);
$config = new PhpCsFixer\Config();
return $config->setRules(
[
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP80Migration:risky' => true,
'@PHP81Migration' => true,
'@PHP82Migration' => true,
'concat_space' => ['spacing' => 'one'],
'fopen_flags' => ['b_mode' => true],
'native_function_invocation' => ['include' => ['@all']],
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
'phpdoc_separation' => false,
'yoda_style' => false,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'no_superfluous_phpdoc_tags' => ['allow_mixed' => false],
'header_comment' => [
'location' => 'after_open',
'comment_type' => 'PHPDoc',
'separate' => 'none',
'header' => "Box packing (3D bin packing, knapsack problem).\n\n@author Doug Wright",
],
'phpdoc_line_span' => true,
'phpdoc_to_comment' => false,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'none'],
]
)
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/features')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->append([__FILE__])
);