[TYPO3-core] RFC #15002: Enhancement of t3lib_div::isFirstPartOfStr

Jigal van Hemert jigal at xs4all.nl
Mon Jul 5 12:36:02 CEST 2010


Michiel Roos [netcreators] wrote:
> Problem:
> t3lib_div::isFirstPartOfStr can be optimized by making use of the PHP
> version of isFirstPartOfStr called: strpos.
> This function is called quite a lot. 513 times for rendering an average
> page tree in the BE for example.

Can't we clean-up the code a bit? :
- have a single return
- use CGL (TRUE instead of true; spaces after ',' in function arguments; 
space before '{' instead of tab, etc.)

Other than that,
+1 by reading and testing

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-team-core mailing list