Skip to content

Print a space after elseif in the formatter - #24

Open
danslo wants to merge 1 commit into
rectorphp:mainfrom
danslo:fix-elseif-space
Open

danslo wants to merge 1 commit into
rectorphp:mainfrom
danslo:fix-elseif-space

Conversation

@danslo

@danslo danslo commented Nov 18, 2026

Copy link
Copy Markdown

The formatter wrote a space after if but none after elseif:

if ($foo) {
} elseif($bar) {
}

It now writes elseif ($bar), as it writes if ($foo). Updated the two formatter tests that expected the old spacing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant