GB_Error::add
Add an error or append additional message to an existing error.
Signature
public function add(string|int
$code,
string
$message,
[string
$data = ''] )
Parameters
$code
— object
Error code.$message
— string
Error message.$data
— string
Optional. Error data.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
195 | 9 | error | Inline control structures are not allowed |