|
284 | 284 | NoUnreachableDefaultArgumentValueFixer::class,
|
285 | 285 | // There must be no `sprintf` calls with only the first argument.
|
286 | 286 | NoUselessSprintfFixer::class,
|
287 |
| - |
| 287 | + // There must not be a space before colon in return type declarations. |
288 | 288 | ReturnTypeDeclarationFixer::class,
|
289 |
| - |
| 289 | + // Add `void` return type to functions with missing or empty return statements. |
290 | 290 | VoidReturnFixer::class,
|
291 | 291 | // Remove leading slashes in `use` clauses.
|
292 | 292 | NoLeadingImportSlashFixer::class,
|
|
306 | 306 | CleanNamespaceFixer::class,
|
307 | 307 | // The namespace declaration line shouldn't contain leading whitespace.
|
308 | 308 | NoLeadingNamespaceWhitespaceFixer::class,
|
309 |
| - |
| 309 | + // Binary operators should be surrounded by exactly one single space. |
310 | 310 | BinaryOperatorSpacesFixer::class,
|
311 | 311 | // There must be no space around scope resolution double colons
|
312 | 312 | NoSpaceAroundDoubleColonFixer::class,
|
313 |
| - |
| 313 | + // All instances created with new keyword must be followed by parentheses. |
314 | 314 | NewWithParenthesesFixer::class,
|
315 |
| - |
| 315 | + // There should not be space before or after object operators `->` and `?->`. |
316 | 316 | ObjectOperatorWithoutWhitespaceFixer::class,
|
317 |
| - |
| 317 | + // Replace all `<>` with `!=`. |
318 | 318 | StandardizeNotEqualsFixer::class,
|
319 | 319 | // Standardize spaces around ternary operator.
|
320 | 320 | TernaryOperatorSpacesFixer::class,
|
321 | 321 | // Use the Elvis operator `?:` where possible.
|
322 | 322 | TernaryToElvisOperatorFixer::class,
|
323 | 323 | // Use `null` coalescing operator `??` where possible.
|
324 | 324 | TernaryToNullCoalescingFixer::class,
|
325 |
| - |
| 325 | + // Unary operators should be placed adjacent (without a space) to their operands. |
326 | 326 | UnaryOperatorSpacesFixer::class,
|
327 | 327 |
|
328 | 328 | NoBlankLinesAfterPhpdocFixer::class,
|
|
0 commit comments