-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.php
54 lines (54 loc) · 1.81 KB
/
.php_cs.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
45
46
47
48
49
50
51
52
53
54
<?php
/*
* This document has been generated with
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15.1|configurator
* you can change this configuration by importing this file.
*/
return PhpCsFixer\Config::create()
->setRules(
[
'@DoctrineAnnotation' => true,
'@PHP83Migration' => true,
'@PhpCsFixer' => true,
// Each line of multi-line DocComments must have an asterisk [PSR-5]
// and must be aligned with the first one.
'align_multiline_comment' => [
'comment_type' => 'phpdocs_like',
],
// Use `use` statements for importing types
'fully_qualified_strict_types' => [
'import_symbols' => true,
],
// Use `use` statements for global namespace types
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
// Replace control structure alternative syntax to use braces.
'no_alternative_syntax' => false,
// All PHPUnit test cases should have `@small`, `@medium` or
// `@large` annotation to enable run time limits.
'php_unit_size_class' => true,
// simplify if returns
'simplified_if_return' => true,
// yoda style
'yoda_style' => [
'equal' => false,
'identical' => false,
'less_and_greater' => false,
],
]
)
->setFinder(
PhpCsFixer\Finder::create()
->exclude(
[
'.git',
'node_modules',
'vendor',
]
)
->in(__DIR__)
)
;