Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
[PATCH] Updated CS Fixer config and run
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Feb 27, 2019
1 parent 1d2ebb6 commit 9cb0544
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;

$rules = [
];

$finder = PhpCsFixer\Finder::create()
->in([ __DIR__.'/src', __DIR__.'/tests'])
;
Expand All @@ -19,8 +16,9 @@ $config = PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHP70Migration' => true,
'@PHP71Migration:risky' => true,
'@PHPUnit60Migration:risky' => true,
'header_comment' => [
'header' => $header,
Expand All @@ -31,6 +29,12 @@ $config = PhpCsFixer\Config::create()
'binary_operator_spaces' => [
'default' => 'align',
],
'method_chaining_indentation' => false,
'phpdoc_types_order' => [
'null_adjustment' => 'always_last',
],
'php_unit_internal_class' => false,
'php_unit_test_class_requires_covers' => false,
])
->setFinder($finder)
;
Expand Down

0 comments on commit 9cb0544

Please sign in to comment.