Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'misc/others/api_rest_call.php')
-rw-r--r--misc/others/api_rest_call.php16
1 files changed, 7 insertions, 9 deletions
diff --git a/misc/others/api_rest_call.php b/misc/others/api_rest_call.php
index f7a7bfe995..d286e92f49 100644
--- a/misc/others/api_rest_call.php
+++ b/misc/others/api_rest_call.php
@@ -16,17 +16,15 @@ $fetched = file_get_contents($url);
$content = unserialize($fetched);
// case error
-if(!$content)
-{
- print("Error, content fetched = ".$fetched);
+if (!$content) {
+ print("Error, content fetched = " . $fetched);
}
print("<h1>Keywords for the last month</h1>");
-foreach($content as $row)
-{
- $keyword = htmlspecialchars(html_entity_decode(urldecode($row['label']), ENT_QUOTES), ENT_QUOTES);
- $hits = $row['nb_visits'];
-
- print("<b>$keyword</b> ($hits hits)<br>");
+foreach ($content as $row) {
+ $keyword = htmlspecialchars(html_entity_decode(urldecode($row['label']), ENT_QUOTES), ENT_QUOTES);
+ $hits = $row['nb_visits'];
+
+ print("<b>$keyword</b> ($hits hits)<br>");
}