Code Duplication    Length = 7-7 lines in 2 locations

sources/main.queries.php 2 locations

@@ 1168-1174 (lines=7) @@
1165
                foreach (array_filter(explode(";", $SETTINGS['send_statistics_items'])) as $data) {
1166
                    if ($data === "stat_languages") {
1167
                        $tmp = "";
1168
                        foreach ($stats_data[$data] as $key => $value) {
1169
                            if (empty($tmp)) {
1170
                                $tmp = $key."-".$value;
1171
                            } else {
1172
                                $tmp .= ",".$key."-".$value;
1173
                            }
1174
                        }
1175
                        $statsToSend[$data] = $tmp;
1176
                    } elseif ($data === "stat_country") {
1177
                        $tmp = "";
@@ 1178-1184 (lines=7) @@
1175
                        $statsToSend[$data] = $tmp;
1176
                    } elseif ($data === "stat_country") {
1177
                        $tmp = "";
1178
                        foreach ($stats_data[$data] as $key => $value) {
1179
                            if (empty($tmp)) {
1180
                                $tmp = $key."-".$value;
1181
                            } else {
1182
                                $tmp .= ",".$key."-".$value;
1183
                            }
1184
                        }
1185
                        $statsToSend[$data] = $tmp;
1186
                    } else {
1187
                        $statsToSend[$data] = $stats_data[$data];