From 82c9d664b96f156c9e55b863388a79ae680e756a Mon Sep 17 00:00:00 2001 From: Owen Voke Date: Mon, 14 Oct 2024 09:47:17 +0100 Subject: [PATCH] feat(ecs): JIRA-13744 Add `standardize_not_equals` --- README.md | 1 + src/WorksomeEcsConfig.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index d353991..76694e8 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,7 @@ The Worksome code style extends the [PSR-12 base rule set](https://php-fig.org/p - [`SingleQuoteFixer`](https://cs.symfony.com/doc/rules/string_notation/single_quote.html) - [`SingleTraitInsertPerStatementFixer`](https://cs.symfony.com/doc/rules/class_notation/single_trait_insert_per_statement.html) - [`ShortScalarCastFixer`](https://cs.symfony.com/doc/rules/cast_notation/short_scalar_cast.html) +- [`StandardizeNotEqualsFixer`](https://cs.symfony.com/doc/rules/operator/standardize_not_equals.html) - [`NoEmptyStatementFixer`](https://cs.symfony.com/doc/rules/semicolon/no_empty_statement.html) - [`NoUnneededImportAliasFixer`](https://cs.symfony.com/doc/rules/import/no_unneeded_import_alias.html) - [`NoUnusedImportsFixer`](https://cs.symfony.com/doc/rules/import/no_unused_imports.html) diff --git a/src/WorksomeEcsConfig.php b/src/WorksomeEcsConfig.php index 2413fe1..3d26304 100644 --- a/src/WorksomeEcsConfig.php +++ b/src/WorksomeEcsConfig.php @@ -29,6 +29,7 @@ use PhpCsFixer\Fixer\ListNotation\ListSyntaxFixer; use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer; use PhpCsFixer\Fixer\Operator\OperatorLinebreakFixer; +use PhpCsFixer\Fixer\Operator\StandardizeNotEqualsFixer; use PhpCsFixer\Fixer\Operator\UnaryOperatorSpacesFixer; use PhpCsFixer\Fixer\Phpdoc\NoEmptyPhpdocFixer; use PhpCsFixer\Fixer\Phpdoc\PhpdocAlignFixer; @@ -211,6 +212,7 @@ public static function setup(ECSConfig $ecsConfig): void ClassAttributesSeparationFixer::class, PhpdocNoUselessInheritdocFixer::class, PhpdocTrimFixer::class, + StandardizeNotEqualsFixer::class, ]); }