[TYPO3-core] Usage of "break"

Jigal van Hemert jigal.van.hemert at typo3.org
Fri Jun 27 14:30:00 CEST 2014


On 27-6-2014 12:26, Bernhard Kraft wrote:
> It's about this code:
> https://review.typo3.org/#/c/30797/4/typo3/sysext/backend/Classes/Form/Element/SuggestElement.php
> around line 184. There a variable $continue is introduced just to
> realize break 2.

This is for me a perfect example where break 2; would fit perfectly. The 
whole construction with $continue is just created to forcefully avoid 
break 2 in a situation where it would naturally fits.

Jigal van Hemert
TYPO3 CMS Active Contributor

TYPO3 .... inspiring people to share!
Get involved: typo3.org

More information about the TYPO3-team-core mailing list