Skip to content

Commit

Permalink
NewWithBraces configuration wording
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Sep 9, 2021
1 parent 16b2afa commit 9e25d8e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/rules/operator/new_with_braces.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Configuration
``named_class``
~~~~~~~~~~~~~~~

Whether named classes should be followed by braces.
Whether named classes should be followed by parentheses.

Allowed types: ``bool``

Expand All @@ -19,7 +19,7 @@ Default value: ``true``
``anonymous_class``
~~~~~~~~~~~~~~~~~~~

Whether anonymous classes should be followed by braces.
Whether anonymous classes should be followed by parentheses.

Allowed types: ``bool``

Expand Down
4 changes: 2 additions & 2 deletions src/Fixer/Operator/NewWithBracesFixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ protected function applyFix(\SplFileInfo $file, Tokens $tokens): void
protected function createConfigurationDefinition(): FixerConfigurationResolverInterface
{
return new FixerConfigurationResolver([
(new FixerOptionBuilder('named_class', 'Whether named classes should be followed by braces.'))
(new FixerOptionBuilder('named_class', 'Whether named classes should be followed by parentheses.'))
->setAllowedTypes(['bool'])
->setDefault(true)
->getOption(),
(new FixerOptionBuilder('anonymous_class', 'Whether anonymous classes should be followed by braces.'))
(new FixerOptionBuilder('anonymous_class', 'Whether anonymous classes should be followed by parentheses.'))
->setAllowedTypes(['bool'])
->setDefault(true)
->getOption(),
Expand Down

0 comments on commit 9e25d8e

Please sign in to comment.