@@ -482,10 +482,10 @@ private function _request(string $method, array $params = [], array $optional =
482482
483483 $ req = Request::get ($ url );
484484 if ($ this ->_verifySsl ) {
485- $ req ->enableStrictSSL ();
486- } else {
487- $ req ->disableStrictSSL ();
488- }
485+ $ req ->enableStrictSSL ();
486+ } else {
487+ $ req ->disableStrictSSL ();
488+ }
489489 $ req ->followRedirects ($ this ->_maxRedirects );
490490 $ req ->withTimeout (5 );
491491
@@ -552,9 +552,9 @@ private function _parseUrl(string $method, array $params = [])
552552 ] + $ params ;
553553
554554 foreach ($ params as $ key => $ value ) {
555- if (is_array ($ value )){
556- $ params [$ key ] = urlencode (implode (', ' ,$ value ));
557- }else {
555+ if (is_array ($ value )) {
556+ $ params [$ key ] = urlencode (implode (', ' , $ value ));
557+ } else {
558558 $ params [$ key ] = urlencode ($ value );
559559 }
560560 }
@@ -563,7 +563,7 @@ private function _parseUrl(string $method, array $params = [])
563563 $ params = $ params + [
564564 'date ' => $ this ->_rangeStart . ', ' . $ this ->_rangeEnd ,
565565 ];
566- } elseif (!empty ($ this ->_date )) {
566+ } else if (!empty ($ this ->_date )) {
567567 $ params = $ params + [
568568 'date ' => $ this ->_date ,
569569 ];
@@ -623,7 +623,6 @@ private function _parseResponse(Response $response)
623623 switch ($ this ->_format ) {
624624 case self ::FORMAT_JSON :
625625 return json_decode ($ response , $ this ->_isJsonDecodeAssoc );
626- break ;
627626 default :
628627 return $ response ;
629628 }
@@ -3851,7 +3850,7 @@ public function getSitesFromGroup($group, array $optional = [])
38513850
38523851 /**
38533852 * Get all site groups.
3854- * Requires superuser access.
3853+ * Requires superuser access.
38553854 *
38563855 * @param array $optional
38573856 * @return bool|object
@@ -4016,6 +4015,7 @@ public function getSiteSettings()
40164015 * Requires Super User access.
40174016 *
40184017 * The website is defined by a name and an array of URLs.
4018+ *
40194019 * @param string $siteName Site name
40204020 * @param string $urls Comma separated list of urls
40214021 * @param string $ecommerce Is Ecommerce Reporting enabled for this website?
@@ -4027,7 +4027,8 @@ public function getSiteSettings()
40274027 * @param string $timezone Timezone string, eg. 'Europe/London'
40284028 * @param string $currency Currency, eg. 'EUR'
40294029 * @param string $group Website group identifier
4030- * @param string $startDate Date at which the statistics for this website will start. Defaults to today's date in YYYY-MM-DD format
4030+ * @param string $startDate Date at which the statistics for this website will start. Defaults to today's date in
4031+ * YYYY-MM-DD format
40314032 * @param string $excludedUserAgents
40324033 * @param string $keepURLFragments If 1, URL fragments will be kept when tracking. If 2, they
40334034 * will be removed. If 0, the default global behavior will be used.
0 commit comments