Replace 'method' by 'function' in PHP rule bundle