Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
67321a06
Commit
67321a06
authored
1 year ago
by
Krzysztof Putyra
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some typos in comments
parent
bd52dd8f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
4 merge requests
!691
New version v24.3.0
,
!638
Merge Develop to B16343
,
!637
develop into F17086-Multiple-Forms-on-a-page
,
!633
JWT and enhanced parser
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extension/Classes/Core/Helper/Support.php
+10
-10
10 additions, 10 deletions
extension/Classes/Core/Helper/Support.php
with
10 additions
and
10 deletions
extension/Classes/Core/Helper/Support.php
+
10
−
10
View file @
67321a06
...
@@ -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 param
e
ter
// 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 un
s
uable input elements: skip this.
// empty or '0' for attributes of type 'size' or 'maxlength' result in unu
s
able 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 ha
s
to be separated by ','.
* Search for the parameter $needle in $haystack. The arguments ha
ve
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 cho
o
sen 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
F
ormelement type: '"
.
$formElement
[
FE_TYPE
]
.
"'"
,
ERROR_FORMELEMENT_TYPE
);
throw
new
\UserFormException
(
"Unexpected
f
orm
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 prevent
ing
unw
ish
ed action on curly braces.
* Encrypt curly braces by an uncommon string. Helps
to
prevent unw
ant
ed action
s
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 prevent
ing
unw
ish
ed action on curly braces
* Decrypt curly braces by an uncommon string. Helps
to
prevent unw
ant
ed action
s
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 uniq
ue
ness.
*
*
* @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 o
f
if there is a '?' in URL or not, append the param with '?' or '&'..
* Concatenate URL and Parameter. Depending o
n
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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment