summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'MLEB/Translate/utils/HTMLJsSelectToInputField.php')
-rw-r--r--MLEB/Translate/utils/HTMLJsSelectToInputField.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/MLEB/Translate/utils/HTMLJsSelectToInputField.php b/MLEB/Translate/utils/HTMLJsSelectToInputField.php
index 8035f2f4..ad7dedb2 100644
--- a/MLEB/Translate/utils/HTMLJsSelectToInputField.php
+++ b/MLEB/Translate/utils/HTMLJsSelectToInputField.php
@@ -4,7 +4,7 @@
* @file
* @author Niklas Laxström
* @copyright Copyright © 2010 Niklas Laxström
- * @license GPL-2.0+
+ * @license GPL-2.0-or-later
*/
/**
@@ -12,7 +12,7 @@
*/
class HTMLJsSelectToInputField extends HTMLTextField {
/**
- * @param $value
+ * @param string $value
* @return string
*/
function getInputHTML( $value ) {
@@ -23,17 +23,17 @@ class HTMLJsSelectToInputField extends HTMLTextField {
* @var JsSelectToInput $select
*/
$select = $this->mParams['select'];
- $input = $select->getHtmlAndPrepareJs() . '<br />' . $input;
+ $input = $select->getHtmlAndPrepareJS() . '<br />' . $input;
}
return $input;
}
/**
- * @param $value
+ * @param string $value
* @return array
*/
- function tidy( $value ) {
+ protected function tidy( $value ) {
$value = array_map( 'trim', explode( ',', $value ) );
$value = array_unique( array_filter( $value ) );
@@ -41,9 +41,9 @@ class HTMLJsSelectToInputField extends HTMLTextField {
}
/**
- * @param $value
- * @param $alldata
- * @return bool|String
+ * @param string $value
+ * @param array $alldata
+ * @return bool|string
*/
function validate( $value, $alldata ) {
$p = parent::validate( $value, $alldata );
@@ -73,8 +73,8 @@ class HTMLJsSelectToInputField extends HTMLTextField {
}
/**
- * @param $value
- * @param $alldata
+ * @param string $value
+ * @param array $alldata
* @return string
*/
function filter( $value, $alldata ) {