SONARPLUGINS-3110 Avoid definition of functions inside loops: typo in code snippet