@@ -482,10 +482,10 @@ private function _request(string $method, array $params = [], array $optional =
482
482
483
483
$ req = Request::get ($ url );
484
484
if ($ this ->_verifySsl ) {
485
- $ req ->enableStrictSSL ();
486
- } else {
487
- $ req ->disableStrictSSL ();
488
- }
485
+ $ req ->enableStrictSSL ();
486
+ } else {
487
+ $ req ->disableStrictSSL ();
488
+ }
489
489
$ req ->followRedirects ($ this ->_maxRedirects );
490
490
$ req ->withTimeout (5 );
491
491
@@ -552,9 +552,9 @@ private function _parseUrl(string $method, array $params = [])
552
552
] + $ params ;
553
553
554
554
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 {
558
558
$ params [$ key ] = urlencode ($ value );
559
559
}
560
560
}
@@ -563,7 +563,7 @@ private function _parseUrl(string $method, array $params = [])
563
563
$ params = $ params + [
564
564
'date ' => $ this ->_rangeStart . ', ' . $ this ->_rangeEnd ,
565
565
];
566
- } elseif (!empty ($ this ->_date )) {
566
+ } else if (!empty ($ this ->_date )) {
567
567
$ params = $ params + [
568
568
'date ' => $ this ->_date ,
569
569
];
@@ -623,7 +623,6 @@ private function _parseResponse(Response $response)
623
623
switch ($ this ->_format ) {
624
624
case self ::FORMAT_JSON :
625
625
return json_decode ($ response , $ this ->_isJsonDecodeAssoc );
626
- break ;
627
626
default :
628
627
return $ response ;
629
628
}
@@ -3851,7 +3850,7 @@ public function getSitesFromGroup($group, array $optional = [])
3851
3850
3852
3851
/**
3853
3852
* Get all site groups.
3854
- * Requires superuser access.
3853
+ * Requires superuser access.
3855
3854
*
3856
3855
* @param array $optional
3857
3856
* @return bool|object
@@ -4016,6 +4015,7 @@ public function getSiteSettings()
4016
4015
* Requires Super User access.
4017
4016
*
4018
4017
* The website is defined by a name and an array of URLs.
4018
+ *
4019
4019
* @param string $siteName Site name
4020
4020
* @param string $urls Comma separated list of urls
4021
4021
* @param string $ecommerce Is Ecommerce Reporting enabled for this website?
@@ -4027,7 +4027,8 @@ public function getSiteSettings()
4027
4027
* @param string $timezone Timezone string, eg. 'Europe/London'
4028
4028
* @param string $currency Currency, eg. 'EUR'
4029
4029
* @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
4031
4032
* @param string $excludedUserAgents
4032
4033
* @param string $keepURLFragments If 1, URL fragments will be kept when tracking. If 2, they
4033
4034
* will be removed. If 0, the default global behavior will be used.
0 commit comments