Project

General

Profile

Actions

Task #91657

closed

Use stdWrapValue consitently instead of manually checking existing config with ternary operator

Added by Nikita Hovratov almost 4 years ago. Updated over 3 years ago.

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.


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Task #91834: Use stdWrapValue where possible part 2Closed2020-07-21

Actions
Related to TYPO3 Core - Bug #92216: StdWrapValue gets null as second parameter in some setupsClosed2020-09-07

Actions
Related to TYPO3 Core - Bug #92698: variables in ContentContentObject::renderClosed2020-10-24

Actions
Actions

Also available in: Atom PDF