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

https://tracker.phpbb.com/browse/PHPBB3-12725

I don't think that this rule should be applied to the legacy code.

PHPBB3-12725
This transformation actually looks incorrect as it looks like the length is changed via substr.