Skip to content

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 ef092f9 commit 3af6143
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 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
6 changes: 4 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ private function addApiSection(ArrayNodeDefinition $node): void
->scalarNode('endpoint')->defaultValue('https://api.setlist.fm/rest/1.0/')->end()
->end()
->end()
->end();
->end()
;
}

/**
Expand All @@ -69,6 +70,7 @@ private function addHttpClientSection(ArrayNodeDefinition $node): void
->scalarNode('message_factory')->defaultValue('httplug.message_factory.default')->end()
->end()
->end()
->end();
->end()
;
}
}

0 comments on commit 3af6143

Please sign in to comment.