File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 6
6
let g: php_cs_fixer_path = get (g: , ' php_cs_fixer_path' , ' ~/php-cs-fixer.phar' )
7
7
let g: php_cs_fixer_php_path = get (g: , ' php_cs_fixer_php_path' , ' php' )
8
8
9
- if executable (' php-cs-fixer' )
10
- let g: php_cs_fixer_command = ' php-cs-fixer fix'
11
- let g: php_cs_fixer_version_command = ' php-cs-fixer --version'
12
- else
9
+ if exists (' g:php_cs_fixer_path' )
13
10
let g: php_cs_fixer_command = g: php_cs_fixer_php_path .' ' .g: php_cs_fixer_path .' fix'
14
11
let g: php_cs_fixer_version_command = g: php_cs_fixer_php_path .' ' .g: php_cs_fixer_path .' --version'
12
+ else
13
+ if executable (' php-cs-fixer' )
14
+ let g: php_cs_fixer_command = ' php-cs-fixer fix'
15
+ let g: php_cs_fixer_version_command = ' php-cs-fixer --version'
16
+ else
17
+ echoerr (' php-cs-fixer not found and g:php_cs_fixer_path not set' )
18
+ finish
19
+ end
15
20
end
16
21
17
22
" Check the php-cs-fixer version
You can’t perform that action at this time.
0 commit comments