Bumping this in a vain attempt to get some clarity with my problems.
Jun 8, 2022
5
Level 4
PHPStorm removing (some) linebreaks in Blade files
I've been going through the various "Code Style" rules in PHPStorm to try to find what's causing this but haven't been able to figure it out. For some reason, the "Automatic Reformat" option in PHPStorm is causing Blade files that look like this:
@extends('errors.minimal')
@section('title', __('Forbidden'))
@section('code', '403')
@section('message', __('Forbidden'))
To instead look like this:
@extends('errors.minimal')
@section('title', __('Forbidden'))@section('code', '403')@section('message', __('Forbidden'))
Everything looks fine if I add extra spacing between the @section rows, but having them one after the other like this causes the formatting to get all messed up. Any suggestions?
Please or to participate in this conversation.