Actions
Task #91657
closedUse stdWrapValue consitently instead of manually checking existing config with ternary operator
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2020-06-16
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
A common way to apply stdWrap is: $value = isset($config['value.']) ? $cObj->stdWrap($config['value'], $config['value.']) : $config['value'];
This can be replaced by $value = $cObj->stdWrapValue('value', $config);
Not only is it shorter, it is also more robust and less error-prone.
Actions