complete pre-receive hook for php code sniffer
重构：提取可冲用逻辑到common.py中