From 99b4ec147c5a65cf6d382d464a136d87e200fdbc Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 9 Mar 2018 07:58:46 -0500 Subject: [PATCH] Fix standards --- mod/babel.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/mod/babel.php b/mod/babel.php index 442941ab8a..4550a8efbf 100644 --- a/mod/babel.php +++ b/mod/babel.php @@ -15,7 +15,7 @@ function babel_content() { $results = []; if (!empty($_REQUEST['text'])) { - switch(defaults($_REQUEST, 'type', 'bbcode')) { + switch (defaults($_REQUEST, 'type', 'bbcode')) { case 'bbcode': $bbcode = trim($_REQUEST['text']); $results[] = [ @@ -105,12 +105,11 @@ function babel_content() $tpl = get_markup_template('babel.tpl'); $o = replace_macros($tpl, [ - '$text' => ['text', L10n::t('Source text'), defaults($_REQUEST, 'text', ''), ''], - '$type_bbcode' => ['type', L10n::t('BBCode') , 'bbcode' , '', defaults($_REQUEST, 'type', 'bbcode') == 'bbcode'], + '$text' => ['text', L10n::t('Source text'), defaults($_REQUEST, 'text', ''), ''], + '$type_bbcode' => ['type', L10n::t('BBCode'), 'bbcode', '', defaults($_REQUEST, 'type', 'bbcode') == 'bbcode'], '$type_markdown' => ['type', L10n::t('Markdown'), 'markdown', '', defaults($_REQUEST, 'type', 'bbcode') == 'markdown'], - '$type_html' => ['type', L10n::t('HTML') , 'html' , '', defaults($_REQUEST, 'type', 'bbcode') == 'html'], - - '$results' => $results + '$type_html' => ['type', L10n::t('HTML'), 'html', '', defaults($_REQUEST, 'type', 'bbcode') == 'html'], + '$results' => $results ]); return $o;