refactor(libraries): refactor for phpcs