Fixes: #2245 Add a test to codesniffer for the php foreach issue
Fixes: #2245 Forgot a debug print_r