Issue #12 - fixed code standard problems preventing Travis to build.

This commit is contained in:
Daniel Thee Roperto
2016-09-02 15:38:19 +10:00
parent 6ceb328aa4
commit 18e0583ba5
7 changed files with 11 additions and 41 deletions

View File

@@ -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'));
}