removing errors PSR2 CrudController