-
-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
shufo/blade-formatter
#979Labels
bugSomething isn't workingSomething isn't working
Description
Version
1.15.2
Template before formatting
@section('js_bottom')
@parent
<script>
$(function() {
@foreach ($files as $file)
addUpload(
@js($file->id),
@js($file->name),
@js($file->hash),
$('#article_inline_uploads')
);
@endforeach
}
</script>
@endsectionTemplate after formatting
@section('js_bottom')
@parent
<script>
$(function() {
@foreach ($files as $file)
addUpload(
undefined,
undefined,
undefined,
$('#article_inline_uploads')
);
@endforeach
}
</script>
@endsectionExpected Behaviour
It should not remove code and replace it with undefined
Relevant log output
$ npx blade-formatter resources/views/form-js.blade.php
@section('js_bottom')
@parent
<script>
$(function() {
@foreach ($files as $file)
addUpload(
undefined,
undefined,
undefined,
$('#article_inline_uploads')
);
@endforeach
}
</script>
@endsectionReactions are currently unavailable
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working