Skip to content

Commit df6d309

Browse files
committed
Docs: Add comments to various fixers
1 parent c4f7853 commit df6d309

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
@@ -284,9 +284,9 @@
284284
NoUnreachableDefaultArgumentValueFixer::class,
285285
// There must be no `sprintf` calls with only the first argument.
286286
NoUselessSprintfFixer::class,
287-
287+
// There must not be a space before colon in return type declarations.
288288
ReturnTypeDeclarationFixer::class,
289-
289+
// Add `void` return type to functions with missing or empty return statements.
290290
VoidReturnFixer::class,
291291
// Remove leading slashes in `use` clauses.
292292
NoLeadingImportSlashFixer::class,
@@ -306,23 +306,23 @@
306306
CleanNamespaceFixer::class,
307307
// The namespace declaration line shouldn't contain leading whitespace.
308308
NoLeadingNamespaceWhitespaceFixer::class,
309-
309+
// Binary operators should be surrounded by exactly one single space.
310310
BinaryOperatorSpacesFixer::class,
311311
// There must be no space around scope resolution double colons
312312
NoSpaceAroundDoubleColonFixer::class,
313-
313+
// All instances created with new keyword must be followed by parentheses.
314314
NewWithParenthesesFixer::class,
315-
315+
// There should not be space before or after object operators `->` and `?->`.
316316
ObjectOperatorWithoutWhitespaceFixer::class,
317-
317+
// Replace all `<>` with `!=`.
318318
StandardizeNotEqualsFixer::class,
319319
// Standardize spaces around ternary operator.
320320
TernaryOperatorSpacesFixer::class,
321321
// Use the Elvis operator `?:` where possible.
322322
TernaryToElvisOperatorFixer::class,
323323
// Use `null` coalescing operator `??` where possible.
324324
TernaryToNullCoalescingFixer::class,
325-
325+
// Unary operators should be placed adjacent (without a space) to their operands.
326326
UnaryOperatorSpacesFixer::class,
327327

328328
NoBlankLinesAfterPhpdocFixer::class,

0 commit comments

Comments
 (0)