[TASK] Use $cObj->stdWrapValue where possible
A common way to apply stdWrap is to use the ternary operator to check for existing stdWrap config. This can be replaced by using the $cObj->stdWrapValue method. Not only is it shorter, it is also more robust and less error-prone. To start off all ContentObject classes have been cleaned up. Resolves: #91657 Releases: master Change-Id: I65c28e27c21ae13bdbcb47068bc32b510b8b0dc0 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64898 Tested-by:Christian Kuhn <lolli@schwarzbu.ch> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- typo3/sysext/frontend/Classes/ContentObject/CaseContentObject.php 2 additions, 4 deletions...sext/frontend/Classes/ContentObject/CaseContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ContentContentObject.php 7 additions, 10 deletions...t/frontend/Classes/ContentObject/ContentContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectArrayContentObject.php 1 addition, 1 deletion...Classes/ContentObject/ContentObjectArrayContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php 2 additions, 2 deletions.../frontend/Classes/ContentObject/ContentObjectRenderer.php
- typo3/sysext/frontend/Classes/ContentObject/FilesContentObject.php 5 additions, 24 deletions...ext/frontend/Classes/ContentObject/FilesContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/FluidTemplateContentObject.php 11 additions, 29 deletions...tend/Classes/ContentObject/FluidTemplateContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/HierarchicalMenuContentObject.php 1 addition, 1 deletion...d/Classes/ContentObject/HierarchicalMenuContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ImageContentObject.php 14 additions, 38 deletions...ext/frontend/Classes/ContentObject/ImageContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/AbstractMenuContentObject.php 14 additions, 53 deletions.../Classes/ContentObject/Menu/AbstractMenuContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/CategoryMenuUtility.php 3 additions, 11 deletions...ontend/Classes/ContentObject/Menu/CategoryMenuUtility.php
- typo3/sysext/frontend/Classes/ContentObject/Menu/TextMenuContentObject.php 11 additions, 14 deletions...tend/Classes/ContentObject/Menu/TextMenuContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/RecordsContentObject.php 6 additions, 6 deletions...t/frontend/Classes/ContentObject/RecordsContentObject.php
- typo3/sysext/frontend/Classes/ContentObject/ScalableVectorGraphicsContentObject.php 5 additions, 7 deletions...ses/ContentObject/ScalableVectorGraphicsContentObject.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php 10 additions, 4 deletions...nd/Tests/Unit/ContentObject/ContentObjectRendererTest.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/FluidTemplateContentObjectTest.php 156 additions, 88 deletions...sts/Unit/ContentObject/FluidTemplateContentObjectTest.php
- typo3/sysext/frontend/Tests/Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php 29 additions, 5 deletions...Unit/ContentObject/Menu/AbstractMenuContentObjectTest.php
Please register or sign in to comment