GB_Error::get_error_messages
Retrieve all error messages or error messages matching code.
Signature
public function get_error_messages([string
$code = ''] )
Parameters
$code
—
string
Optional. Retrieve messages matching code, if exists.
Returns
- array
- Error strings on success, or empty array on failure (if using code parameter).
Violations
Checkstyle
Line |
Column |
Severity |
Message |
121 |
12 |
error
|
Method name "GB_Error::get_error_messages" is not in camel caps format |
126 |
13 |
error
|
Inline control structures are not allowed |
132 |
9 |
error
|
Inline control structures are not allowed |
134 |
9 |
error
|
Expected 1 space after ELSE keyword; newline found |
134 |
9 |
error
|
Inline control structures are not allowed |