Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
51a5ff12
Commit
51a5ff12
authored
Dec 19, 2018
by
Carsten Rose
Browse files
update phpdoc.
parent
bc621024
Changes
3
Hide whitespace changes
Inline
Side-by-side
extension/Source/core/BodytextParser.php
View file @
51a5ff12
...
...
@@ -20,35 +20,33 @@ const NESTING_TOKEN_LENGTH = 17;
class
BodytextParser
{
/**
* @param $body
t
ext
* @param
string
$body
T
ext
*
* @return mixed|string
* @throws UserFormException
*/
public
function
process
(
$body
t
ext
)
{
public
function
process
(
$body
T
ext
)
{
$nestingOpen
=
''
;
$nestingClose
=
''
;
$body
t
ext
=
$this
->
trimAndRemoveCommentAndEmptyLine
(
$body
t
ext
,
$nestingOpen
,
$nestingClose
);
$body
T
ext
=
$this
->
trimAndRemoveCommentAndEmptyLine
(
$body
T
ext
,
$nestingOpen
,
$nestingClose
);
// Encrypt double curly braces to prevent false positives with nesting: form = {{form}}\n
$body
t
ext
=
Support
::
encryptDoubleCurlyBraces
(
$body
t
ext
);
$body
t
ext
=
$this
->
joinLine
(
$body
t
ext
,
$nestingOpen
,
$nestingClose
);
$body
T
ext
=
Support
::
encryptDoubleCurlyBraces
(
$body
T
ext
);
$body
T
ext
=
$this
->
joinLine
(
$body
T
ext
,
$nestingOpen
,
$nestingClose
);
$body
t
ext
=
$this
->
encryptNestingDelimeter
(
$body
t
ext
,
$nestingOpen
,
$nestingClose
);
$body
t
ext
=
$this
->
unNest
(
$body
t
ext
,
$nestingOpen
,
$nestingClose
);
$body
T
ext
=
$this
->
encryptNestingDelimeter
(
$body
T
ext
,
$nestingOpen
,
$nestingClose
);
$body
T
ext
=
$this
->
unNest
(
$body
T
ext
,
$nestingOpen
,
$nestingClose
);
$body
t
ext
=
$this
->
trimAndRemoveCommentAndEmptyLine
(
$body
t
ext
,
$nestingOpen
,
$nestingClose
);
$body
t
ext
=
Support
::
decryptDoubleCurlyBraces
(
$body
t
ext
);
$body
T
ext
=
$this
->
trimAndRemoveCommentAndEmptyLine
(
$body
T
ext
,
$nestingOpen
,
$nestingClose
);
$body
T
ext
=
Support
::
decryptDoubleCurlyBraces
(
$body
T
ext
);
if
(
strpos
(
$body
t
ext
,
NESTING_TOKEN_OPEN
)
!==
false
)
{
if
(
strpos
(
$body
T
ext
,
NESTING_TOKEN_OPEN
)
!==
false
)
{
throw
new
UserFormException
(
json_encode
([
ERROR_MESSAGE_TO_USER
=>
'Report: Missing close delimiter'
,
ERROR_MESSAGE_SUPPORT
=>
$body
t
ext
]),
ERROR_MISSING_CLOSE_DELIMITER
);
json_encode
([
ERROR_MESSAGE_TO_USER
=>
'Report: Missing close delimiter'
,
ERROR_MESSAGE_SUPPORT
=>
$body
T
ext
]),
ERROR_MISSING_CLOSE_DELIMITER
);
}
return
$bodytext
;
return
$bodyText
;
}
/**
...
...
extension/Source/core/store/Store.php
View file @
51a5ff12
...
...
@@ -372,7 +372,7 @@ class Store {
* Set or overwrite a complete store.
*
* @param array $dataArray
* @param
$store
* @param
string
$store
* @param bool|false $flagOverwrite
*
* @throws UserFormException
...
...
extension/Tests/unit/core/QuickFormQueryTest.php
View file @
51a5ff12
...
...
@@ -43,6 +43,12 @@ class QuickFormQueryTest extends TestCase {
//* @throws UserFormException
//*/
/**
* @throws CodeException
* @throws DbException
* @throws UserFormException
* @throws UserReportException
*/
public
function
testGetFormName
()
{
// <empty> bodytext
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment