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:
authorFabian Becker <fabian.becker@uni-tuebingen.de>2013-09-04 03:33:25 +0400
committerFabian Becker <fabian.becker@uni-tuebingen.de>2013-09-04 03:33:25 +0400
commitf229dbc8cc1df2fbe90bdcd5a9e7762abc5fc8ae (patch)
tree217e4a245fe559cc39c599378d2965e1a3f1ff91 /plugins/SitesManager
parente3bbc07eb21e8a2c1ea53d4ac55d94bf47214353 (diff)
Replace create_function calls with lambda functions.
This allows the IDE to pick up all code! refs #4113
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r--plugins/SitesManager/API.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/SitesManager/API.php b/plugins/SitesManager/API.php
index db68b112cc..5904097dd6 100644
--- a/plugins/SitesManager/API.php
+++ b/plugins/SitesManager/API.php
@@ -1079,7 +1079,7 @@ class API
public function getCurrencyList()
{
$currencies = Piwik::getCurrencyList();
- return array_map(create_function('$a', 'return $a[1]." (".$a[0].")";'), $currencies);
+ return array_map(function($a) { return $a[1]." (".$a[0].")"; }, $currencies);
}
/**
@@ -1090,7 +1090,7 @@ class API
public function getCurrencySymbols()
{
$currencies = Piwik::getCurrencyList();
- return array_map(create_function('$a', 'return $a[0];'), $currencies);
+ return array_map(function($a) { return $a[0]; }, $currencies);
}
/**