mirror of
https://github.com/catalyst/moodle-auth_outage.git
synced 2026-10-22 10:18:06 +02:00
Issue #12 - fixed code standard problems preventing Travis to build.
This commit is contained in:
1 parent
6ceb328aa4
commit
18e0583ba5
7 files changed
+11
-41
No files matched your search
+3
-1
@@ -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