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 'plugins/MobileMessaging/ReportRenderer/Sms.php')
-rw-r--r--plugins/MobileMessaging/ReportRenderer/Sms.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/plugins/MobileMessaging/ReportRenderer/Sms.php b/plugins/MobileMessaging/ReportRenderer/Sms.php
index 6e2ede2c94..887ae15fe9 100644
--- a/plugins/MobileMessaging/ReportRenderer/Sms.php
+++ b/plugins/MobileMessaging/ReportRenderer/Sms.php
@@ -70,21 +70,21 @@ class Sms extends ReportRenderer
$evolutionMetrics[] = $metricSettings[API::METRIC_EVOLUTION_COL_NAME_KEY];
}
- $floatRegex = self::FLOAT_REGEXP;
+ $floatRegex = self::FLOAT_REGEXP;
// no decimal for all metrics to shorten SMS content (keeps the monetary sign for revenue metrics)
$reportData->filter(
'ColumnCallbackReplace',
array(
- array_merge(array_keys($multiSitesAPIMetrics), $evolutionMetrics),
- function($value) use ($floatRegex) {
- return preg_replace_callback(
- $floatRegex,
- function($matches) {
- return round($matches[0]);
- },
- $value
- );
- }
+ array_merge(array_keys($multiSitesAPIMetrics), $evolutionMetrics),
+ function ($value) use ($floatRegex) {
+ return preg_replace_callback(
+ $floatRegex,
+ function ($matches) {
+ return round($matches[0]);
+ },
+ $value
+ );
+ }
)
);
@@ -95,11 +95,11 @@ class Sms extends ReportRenderer
$reportData->filter(
'ColumnCallbackReplace',
array(
- $evolutionMetrics,
- function($value) use ($floatRegex) {
- $matched = preg_match($floatRegex, $value, $matches);
- return $matched ? sprintf("%+d",$matches[0]) : $value;
- }
+ $evolutionMetrics,
+ function ($value) use ($floatRegex) {
+ $matched = preg_match($floatRegex, $value, $matches);
+ return $matched ? sprintf("%+d", $matches[0]) : $value;
+ }
)
);