Skip to content

Commit 24125e2

Browse files
committed
Fixed code formatting
1 parent 4930670 commit 24125e2

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
root = true
33

44
[*]
5-
indent_style = tab
5+
indent_style = space
66
indent_size = 4
77
#end_of_line = lf
88
charset = utf-8

src/Matomo.php

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy