kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
129 stars 30 forks source link

Slight Problem with gap after ? in Ternary Operator #145

Closed Arifursdev closed 2 months ago

Arifursdev commented 2 months ago
// before format
$a = 1 === 1 ? 1 : 2; 

$c = $isTrue ? self::getAltText($id) : ''; 

$c = $isTrue ? static::getAltText($id) : ''; 

after format when static is used

// after format
$a = 1 === 1 ? 1 : 2; ✅

$c = $isTrue ? self::getAltText( $id ) : '';  ✅

$c = $isTrue?static::getAltText( $id ) : '';  ❌
driade commented 2 months ago

Hi, good morning. Got it, I'll take a look.

driade commented 2 months ago

Hi @Arifursdev this should be fixed.

Arifursdev commented 2 months ago

@driade Thank you