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
path: root/core
diff options
context:
space:
mode:
authorsgiehl <stefan@piwik.org>2015-09-25 19:07:17 +0300
committersgiehl <stefan@piwik.org>2015-10-11 12:08:57 +0300
commit7558648190511ff01ed72392888aa3bcf7f09e76 (patch)
treee8354a3decec12f472f1fbafcae75461913ca258 /core
parent3e02a250be06c5295ae821cfeeaa8619e27b6333 (diff)
fix php compatibility
Diffstat (limited to 'core')
-rw-r--r--core/NumberFormatter.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/NumberFormatter.php b/core/NumberFormatter.php
index d2d56f189a..0839cb4ba7 100644
--- a/core/NumberFormatter.php
+++ b/core/NumberFormatter.php
@@ -142,7 +142,6 @@ class NumberFormatter extends Singleton
*/
protected function formatNumberWithPattern($pattern, $value, $maximumFractionDigits=0, $minimumFractionDigits=0)
{
- $orig = $value;
if (!is_numeric($value)) {
return $value;
}
@@ -160,7 +159,7 @@ class NumberFormatter extends Singleton
// Reverse the major digits, since they are grouped from the right.
$majorDigits = array_reverse(str_split($majorDigits));
// Group the major digits.
- $groups = [];
+ $groups = array();
$groups[] = array_splice($majorDigits, 0, $this->primaryGroupSize);
while (!empty($majorDigits)) {
$groups[] = array_splice($majorDigits, 0, $this->secondaryGroupSize);
@@ -203,13 +202,13 @@ class NumberFormatter extends Singleton
*/
protected function replaceSymbols($value)
{
- $replacements = [
+ $replacements = array(
'.' => $this->symbolDecimal,
',' => $this->symbolGroup,
'+' => $this->symbolPlus,
'-' => $this->symbolMinus,
'%' => $this->symbolPercent,
- ];
+ );
return strtr($value, $replacements);
}
} \ No newline at end of file