Added, and configured, php-cs-fixer with a Makefile to invoke fix and test

This commit is contained in:
Anthony Sterling
2017-09-23 18:49:58 +01:00
parent 80c611691b
commit 90196ea836
4 changed files with 32 additions and 5 deletions

14
.php_cs Normal file
View File

@@ -0,0 +1,14 @@
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules([
'@PSR2' => true,
])
->setFinder($finder)
;