Issue Task Rejected

#54517Replace substr() and strpos() with GeneralUtility::isFirstPartOfString when it makes sense

Jo Hasenau 12/19/13, 18:46 updated 03/05/16, 11:27

Description

There a few hundred calls to strpos or substr with different parameters set, but they actually check wether a certain string is the first part of another string.

Since we got GeneralUtility::isFirstPartOfString for this task, any occurence of strpos and or substr should be replaced with that, unless it checks for another position than 0.

Additionally we should get rid of the 0 offset of the isFirstPartOfString method itself, since it decreases performance as well and is just superfluous for this task.

Reviews 2