1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 13:52:35 +02:00

PHPDoc fixes and code optimization.

This commit is contained in:
Cameron
2021-12-03 14:58:33 -08:00
parent aff6daf590
commit 0d8f3e9086
73 changed files with 241 additions and 210 deletions

View File

@@ -392,7 +392,6 @@ class comment_shortcodes extends e_shortcode
default:
return null;
break;
}
return "<span id='comment-status-".$this->var['comment_id']."'>".$text."</span>";

View File

@@ -80,7 +80,7 @@ class fpw_shortcodes extends e_shortcode
/**
* @param string $parm
* @return mixed|null|string
* @return string|null
*/
function sc_fpw_captcha_input($parm = null)
{

View File

@@ -292,16 +292,13 @@ class news_shortcodes extends e_shortcode
/* @deprecated - Will cause issues with glyphs */
case 'src':
return $src;
break;
case 'tag':
return $icon;
break;
case 'url':
default:
return "<a href='".e107::getUrl()->create('news/list/category', $this->news_item)."'>".$icon."</a>";
break;
}
}

View File

@@ -273,7 +273,7 @@ class signup_shortcodes extends e_shortcode
return false;
}
$options = array('size'=>30,'class'=>'e-password tbox','required'=>1);
$options = array('size'=>30,'class'=>'e-password tbox');
// $options['title'] = 'Password must contain at least 6 characters, including UPPER/lowercase and numbers';
$preLen = e107::getPref('signup_pass_len');
$len = vartrue($preLen,6);
@@ -356,9 +356,9 @@ class signup_shortcodes extends e_shortcode
function sc_signup_email($parm=null)
{
$options = array('size'=>30,'required'=>1,'class'=>'tbox form-control e-email');
$options = array('size'=>30,'required'=>1);
$options['title'] = LAN_SIGNUP_108; // Must be a valid email address.
$options['class'] = vartrue($parm['class'],'');
$options['class'] = vartrue($parm['class'], 'tbox form-control e-email');
$options['placeholder'] = vartrue($parm['placeholder'],'');
$val = !empty($_POST['email']) ? filter_var($_POST['email'], FILTER_SANITIZE_EMAIL) : '';