[TOC]
#(一)函數中的逗號問題
英文:`no space found after comma in function all`
中文:`在函數的逗號后面找不到空格`
錯誤:

正確:
>函數中間多了一個逗號

# (二)函數判斷空格
英文:`there must be a single space between the closing parenthesis and the opening brace of a multi-line IF statement;found 0 spaces`
中文:`在一個多行if語句的結束括號和開括號之間必須有一個空格;找到0個空格。`
錯誤:

正確:

# (三)行字數限制
英文:`line exceeds 85 characters;contains 89 characters`
中文:`行超過85個字符;包含89個字符`
錯誤:

解決方法:暫無
# (四)`class` 行尾
1、換行符
英文:`expected 1 newline at end of file`
中文:`預計在文件結尾處有1個換行符`
2、多一行
錯誤:

正確:

# (五)默認參數放在最后
英文:
`phpcs:Arguments with default values must be at the end of the argument list`
中文:`phpcs:具有默認值的參數必須位于參數列表的末尾`
錯誤寫法:

正確寫法:

# (六)開口位置
英文:`Opening brace should be on a new line`
中文:`開口支撐應該在一個新的線上`
錯誤寫法:

正確寫法:

# (七) 參數有空格
錯誤寫法:

正確寫法:

# (八)依賴注入
錯誤:

正確:

英文:`A number of parameters,their name or types(if any) in PHPDoc comment do not match the ones in resective funcdtion or method declaration.`
中文:`PHPDoc注釋中的一些參數,它們的名稱或類型(如果有的話)與切除函數或方法聲明中的參數不匹配。`