[TYPO3-core] RFC #15020: Enhancement of t3lib_div::testInt

Nikolas Hagelstein lists at shr-now.de
Thu Jul 8 12:39:05 CEST 2010


Hi,

> This uses two returns while CGL explicitly states that only a single
> return
> is allowed...
Actually it states:

"In general there should be a single return statement in the function (see
the preceding example). 
However a function can return during parameter validation before it starts
its main logic"

Though this isn't parameter validation, I wouldn't read "in general" as
"only a single return is allowed" ;).

Cheers,
Nikolas




More information about the TYPO3-team-core mailing list