apply many phpcs suggestions to HttpClient