CiprianSpiridon / phpstorm-laravel-code-style

PhpStorm code style to meet Laravel's contribution guidelines

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PhpStorm Laravel Code Style

This is a code style based on PSR-2, as per Laravel's Contribution Guide

To use this coding style, drop the Laravel.xml file in the /config/codestyles/ subfolder within your configuration directory.

This code style has been updated in line with Laravel 5.4, and matches Laravel's code styles as best as possible with PhpStorm's available configuration.

Be mindful of the PHPDoc layout, which dictates @param is followed by two spaces, the argument type, two more spaces, and finally the variable name, which I've not been able to replicate in PhpStorm.

About

PhpStorm code style to meet Laravel's contribution guidelines