Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 9f1d87f

Browse files
committed
Added config files
1 parent e522f82 commit 9f1d87f

File tree

3 files changed

+62
-2
lines changed

3 files changed

+62
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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:

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
composer.lock
22
vendor
3-
docs/build
3+
.phpunit.result.cache
4+
.php_cs.cache

.php_cs.dist

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
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+
;

0 commit comments

Comments
 (0)