mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-05-16 21:41:31 +02:00
Issue #12 - fixed code standard problems preventing Travis to build.
This commit is contained in:
@@ -32,7 +32,9 @@ if (!defined('MOODLE_INTERNAL')) {
|
||||
class auth_outage_renderer extends plugin_renderer_base
|
||||
{
|
||||
public function rendersubtitle($subtitlekey) {
|
||||
if (!is_string($subtitlekey)) throw new \InvalidArgumentException('$subtitle is not a string.');
|
||||
if (!is_string($subtitlekey)) {
|
||||
throw new \InvalidArgumentException('$subtitle is not a string.');
|
||||
}
|
||||
return html_writer::tag('h2', get_string($subtitlekey, 'auth_outage'));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user