Skip to content

Commit 73d7efb

Browse files
committed
minor PHP-CS-Fixer#1722 Renamed not_operators_with_space to not_operator_with_space (GrahamCampbell)
This PR was squashed before being merged into the 2.0-dev branch (closes PHP-CS-Fixer#1722). Discussion ---------- Renamed not_operators_with_space to not_operator_with_space Commits ------- d476ba2 Renamed not_operators_with_space to not_operator_with_space
2 parents 5940545 + d476ba2 commit 73d7efb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -447,16 +447,16 @@ Choose from the list of available fixers:
447447
MUST NOT be a whitespace
448448
before each comma.
449449

450+
* **not_operator_with_space**
451+
Logical NOT operators (!)
452+
should have leading and
453+
trailing whitespaces.
454+
450455
* **not_operator_with_successor_space**
451456
Logical NOT operators (!)
452457
should have one trailing
453458
whitespace.
454459

455-
* **not_operators_with_space**
456-
Logical NOT operators (!)
457-
should have leading and
458-
trailing whitespaces.
459-
460460
* **object_operator_without_whitespace** [@Symfony]
461461
There should not be space
462462
before or after object

src/Fixer/Contrib/NotOperatorsWithSpaceFixer.php renamed to src/Fixer/Contrib/NotOperatorWithSpaceFixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* @author Javier Spagnoletti <[email protected]>
2121
*/
22-
final class NotOperatorsWithSpaceFixer extends AbstractFixer
22+
final class NotOperatorWithSpaceFixer extends AbstractFixer
2323
{
2424
/**
2525
* {@inheritdoc}

tests/Fixer/Contrib/NotOperatorsWithSpaceFixerTest.php renamed to tests/Fixer/Contrib/NotOperatorWithSpaceFixerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
* @internal
2020
*/
21-
final class NotOperatorsWithSpaceFixerTest extends AbstractFixerTestCase
21+
final class NotOperatorWithSpaceFixerTest extends AbstractFixerTestCase
2222
{
2323
/**
2424
* @dataProvider provideCases

tests/FixerFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function getFixersPriorityCases()
246246
array($fixers['no_unused_imports'], $fixers['blank_line_after_namespace']), // tested also in: no_unused_imports,blank_line_after_namespace.test
247247
array($fixers['unix_line_endings'], $fixers['single_blank_line_at_eof']),
248248
array($fixers['php_unit_strict'], $fixers['php_unit_construct']),
249-
array($fixers['unary_operator_spaces'], $fixers['not_operators_with_space']),
249+
array($fixers['unary_operator_spaces'], $fixers['not_operator_with_space']),
250250
array($fixers['unary_operator_spaces'], $fixers['not_operator_with_successor_space']),
251251
array($fixers['method_separation'], $fixers['braces']),
252252
array($fixers['method_separation'], $fixers['no_tab_indentation']),

0 commit comments

Comments
 (0)