[Formatting Bug]:
kudratov25 opened this issue · comments
Sherzod Kudratov commented
Platform
Windows
Template before formatting
<div class="form-group">
<label for="description">Define project scale</label><br/>
<label class="radio-inline"><input type="radio" wire:model="scope" value="smal" {{{ $scope == 'small' ? "checked" : "" }}}> Small</label>
<label class="radio-inline"><input type="radio" wire:model="scope" value="medium" {{{ $scope == 'medium' ? "checked" : "" }}}> Medium</label>
<label class="radio-inline"><input type="radio" wire:model="scope" value="large" {{{ $scope == 'large' ? "checked" : "" }}}> Large</label>
@error('scope') <span class="error">{{ $message }}</span> @enderror
</div>
Template after formatting
<div class="form-group">
<label for="description">Define project scale</label><br/>
<label class="radio-inline"><input type="radio" wire:model="scope" value="smal" {{{ $scope == 'small' ? "checked" : "" }}}> Small</label>
<label class="radio-inline"><input type="radio" wire:model="scope" value="medium" {{{ $scope == 'medium' ? "checked" : "" }}}> Medium</label>
<label class="radio-inline"><input type="radio" wire:model="scope" value="large" {{{ $scope == 'large' ? "checked" : "" }}}> Large</label>
@error('scope') <span class="error">{{ $message }}</span> @enderror
</div>
Expected Behaviour
Relevant log output
Parse Error : syntax error, unexpected '{' on line 1 > 1 | <?php echo { $scope == 'small' ? "checked" : "" ?> | ^
Shuhei Hayashibara commented
This seems wrong syntax
{{{ $scope == 'small' ? "checked" : "" }}}
It should be double curly brackets
{{ $scope == 'small' ? "checked" : "" }}
github-actions commented
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days