Fixing PHPCI errors
This commit is contained in:
parent
28ad88cff9
commit
bda4e22315
5 changed files with 25 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ class BuildError extends BuildErrorBase
|
|||
const SEVERITY_NORMAL = 2;
|
||||
const SEVERITY_LOW = 3;
|
||||
|
||||
/**
|
||||
* Get the language string key for this error's severity level.
|
||||
* @return string
|
||||
*/
|
||||
public function getSeverityString()
|
||||
{
|
||||
switch ($this->getSeverity()) {
|
||||
|
|
@ -36,6 +40,10 @@ class BuildError extends BuildErrorBase
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the class to apply to HTML elements representing this error.
|
||||
* @return string
|
||||
*/
|
||||
public function getSeverityClass()
|
||||
{
|
||||
switch ($this->getSeverity()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue