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