Pull Request 

You only have 1 case so an if statement will do.
```php
if ($notice_type == 'error') {
    return $msg .= "<font color=red size=2>";
}

return $msg .= "<font color=green size=2>";
```