From e8c7bca9b9e37503a3f9e5116e11321205ea06e6 Mon Sep 17 00:00:00 2001 From: sabbelasichon Date: Mon, 5 Feb 2024 13:18:30 +0000 Subject: [PATCH] [DOCS] Generate documentation Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- docs/all_rectors_overview.md | 106 ++++++++++++++++++++++++++++++++++- 1 file changed, 105 insertions(+), 1 deletion(-) diff --git a/docs/all_rectors_overview.md b/docs/all_rectors_overview.md index 6287a85f0..34b8073d8 100644 --- a/docs/all_rectors_overview.md +++ b/docs/all_rectors_overview.md @@ -1,4 +1,4 @@ -# 296 Rules Overview +# 303 Rules Overview ## AbstractMessageGetSeverityFluidRector @@ -4651,6 +4651,32 @@ Replace $_EXTKEY with extension key
+## ReplaceExtensionPathRelativeFluidRector + +Use instead of + +- class: [`Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\vhs\ReplaceExtensionPathRelativeFluidRector`](../src/FileProcessor/Fluid/Rector/vhs/ReplaceExtensionPathRelativeFluidRector.php) + +```diff +-{v:extension.path.relative(extensionName:'my_extension')}Resources/Public/Css/style.css ++{f:uri.resource(extensionName:'my_extension',path:'Css/style.css')} +``` + +
+ +## ReplaceFormatJsonEncodeFluidRector + +Use instead of + +- class: [`Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\vhs\ReplaceFormatJsonEncodeFluidRector`](../src/FileProcessor/Fluid/Rector/vhs/ReplaceFormatJsonEncodeFluidRector.php) + +```diff +-{someArray -> v:format.json.encode()} ++{someArray -> f:format.json()} +``` + +
+ ## ReplaceInjectAnnotationWithMethodRector Turns properties with `@TYPO3\CMS\Extbase\Annotation\Inject` to setter injection @@ -4673,6 +4699,50 @@ Turns properties with `@TYPO3\CMS\Extbase\Annotation\Inject` to setter injection
+## ReplaceLFluidRector + +Use instead of + +- class: [`Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\vhs\ReplaceLFluidRector`](../src/FileProcessor/Fluid/Rector/vhs/ReplaceLFluidRector.php) + +```diff +- +- ++ ++ + +``` + +
+ +## ReplaceMediaImageFluidRector + +Use instead of + +- class: [`Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\vhs\ReplaceMediaImageFluidRector`](../src/FileProcessor/Fluid/Rector/vhs/ReplaceMediaImageFluidRector.php) + +```diff +- ++ +``` + +
+ +## ReplaceOrFluidRector + +Use instead of + +- class: [`Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\vhs\ReplaceOrFluidRector`](../src/FileProcessor/Fluid/Rector/vhs/ReplaceOrFluidRector.php) + +```diff +-{someVariable -> v:or(alternative: 'Fallback text')} +-{v:or(content: someVariable, alternative: 'Fallback text')} ++{someVariable ?: 'Fallback text'} ++{someVariable ?: 'Fallback text'} +``` + +
+ ## ReplacePageRepoOverlayFunctionRector Replace `PageRepository->getRecordOverlay()` with `->getLanguageOverlay()` @@ -4791,6 +4861,40 @@ Replace TSFE with Context methods
+## ReplaceUriImageFluidRector + +Use instead of + +- class: [`Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\vhs\ReplaceUriImageFluidRector`](../src/FileProcessor/Fluid/Rector/vhs/ReplaceUriImageFluidRector.php) + +```diff +-{v:uri.image(src:image.uid, treatIdAsReference: 1)} +-{v:uri.image(src:image.uid, treatIdAsReference: 1, relative: 1)} +-{v:uri.image(src:image.uid, treatIdAsReference: 1, relative: 0)} +-{v:uri.image(src:image.uid, treatIdAsReference: 1, maxW: 250, maxH: 250)} ++{f:uri.image(src:image.uid, treatIdAsReference: 1)} ++{f:uri.image(src:image.uid, treatIdAsReference: 1)} ++{f:uri.image(src:image.uid, treatIdAsReference: 1, absolute: 1)} ++{f:uri.image(src:image.uid, treatIdAsReference: 1, maxWidth: 250, maxHeight: 250)} +``` + +
+ +## ReplaceVariableSetFluidRector + +Use instead of + +- class: [`Ssch\TYPO3Rector\FileProcessor\Fluid\Rector\vhs\ReplaceVariableSetFluidRector`](../src/FileProcessor/Fluid/Rector/vhs/ReplaceVariableSetFluidRector.php) + +```diff +- +-{myvariable -> v:variable.set(name:'othervariable')} ++ ++{myvariable -> f:variable(name:'othervariable')} +``` + +
+ ## ReplacedGeneralUtilitySysLogWithLogginApiRector Replaced GeneralUtility::sysLog with Logging API