From: Vincent Vanwaelscappel Date: Thu, 23 Dec 2021 11:12:59 +0000 (+0100) Subject: wip #4978 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a15b3d12f30623a7d800089eed6bbd5a408dfc45;p=cubist_matomo.git wip #4978 @0.25 --- diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml deleted file mode 100644 index 797acea..0000000 --- a/.idea/runConfigurations.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/Reporting.php b/src/Reporting.php index 88574c4..786e3f9 100644 --- a/src/Reporting.php +++ b/src/Reporting.php @@ -65,13 +65,18 @@ class Reporting */ public function createSiteIfNotExistsOrReturnId($name, $url, $search = true, $ecommerce = false) { - $id=$this->getSiteIdByURL($url); + $id = $this->getSiteIdByURL($url); if (null === $id) { return $this->createSite($name, $url, $search, $ecommerce); } return $id; } + public function deleteSite($siteId) + { + return $this->_apicall('SitesManager.deleteSite', ['idSite', $siteId]); + } + /** * @param $url * @return int|null