Bug fix: wrong url on multiple api calls
Correct PHPCS recommendations