Skip to content

Commit 02e2e4a

Browse files
committed
Merge pull request stephpy#2 from nishigori/check_php_cs_fixer_exists
Added check g:php_cs_fixer_path file exists
2 parents 6491402 + c098cb7 commit 02e2e4a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugin/php-cs-fixer.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ if exists('g:php_cs_fixer_config')
1818
endif
1919
"}}}
2020

21+
if !filereadable(g:php_cs_fixer_path)
22+
echoerr(g:php_cs_fixer_path.' is not found')
23+
endif
2124

2225
fun! PhpCsFixerFix(path, dry_run)
2326
let command = g:php_cs_fixer_command.' '.a:path

0 commit comments

Comments
 (0)