summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/ContextGenerator.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/ContextGenerator.php b/tools/ContextGenerator.php
index 1b65e14..685fe59 100644
--- a/tools/ContextGenerator.php
+++ b/tools/ContextGenerator.php
@@ -97,9 +97,9 @@ class ContextGenerator
public static function sortWords(array &$arr)
{
ksort($arr);
- foreach ($arr as $type => &$wordsByLen) {
+ foreach ($arr as &$wordsByLen) {
ksort($wordsByLen);
- foreach ($wordsByLen as $len => &$words) {
+ foreach ($wordsByLen as &$words) {
sort($words, SORT_STRING);
}
}