Skip to content

Commit

Permalink
Fixed code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfensdrfer committed Aug 20, 2020
1 parent 4930670 commit 24125e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
root = true

[*]
indent_style = tab
indent_style = space
indent_size = 4
#end_of_line = lf
charset = utf-8
Expand Down
23 changes: 12 additions & 11 deletions src/Matomo.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,10 +482,10 @@ private function _request(string $method, array $params = [], array $optional =

$req = Request::get($url);
if ($this->_verifySsl) {
$req->enableStrictSSL();
} else {
$req->disableStrictSSL();
}
$req->enableStrictSSL();
} else {
$req->disableStrictSSL();
}
$req->followRedirects($this->_maxRedirects);
$req->withTimeout(5);

Expand Down Expand Up @@ -552,9 +552,9 @@ private function _parseUrl(string $method, array $params = [])
] + $params;

foreach ($params as $key => $value) {
if(is_array($value)){
$params[$key] = urlencode(implode(',',$value));
}else{
if (is_array($value)) {
$params[$key] = urlencode(implode(',', $value));
} else {
$params[$key] = urlencode($value);
}
}
Expand All @@ -563,7 +563,7 @@ private function _parseUrl(string $method, array $params = [])
$params = $params + [
'date' => $this->_rangeStart . ',' . $this->_rangeEnd,
];
} elseif (!empty($this->_date)) {
} else if (!empty($this->_date)) {
$params = $params + [
'date' => $this->_date,
];
Expand Down Expand Up @@ -623,7 +623,6 @@ private function _parseResponse(Response $response)
switch ($this->_format) {
case self::FORMAT_JSON:
return json_decode($response, $this->_isJsonDecodeAssoc);
break;
default:
return $response;
}
Expand Down Expand Up @@ -3851,7 +3850,7 @@ public function getSitesFromGroup($group, array $optional = [])

/**
* Get all site groups.
* Requires superuser access.
* Requires superuser access.
*
* @param array $optional
* @return bool|object
Expand Down Expand Up @@ -4016,6 +4015,7 @@ public function getSiteSettings()
* Requires Super User access.
*
* The website is defined by a name and an array of URLs.
*
* @param string $siteName Site name
* @param string $urls Comma separated list of urls
* @param string $ecommerce Is Ecommerce Reporting enabled for this website?
Expand All @@ -4027,7 +4027,8 @@ public function getSiteSettings()
* @param string $timezone Timezone string, eg. 'Europe/London'
* @param string $currency Currency, eg. 'EUR'
* @param string $group Website group identifier
* @param string $startDate Date at which the statistics for this website will start. Defaults to today's date in YYYY-MM-DD format
* @param string $startDate Date at which the statistics for this website will start. Defaults to today's date in
* YYYY-MM-DD format
* @param string $excludedUserAgents
* @param string $keepURLFragments If 1, URL fragments will be kept when tracking. If 2, they
* will be removed. If 0, the default global behavior will be used.
Expand Down

0 comments on commit 24125e2

Please sign in to comment.