Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions autoload/Phpqa.vim
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function! Phpqa#PhpLint()
if 0 != len(g:phpqa_php_cmd)
let l:bufNo = bufnr('%')
call s:RemoveSigns()
let l:php_output=system(g:phpqa_php_cmd." -l ".@%." 1>/dev/null")
let l:php_output=system(g:phpqa_php_cmd." -l ".expand("%:p")." 1>/dev/null")
let l:php_list=split(l:php_output, "\n")

if 0 != v:shell_error && match(l:php_list[0],"No syntax errors") == -1
Expand Down Expand Up @@ -124,7 +124,7 @@ function! Phpqa#PhpCodeSniffer()
endif
" Run codesniffer if the command hasn't been unset
if 0 != len(g:phpqa_codesniffer_cmd)
let l:phpcs_output=system(g:phpqa_codesniffer_cmd." ".g:phpqa_codesniffer_args." --report=emacs ".@%)
let l:phpcs_output=system(g:phpqa_codesniffer_cmd." ".g:phpqa_codesniffer_args." --report=emacs ".expand("%:p"))
let l:phpcs_list=split(l:phpcs_output, "\n")
else
let l:phpcs_list = []
Expand All @@ -150,7 +150,7 @@ function! Phpqa#PhpMessDetector()
let file_tmp = input("Please specify a mess detector ruleset file, or built in rule: ",file_tmp)
let g:phpqa_messdetector_ruleset = file_tmp
endwhile
let l:phpmd_output=system(g:phpqa_messdetector_cmd." ".@%." text ".g:phpqa_messdetector_ruleset)
let l:phpmd_output=system(g:phpqa_messdetector_cmd." ".expand("%:p")." text ".g:phpqa_messdetector_ruleset)
let l:phpmd_list=split(l:phpmd_output, "\n")
else
let l:phpmd_list = []
Expand Down