Skip to content

Commit

Permalink
Add quotes around rules option to allow JSON rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Peekmo committed Sep 7, 2017
1 parent aa4bbd6 commit 4d521b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/php_cs_fixer.vim
Expand Up @@ -71,7 +71,7 @@ fun! php_cs_fixer#fix(path, dry_run)

if g:php_cs_fixer_version >= 2
if exists('g:php_cs_fixer_rules') && g:php_cs_fixer_rules != '@PSR2'
let command = command.' --rules='.g:php_cs_fixer_rules
let command = command." --rules='".g:php_cs_fixer_rules."'"
endif
else
if exists('g:php_cs_fixer_level') && g:php_cs_fixer_level != 'all'
Expand Down

0 comments on commit 4d521b0

Please sign in to comment.