Skip to content

Commit

Permalink
Merge pull request #43 from mtarld/fix/php-cs-fixer-trailing-comma
Browse files Browse the repository at this point in the history
fix: php cs fixer trailing comma
  • Loading branch information
mtarld authored Jul 5, 2023
2 parents 4ebf1d3 + de5c0c0 commit a7608c6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'trailing_comma_in_multiline' => true,
'trailing_comma_in_multiline' => [
'elements' => ['arguments', 'arrays', 'match', 'parameters'],
],
'ordered_imports' => [
'imports_order' => ['class', 'function', 'const'],
'sort_algorithm' => 'alpha',
Expand Down
2 changes: 1 addition & 1 deletion config/packages/doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
],
],
],
]
],
);
if ('test' === $containerConfigurator->env()) {
$containerConfigurator->extension('doctrine', [
Expand Down
2 changes: 1 addition & 1 deletion config/packages/framework.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
'php_errors' => [
'log' => 4096,
],
]
],
);
if ('test' === $containerConfigurator->env()) {
$containerConfigurator->extension('framework', [
Expand Down
2 changes: 1 addition & 1 deletion config/packages/nelmio_cors.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
'max_age' => 3600,
],
'paths' => ['^/' => null],
]
],
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function __invoke(AnonymizeBooksCommand $command): void

foreach ($books as $book) {
$book->update(
author: new Author($command->anonymizedName)
author: new Author($command->anonymizedName),
);

$this->bookRepository->save($book);
Expand Down
2 changes: 1 addition & 1 deletion src/BookStore/Domain/Model/Book.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function update(
?BookDescription $description = null,
?Author $author = null,
?BookContent $content = null,
?Price $price = null
?Price $price = null,
): void {
$this->name = $name ?? $this->name;
$this->description = $description ?? $this->description;
Expand Down

0 comments on commit a7608c6

Please sign in to comment.