rentalhost / laravel-insight

IDEA plugin to works with Laravel Framework.
MIT License
27 stars 6 forks source link

Blade: format internal PHP code #22

Open rentalhost opened 7 years ago

rentalhost commented 7 years ago

For some reason, the PHP code inside a Blade expression is not formated.

If you are working with PHP, you have that:

$x=123;   /* before formatting */
$x = 123; /* after formatting */

With Blade:

@php ($x=123) /* before formatting */
@php ($x=123) /* "after" formatting */