From a15b3d12f30623a7d800089eed6bbd5a408dfc45 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 23 Dec 2021 12:12:59 +0100 Subject: [PATCH] wip #4978 @0.25 --- .idea/runConfigurations.xml | 10 ---------- src/Reporting.php | 7 ++++++- 2 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 .idea/runConfigurations.xml 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 -- 2.39.5