Skip to content
Snippets Groups Projects
Commit b221f6cc authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Georg Ringer
Browse files

[TASK] Refactor GU::getFileAbsFileName

Improve readability of the method by extracting distinct cases into own
blocks with early return statements.

Case 1: "EXT:" path
Case 2: (already) absolute path
Case 3: relative public path

Resolves: #100094
Releases: main
Change-Id: I664c3611ef86c779c0398c7a4f938297eb591a81
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78034


Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent b64c6384
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment