Skip to content
Snippets Groups Projects
Commit 67321a06 authored by Krzysztof Putyra's avatar Krzysztof Putyra
Browse files

Fixed some typos in comments

parent bd52dd8f
No related branches found
No related tags found
4 merge requests!691New version v24.3.0,!638Merge Develop to B16343,!637develop into F17086-Multiple-Forms-on-a-page,!633JWT and enhanced parser
...@@ -152,7 +152,7 @@ class Support { ...@@ -152,7 +152,7 @@ class Support {
public static function arrayToQueryString(array $queryArray) { public static function arrayToQueryString(array $queryArray) {
$items = array(); $items = array();
// CR/Workaround for broken behaviour: LINK() class expects 'id' always as first paramter // CR/Workaround for broken behaviour: LINK() class expects 'id' always as first parameter
// Take care that Parameter 'id' is the first one in the array: // Take care that Parameter 'id' is the first one in the array:
if (isset($queryArray[CLIENT_PAGE_ID])) { if (isset($queryArray[CLIENT_PAGE_ID])) {
$id = $queryArray[CLIENT_PAGE_ID]; $id = $queryArray[CLIENT_PAGE_ID];
...@@ -290,7 +290,7 @@ class Support { ...@@ -290,7 +290,7 @@ class Support {
switch (strtolower($type)) { switch (strtolower($type)) {
case 'size': case 'size':
case 'maxlength': case 'maxlength':
// empty or '0' for attributes of type 'size' or 'maxlength' result in unsuable input elements: skip this. // empty or '0' for attributes of type 'size' or 'maxlength' result in unusable input elements: skip this.
if ($value === '' || $value == 0) { if ($value === '' || $value == 0) {
return ''; return '';
} }
...@@ -378,7 +378,7 @@ class Support { ...@@ -378,7 +378,7 @@ class Support {
} }
/** /**
* Search for the parameter $needle in $haystack. The arguments has to be separated by ','. * Search for the parameter $needle in $haystack. The arguments have to be separated by ','.
* *
* Returns false if not found, or index (starting with 0) of found place. Be careful: use unary operator to compare for 'false' * Returns false if not found, or index (starting with 0) of found place. Be careful: use unary operator to compare for 'false'
* *
...@@ -630,7 +630,7 @@ class Support { ...@@ -630,7 +630,7 @@ class Support {
} }
/** /**
* Returns a representation of 0 in a choosen variant. * Returns a representation of 0 in a chosen variant.
* *
* @param string $dateFormat FORMAT_DATE_INTERNATIONAL | FORMAT_DATE_GERMAN * @param string $dateFormat FORMAT_DATE_INTERNATIONAL | FORMAT_DATE_GERMAN
* @param string $showZero * @param string $showZero
...@@ -718,7 +718,7 @@ class Support { ...@@ -718,7 +718,7 @@ class Support {
$placeholder = $timePattern; $placeholder = $timePattern;
break; break;
default: default:
throw new \UserFormException("Unexpected Formelement type: '" . $formElement[FE_TYPE] . "'", ERROR_FORMELEMENT_TYPE); throw new \UserFormException("Unexpected form element type: '" . $formElement[FE_TYPE] . "'", ERROR_FORMELEMENT_TYPE);
} }
return $placeholder; return $placeholder;
...@@ -726,7 +726,7 @@ class Support { ...@@ -726,7 +726,7 @@ class Support {
/** /**
* Encrypt curly braces by an uncommon string. Helps preventing unwished action on curly braces. * Encrypt curly braces by an uncommon string. Helps to prevent unwanted actions on curly braces.
* *
* @param string $text * @param string $text
* *
...@@ -740,7 +740,7 @@ class Support { ...@@ -740,7 +740,7 @@ class Support {
} }
/** /**
* Decrypt curly braces by an uncommon string. Helps preventing unwished action on curly braces * Decrypt curly braces by an uncommon string. Helps to prevent unwanted actions on curly braces
* *
* @param string $text * @param string $text
* *
...@@ -760,7 +760,7 @@ class Support { ...@@ -760,7 +760,7 @@ class Support {
/** /**
* Creates a random string, starting with uniq microseconds timestamp. * Creates a random string, starting with uniq microseconds timestamp.
* After a discussion of ME & CR, the uniqid() should be sufficient to guarantee uniqness. * After a discussion of ME & CR, the uniqid() should be sufficient to guarantee uniqueness.
* *
* @param int $length Length of the required hash string * @param int $length Length of the required hash string
* *
...@@ -782,7 +782,7 @@ class Support { ...@@ -782,7 +782,7 @@ class Support {
} }
/** /**
* Concatenate URL and Parameter. Depending of if there is a '?' in URL or not, append the param with '?' or '&'.. * Concatenate URL and Parameter. Depending on if there is a '?' in URL or not, append the param with '?' or '&'..
* *
* @param string $url * @param string $url
* @param string|array $param * @param string|array $param
...@@ -1316,7 +1316,7 @@ class Support { ...@@ -1316,7 +1316,7 @@ class Support {
/** /**
* Check $arr, if there is an element $index. If not, set it to $value. * Check $arr, if there is an element $index. If not, set it to $value.
* If $overwriteThis!=false, replace the the original value with $value, if $arr[$index]==$overwriteThis. * If $overwriteThis!=false, replace the original value with $value, if $arr[$index]==$overwriteThis.
* *
* @param array $arr * @param array $arr
* @param string $index * @param string $index
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment