Skip to content

Commit

Permalink
Docs: Add comments to various fixers
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed May 7, 2024
1 parent c4f7853 commit df6d309
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@
NoUnreachableDefaultArgumentValueFixer::class,
// There must be no `sprintf` calls with only the first argument.
NoUselessSprintfFixer::class,

// There must not be a space before colon in return type declarations.
ReturnTypeDeclarationFixer::class,

// Add `void` return type to functions with missing or empty return statements.
VoidReturnFixer::class,
// Remove leading slashes in `use` clauses.
NoLeadingImportSlashFixer::class,
Expand All @@ -306,23 +306,23 @@
CleanNamespaceFixer::class,
// The namespace declaration line shouldn't contain leading whitespace.
NoLeadingNamespaceWhitespaceFixer::class,

// Binary operators should be surrounded by exactly one single space.
BinaryOperatorSpacesFixer::class,
// There must be no space around scope resolution double colons
NoSpaceAroundDoubleColonFixer::class,

// All instances created with new keyword must be followed by parentheses.
NewWithParenthesesFixer::class,

// There should not be space before or after object operators `->` and `?->`.
ObjectOperatorWithoutWhitespaceFixer::class,

// Replace all `<>` with `!=`.
StandardizeNotEqualsFixer::class,
// Standardize spaces around ternary operator.
TernaryOperatorSpacesFixer::class,
// Use the Elvis operator `?:` where possible.
TernaryToElvisOperatorFixer::class,
// Use `null` coalescing operator `??` where possible.
TernaryToNullCoalescingFixer::class,

// Unary operators should be placed adjacent (without a space) to their operands.
UnaryOperatorSpacesFixer::class,

NoBlankLinesAfterPhpdocFixer::class,
Expand Down

0 comments on commit df6d309

Please sign in to comment.