From 67321a06a8ae9f989398ddecaa8aefbead90988b Mon Sep 17 00:00:00 2001 From: kputyr <krzysztof.putyra@math.uzh.ch> Date: Tue, 7 Nov 2023 17:53:45 +0100 Subject: [PATCH] Fixed some typos in comments --- extension/Classes/Core/Helper/Support.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/extension/Classes/Core/Helper/Support.php b/extension/Classes/Core/Helper/Support.php index 3495cd3b8..4dbcbc2f7 100644 --- a/extension/Classes/Core/Helper/Support.php +++ b/extension/Classes/Core/Helper/Support.php @@ -152,7 +152,7 @@ class Support { public static function arrayToQueryString(array $queryArray) { $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: if (isset($queryArray[CLIENT_PAGE_ID])) { $id = $queryArray[CLIENT_PAGE_ID]; @@ -290,7 +290,7 @@ class Support { switch (strtolower($type)) { case 'size': 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) { return ''; } @@ -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' * @@ -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 $showZero @@ -718,7 +718,7 @@ class Support { $placeholder = $timePattern; break; 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; @@ -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 * @@ -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 * @@ -760,7 +760,7 @@ class Support { /** * 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 * @@ -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|array $param @@ -1316,7 +1316,7 @@ class Support { /** * 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 string $index -- GitLab