Skip to content

Commit cb86708

Browse files
committed
Update cs fixer
1 parent 5f30a62 commit cb86708

File tree

3 files changed

+33
-25
lines changed

3 files changed

+33
-25
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
README.html
2+
*.cache

.php-cs-fixer.php

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__)
5+
->exclude('tests')
6+
->notName(['*.tpl.php'])
7+
;
8+
9+
$config = new PhpCsFixer\Config();
10+
11+
return $config->setRules([
12+
'@PSR1' => true,
13+
'@PSR2' => true,
14+
'@Symfony' => true,
15+
'concat_space' => false,
16+
'phpdoc_no_alias_tag' => false,
17+
'yoda_style' => false,
18+
'array_syntax' => false,
19+
'no_superfluous_phpdoc_tags' => false,
20+
'ordered_imports' => [
21+
'sort_algorithm' => 'alpha',
22+
'imports_order' => ['class', 'function', 'const'],
23+
],
24+
'blank_line_after_namespace' => true,
25+
'single_line_comment_style' => false,
26+
'visibility_required' => false,
27+
'phpdoc_to_comment' => false,
28+
'function_typehint_space' => false,
29+
])
30+
->setFinder($finder)
31+
;

.php_cs.dist

-25
This file was deleted.

0 commit comments

Comments
 (0)