codecasts / spa-starter-kit

A highly opinionated starter kit for building Single Page Applications with Laravel and Vue.js
MIT License
913 stars 134 forks source link

StyleCI #63

Closed flyingluscas closed 7 years ago

flyingluscas commented 7 years ago

Added StyleCI config file, StyleCI makes sure that all of our PHP code is written to a consistent standard and can open a PR when code standards are not met.

I've already fixed some files, and also added a .editorconfig file to make it easier to follow some recommendations from StyleCI.

Added the PHP_CodeSniffer on the composer file, to check for violations and fix them

Run this command to check if there is any kind of violation

$ composer check-style

Run this command to fix any violations in your code

$ composer fix-style