Actions
Task #55589
closedRedundant method: ResourceCompressor::checkBaseDirectory
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-02-02
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
no-brainer
Sprint Focus:
Description
\TYPO3\CMS\Core\Resource\ResourceCompressor::checkBaseDirectory() is a thick wrapper around GeneralUtilty::isFirstPartOfStr().
It's thick because it does not return the boolean result directly but first interprets is as a boolean and then returns TRUE or FALSE based on that.
On the login screen /typo3/, this method is called 110 times. The time spent inside the method (excluding isFirstPartOfStr() time) is 3.11 needless microseconds.
This wrapper method should be deprecated and the GeneralUtilty::isFirstPartOfStr() called directly.
Actions