Skip to content

Commit c588da2

Browse files
committed
PSR2 for now
1 parent eab439c commit c588da2

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

.php-cs-fixer.dist.php

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,24 @@
22

33
$finder = PhpCsFixer\Finder::create()
44
->exclude('oql')
5-
//->in(__DIR__ . '/addons')
6-
// ->in(__DIR__ . '/application')
7-
//->in(__DIR__ . '/core')
8-
// ->in(__DIR__ . '/datamodels')
9-
// ->in(__DIR__ . '/dictionaries')
10-
// ->in(__DIR__ . '/pages')
11-
// ->in(__DIR__ . '/portal')
12-
// ->in(__DIR__ . '/setup')
13-
// ->in(__DIR__ . '/sources')
14-
// ->in(__DIR__ . '/synchro')
15-
// ->in(__DIR__ . '/tests')
5+
->in(__DIR__.'/addons')
6+
->in(__DIR__.'/application')
7+
->in(__DIR__.'/core')
8+
->in(__DIR__.'/datamodels')
9+
->in(__DIR__.'/dictionaries')
10+
->in(__DIR__.'/pages')
11+
->in(__DIR__.'/portal')
12+
->in(__DIR__.'/setup')
13+
->in(__DIR__.'/sources')
14+
->in(__DIR__.'/synchro')
15+
->in(__DIR__.'/tests')
1616
->in(__DIR__ . '/webservices')
1717
;
1818

1919
$config = new PhpCsFixer\Config();
2020
return $config->setRiskyAllowed(true)
2121
->setRules([
22-
'@PSR12' => true,
23-
// We use PSR12 with consistent brace placement.
24-
'curly_braces_position' => [
25-
'functions_opening_brace' => 'same_line',
26-
'classes_opening_brace' => 'same_line',
27-
],
28-
// declare(strict_types=1) on the same line as <?php.
29-
'blank_line_after_opening_tag' => false,
30-
'declare_strict_types' => true,
31-
// Keep argument formatting for now.
32-
'method_argument_space' => ['on_multiline' => 'ignore'],
33-
'phpdoc_align' => ['align' => 'left'],
34-
'phpdoc_trim' => true,
35-
'no_empty_phpdoc' => true,
36-
'no_superfluous_phpdoc_tags' => ['allow_mixed' => true],
22+
'@PSR2' => true,
3723
'no_extra_blank_lines' => true,
3824
])
3925
->setFinder($finder)

0 commit comments

Comments
 (0)