Skip to content

Add NoBlankLineBetweenImportsFixer to spaces set - #75

Merged
TomasVotruba merged 1 commit into
mainfrom
add-no-blank-line-between-imports-fixer
Sep 6, 2026
Merged

Add NoBlankLineBetweenImportsFixer to spaces set#75
TomasVotruba merged 1 commit into
mainfrom
add-no-blank-line-between-imports-fixer

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Adds NoBlankLineBetweenImportsFixer to the SpacesLevel set.

Removes blank lines between consecutive import use statements, while keeping the blank line after the namespace intact. Ported from a custom fixer used in the Mautic codebase (mautic/mautic#17280).

  • New fixer at packages/coding-standard/src/Fixer/Spacing/NoBlankLineBetweenImportsFixer.php
  • Registered in SpacesLevel::RULES (easy-pick whitespace group)
  • Covered with fixer test + fixtures

https://claude.ai/code/session_01HW65cppPCzg5wp2aMgEqKC

Removes blank lines between consecutive import use statements, keeping the blank line after the namespace intact.

Claude-Session: https://claude.ai/code/session_01HW65cppPCzg5wp2aMgEqKC
@TomasVotruba
TomasVotruba merged commit dc06bf3 into main Sep 6, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the add-no-blank-line-between-imports-fixer branch September 6, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant