Skip to content

Instantly share code, notes, and snippets.

Avatar

Max maxalmonte14

View GitHub Profile
@maxalmonte14
maxalmonte14 / .php_cs
Last active Jun 19, 2018 — forked from jwage/.php_cs
php-cs-fixer PSR-2 git pre commit hook
View .php_cs
<?php
return PhpCsFixer\Config::create()
->setRules(array(
'@PSR2' => true,
'array_syntax' => array('syntax' => 'short'),
'combine_consecutive_unsets' => true,
'method_separation' => true,
'no_multiline_whitespace_before_semicolons' => true,
'single_quote' => true,