Laravel Pint code style schema for PhpStorm

1.5k views Asked by At

How to set up PhpStorm code style (Code alignment) to work with Laravel Pint?

Is there a scheme for Pint Code Style and code alignment in a file?

Does PhpStorm's Laravel Code Style is up to date?

The docs says that it uses Laravel preset.

By default, Pint uses the Laravel preset, which fixes issues by following the opinionated coding style of Laravel.

But, when I set the Code style from Laravel, some fixes are made again by Pint.

enter image description here

Example:

Laravel default:

(!$var)

Pint:

(! $var)

Is there some set of rules or schema for PhpStorm to work the same as Pint?

0

There are 0 answers