Project

General

Profile

Actions

Task #67583

closed

Epic #67492: Clean up DataHandler

Introduce early returns in DataHandler::localize()

Added by Andreas Wolf over 9 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
DataHandler aka TCEmain
Target version:
Start date:
2015-06-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

localize() has quite a few nested levels that can be converted to early returns. The method is one of the worst examples of DataHandler code, with two lines that have 14 (!) trailing tabs (i.e. 12 indentation levels within the method).

Actions

Also available in: Atom PDF