Project

General

Profile

Actions

Task #91657

closed

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

Added by Nikita Hovratov over 4 years ago. Updated almost 4 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 #1

Updated by Gerrit Code Review over 4 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #2

Updated by Gerrit Code Review over 4 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #3

Updated by Gerrit Code Review over 4 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #4

Updated by Gerrit Code Review over 4 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #5

Updated by Gerrit Code Review over 4 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #6

Updated by Gerrit Code Review over 4 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #7

Updated by Gerrit Code Review over 4 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #8

Updated by Gerrit Code Review over 4 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #9

Updated by Gerrit Code Review over 4 years ago

Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #10

Updated by Gerrit Code Review over 4 years ago

Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898

Actions #11

Updated by Nikita Hovratov over 4 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #12

Updated by Christian Kuhn over 4 years ago

  • Related to Task #91834: Use stdWrapValue where possible part 2 added
Actions #13

Updated by Nikita Hovratov about 4 years ago

  • Related to Bug #92216: StdWrapValue gets null as second parameter in some setups added
Actions #14

Updated by Benni Mack almost 4 years ago

  • Status changed from Resolved to Closed
Actions #15

Updated by Benni Mack about 3 years ago

  • Related to Bug #92698: variables in ContentContentObject::render added
Actions

Also available in: Atom PDF