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:
authorsgiehl <stefan@piwik.org>2015-07-08 22:51:31 +0300
committersgiehl <stefan@piwik.org>2015-07-08 22:51:37 +0300
commitcee467e61e70913d32d438d70df0384f4e803cc3 (patch)
tree44b89dc87424a5a2266865e0008cb3f52e409839 /plugins/LanguagesManager/Commands/CreatePull.php
parent4bb1936baf08825632328969367bcd8e6ea97d88 (diff)
small code improvement
Diffstat (limited to 'plugins/LanguagesManager/Commands/CreatePull.php')
-rw-r--r--plugins/LanguagesManager/Commands/CreatePull.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/LanguagesManager/Commands/CreatePull.php b/plugins/LanguagesManager/Commands/CreatePull.php
index 4436a4ba38..95a57e591f 100644
--- a/plugins/LanguagesManager/Commands/CreatePull.php
+++ b/plugins/LanguagesManager/Commands/CreatePull.php
@@ -121,7 +121,8 @@ class CreatePull extends TranslationBase
}
$linesSumByLang = array();
- for($i=0; $i<count($lineChanges[0]); $i++) {
+ $lineChangesCount = count($lineChanges[0]);
+ for ($i = 0; $i < $lineChangesCount; $i++) {
@$linesSumByLang[$lineChanges[3][$i]] += $lineChanges[1][$i];
}