Skip to content

Commit 988f63a

Browse files
authored
Merge pull request #13 from bizmate/PSR-2
Adding PSR-2 code formatting checker
2 parents b581fd7 + f4d1baf commit 988f63a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"psr/log": "1.0.0"
2222
},
2323
"require-dev": {
24-
"phpunit/phpunit": "3.7.*"
24+
"phpunit/phpunit": "3.7.*",
25+
"phpro/grumphp": "^0.9.1",
26+
"squizlabs/php_codesniffer": "^2.6"
2527
},
2628
"autoload": {
2729
"psr-4": {

grumphp.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
parameters:
2+
git_dir: .
3+
bin_dir: vendor/bin
4+
tasks:
5+
phpcs:
6+
standard: 'PSR2'
7+
show_warnings: false
8+
tab_width: ~
9+
ignore_patterns: ['vendor/*']
10+
sniffs: []
11+
triggered_by: [php]

0 commit comments

Comments
 (0)