Refactoring based on Scrutinizer recommendation