This repository was archived by the owner on Oct 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +62
-2
lines changed
Expand file tree Collapse file tree 3 files changed +62
-2
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ jobs:
111111
112112 -
113113 name : " Run phpstan/phpstan"
114- run : " vendor/bin/phpstan analyse -c phpstan.neon.dist "
114+ run : " vendor/bin/phpstan analyse --level=7 lib
115115
116116 tests:
117117 needs:
Original file line number Diff line number Diff line change 11composer.lock
22vendor
3- docs /build
3+ .phpunit.result.cache
4+ .php_cs.cache
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ finder = PhpCsFixer \Finder::create ()
4+ ->in ([
5+ __DIR__ . '/lib ' ,
6+ __DIR__ . '/tests ' ,
7+ ])
8+ ->exclude ([
9+ 'Attributes '
10+ ])
11+ ;
12+
13+ return PhpCsFixer \Config::create ()
14+ ->setRiskyAllowed (true )
15+ ->setRules ([
16+ '@PSR2 ' => true ,
17+ 'void_return ' => true ,
18+ 'binary_operator_spaces ' => [ 'align_double_arrow ' => false ],
19+ 'blank_line_before_statement ' => [
20+ 'statements ' => [
21+ 'break ' ,
22+ 'continue ' ,
23+ 'declare ' ,
24+ 'default ' ,
25+ 'die ' ,
26+ 'do ' ,
27+ 'exit ' ,
28+ 'for ' ,
29+ 'foreach ' ,
30+ 'goto ' ,
31+ 'if ' ,
32+ 'include ' ,
33+ 'include_once ' ,
34+ 'require ' ,
35+ 'require_once ' ,
36+ 'return ' ,
37+ 'switch ' ,
38+ 'throw ' ,
39+ 'try ' ,
40+ 'while ' ,
41+ 'yield ' ,
42+ ],
43+ ],
44+ 'ordered_imports ' => true ,
45+ 'concat_space ' => false ,
46+ 'method_argument_space ' => false ,
47+ 'no_unused_imports ' => true ,
48+ 'ordered_imports ' => true ,
49+ 'php_unit_set_up_tear_down_visibility ' => true ,
50+ 'phpdoc_align ' => [],
51+ 'phpdoc_indent ' => false ,
52+ 'phpdoc_separation ' => true ,
53+ 'no_superfluous_phpdoc_tags ' => [
54+ 'allow_mixed ' => true
55+ ],
56+ 'fully_qualified_strict_types ' => true ,
57+ ])
58+ ->setFinder ($ finder )
59+ ;
You can’t perform that action at this time.
0 commit comments