File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ let g:php_cs_fixer_config = "default" " options: --config
2828let g:php_cs_fixer_rules = "@PSR2" " options: --rules (default:@PSR2)
2929"let g:php_cs_fixer_cache = ".php_cs.cache" " options: --cache-file
3030"let g:php_cs_fixer_config_file = '.php_cs' " options: --config
31+ let g:php_cs_fixer_allow_risky = "yes" " options: --allow-risky
3132" End of php-cs-fixer version 2 config params
3233
3334let g:php_cs_fixer_php_path = "php" " Path to PHP
Original file line number Diff line number Diff line change 5454if exists (' g:php_cs_fixer_cache' )
5555 let g: php_cs_fixer_command = g: php_cs_fixer_command . ' --cache-file=' . g: php_cs_fixer_cache
5656endif
57+
58+ if exists (' g:php_cs_fixer_allow_risky' ) && g: php_cs_fixer_version >= 2
59+ let g: php_cs_fixer_command = g: php_cs_fixer_command . ' --allow-risky=' . g: php_cs_fixer_allow_risky
60+ endif
5761" }}}
5862
5963fun ! php_cs_fixer#Fix (path , dry_run)
You can’t perform that action at this time.
0 commit comments