[ticket/12725] Add rule Squiz.PHP.DisallowSizeFunctionsInLoops in legacy

PHPBB3-12725