Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove trailing spaces

  • Loading branch information...
commit 41638a3843e1ccd88f2d1026e3ac172809e8d8de 1 parent 5cfa6dc
@joonty authored
Showing with 7 additions and 7 deletions.
  1. +3 −3 plugin/phpqa.vim
  2. +4 −4 plugin/python/codecoverage.vim
View
6 plugin/phpqa.vim
@@ -57,7 +57,7 @@ if !exists("g:phpqa_messdetector_ruleset")
endif
" Clover code coverage file
-if !exists("g:phpqa_codecoverage_file")
+if !exists("g:phpqa_codecoverage_file")
let g:phpqa_codecoverage_file = ""
endif
@@ -101,14 +101,14 @@ endif
" Run all QA tools
-function! phpqa:RunAll()
+function! phpqa:RunAll()
if &filetype == 'php'
" Check syntax valid before running others
let retval=phpqa#PhpLint()
if 0 == retval && 1 == g:phpqa_run_on_write
call phpqa#PhpQaTools(g:phpqa_codesniffer_autorun,g:phpqa_messdetector_autorun)
endif
- endif
+ endif
endf
" Run code coverage
View
8 plugin/python/codecoverage.vim
@@ -18,8 +18,8 @@ clover = vim.eval('a:clover')
buf = vim.eval('bufname("%")')
fileName = vim.eval('fnamemodify("'+buf+'",":p")')
-"""
-XML may already be parsed and held in memory
+"""
+XML may already be parsed and held in memory
Check the file modification time, and only re-parse
if it's been modified.
"""
@@ -39,7 +39,7 @@ try:
if doc is None:
doc = libxml2.parseFile(clover)
mtime = time.ctime(os.path.getmtime(clover))
-
+
ctxt = doc.xpathNewContext()
res = ctxt.xpathEval("/coverage/project/file[@name='"+fileName+"']/line[@type='stmt']")
cur_signs = int(vim.eval('g:phpqa_num_cc_signs'))
@@ -59,7 +59,7 @@ try:
vim.command(cmd_list)
vim.command('let g:phpqa_num_cc_signs='+str(cur_signs))
- """
+ """
t = time.time() - t0
print "Completed in "+str(t)+" seconds"
"""
Please sign in to comment.
Something went wrong with that request. Please try again.