Skip to content

Commit 290fa50

Browse files
committed
Setup php-cs-fixer using the amazing madewithlove package.
1 parent 97e018e commit 290fa50

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build
22
composer.lock
3-
vendor
3+
vendor
4+
.php_cs.cache

.php_cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
require 'vendor/autoload.php';
3+
4+
// Laravel version 5.1 needs at least support for php version 5.5.9
5+
return Madewithlove\PhpCsFixer\Config::fromFolders(['src'], '5.5.9');

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,8 @@
2525
]
2626
}
2727
},
28-
"minimum-stability": "stable"
28+
"minimum-stability": "stable",
29+
"require-dev": {
30+
"madewithlove/php-cs-fixer-config": "^1.8"
31+
}
2932
}

0 commit comments

Comments
 (0)