phpcs refactor