This code style is based on the Laravel and the React code styles.
Feel free to use it and to submit changes if you detect some inconsistencies.
-
Open the
PHPStorm > Preferences
panel, then go toEditor > Code style
Tab.
-
Once this tab is selected, just click on the icon at the right of the
Schema
option.
-
Select
Import Scheme > Intellij IDEA code style XML
in the dropdown and select thephpstorm-laravel-code-style.xml
from this cloned repository.
-
During the import, name the code style
Custom
and let thecurrent
checkbox unchecked. -
Select the
Custom
code style in the list, click on theApply
button, and to finish, theOk
button.
You're done !