Code Duplication    Length = 8-8 lines in 2 locations

application/modules/sitemap/sitemap.php 2 locations

@@ 370-377 (lines=8) @@
367
                foreach ($this->langs as $lang_indentif => $lang) {
368
                    if ($lang['id'] != $this->default_lang['id']) {
369
                        $url = $lang_indentif . '/' . $category['path_url'];
370
                        if ($this->not_blocked_url($url)) {
371
                            $this->items[] = [
372
                                'loc' => site_url($url),
373
                                'changefreq' => $changefreq,
374
                                'priority' => $priority,
375
                                'lastmod' => $date
376
                            ];
377
                        }
378
                    }
379
                }
380
            }
@@ 465-472 (lines=8) @@
462
                    $c_priority = $this->pages_priority;
463
                }
464
465
                if ($this->not_blocked_url($url_page)) {
466
                    $this->items[] = [
467
                        'loc' => $url,
468
                        'changefreq' => $this->pages_changefreq,
469
                        'priority' => $c_priority,
470
                        'lastmod' => $date
471
                    ];
472
                }
473
            }
474
        }
475
    }