Skip to content

Commit d46febf

Browse files
committed
Docs: Add comments to various fixers
1 parent f2ed951 commit d46febf

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

ecs.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,9 @@
285285
NoUnreachableDefaultArgumentValueFixer::class,
286286
// There must be no `sprintf` calls with only the first argument.
287287
NoUselessSprintfFixer::class,
288-
288+
// There must not be a space before colon in return type declarations.
289289
ReturnTypeDeclarationFixer::class,
290-
290+
// Add `void` return type to functions with missing or empty return statements.
291291
VoidReturnFixer::class,
292292
// Remove leading slashes in `use` clauses.
293293
NoLeadingImportSlashFixer::class,
@@ -307,23 +307,23 @@
307307
CleanNamespaceFixer::class,
308308
// The namespace declaration line shouldn't contain leading whitespace.
309309
NoLeadingNamespaceWhitespaceFixer::class,
310-
310+
// Binary operators should be surrounded by exactly one single space.
311311
BinaryOperatorSpacesFixer::class,
312312
// There must be no space around scope resolution double colons
313313
NoSpaceAroundDoubleColonFixer::class,
314-
314+
// All instances created with new keyword must be followed by parentheses.
315315
NewWithParenthesesFixer::class,
316-
316+
// There should not be space before or after object operators `->` and `?->`.
317317
ObjectOperatorWithoutWhitespaceFixer::class,
318-
318+
// Replace all `<>` with `!=`.
319319
StandardizeNotEqualsFixer::class,
320320
// Standardize spaces around ternary operator.
321321
TernaryOperatorSpacesFixer::class,
322322
// Use the Elvis operator `?:` where possible.
323323
TernaryToElvisOperatorFixer::class,
324324
// Use `null` coalescing operator `??` where possible.
325325
TernaryToNullCoalescingFixer::class,
326-
326+
// Unary operators should be placed adjacent (without a space) to their operands.
327327
UnaryOperatorSpacesFixer::class,
328328

329329
NoBlankLinesAfterPhpdocFixer::class,

0 commit comments

Comments
 (0)