/** * Returns the base URL for the piwik server. */ protected function getBaseUrl() { if (!empty($this->baseApiUrl)) { return $this->baseApiUrl; } return parent::getBaseUrl(); }