Code Duplication    Length = 2-2 lines in 8 locations

geodirectory-functions/general_functions.php 8 locations

@@ 4544-4545 (lines=2) @@
4541
                    $translation_texts[] = $labels['not_found'];
4542
                if ($labels['not_found_in_trash'] != '' && !in_array($labels['not_found_in_trash'], $translation_texts))
4543
                    $translation_texts[] = $labels['not_found_in_trash'];
4544
                if (isset($labels['label_post_profile']) && $labels['label_post_profile'] != '' && !in_array($labels['label_post_profile'], $translation_texts))
4545
                    $translation_texts[] = $labels['label_post_profile'];
4546
                if (isset($labels['label_post_info']) && $labels['label_post_info'] != '' && !in_array($labels['label_post_info'], $translation_texts))
4547
                    $translation_texts[] = $labels['label_post_info'];
4548
                if (isset($labels['label_post_images']) && $labels['label_post_images'] != '' && !in_array($labels['label_post_images'], $translation_texts))
@@ 4546-4547 (lines=2) @@
4543
                    $translation_texts[] = $labels['not_found_in_trash'];
4544
                if (isset($labels['label_post_profile']) && $labels['label_post_profile'] != '' && !in_array($labels['label_post_profile'], $translation_texts))
4545
                    $translation_texts[] = $labels['label_post_profile'];
4546
                if (isset($labels['label_post_info']) && $labels['label_post_info'] != '' && !in_array($labels['label_post_info'], $translation_texts))
4547
                    $translation_texts[] = $labels['label_post_info'];
4548
                if (isset($labels['label_post_images']) && $labels['label_post_images'] != '' && !in_array($labels['label_post_images'], $translation_texts))
4549
                    $translation_texts[] = $labels['label_post_images'];
4550
                if (isset($labels['label_post_map']) && $labels['label_post_map'] != '' && !in_array($labels['label_post_map'], $translation_texts))
@@ 4548-4549 (lines=2) @@
4545
                    $translation_texts[] = $labels['label_post_profile'];
4546
                if (isset($labels['label_post_info']) && $labels['label_post_info'] != '' && !in_array($labels['label_post_info'], $translation_texts))
4547
                    $translation_texts[] = $labels['label_post_info'];
4548
                if (isset($labels['label_post_images']) && $labels['label_post_images'] != '' && !in_array($labels['label_post_images'], $translation_texts))
4549
                    $translation_texts[] = $labels['label_post_images'];
4550
                if (isset($labels['label_post_map']) && $labels['label_post_map'] != '' && !in_array($labels['label_post_map'], $translation_texts))
4551
                    $translation_texts[] = $labels['label_post_map'];
4552
                if (isset($labels['label_reviews']) && $labels['label_reviews'] != '' && !in_array($labels['label_reviews'], $translation_texts))
@@ 4550-4551 (lines=2) @@
4547
                    $translation_texts[] = $labels['label_post_info'];
4548
                if (isset($labels['label_post_images']) && $labels['label_post_images'] != '' && !in_array($labels['label_post_images'], $translation_texts))
4549
                    $translation_texts[] = $labels['label_post_images'];
4550
                if (isset($labels['label_post_map']) && $labels['label_post_map'] != '' && !in_array($labels['label_post_map'], $translation_texts))
4551
                    $translation_texts[] = $labels['label_post_map'];
4552
                if (isset($labels['label_reviews']) && $labels['label_reviews'] != '' && !in_array($labels['label_reviews'], $translation_texts))
4553
                    $translation_texts[] = $labels['label_reviews'];
4554
                if (isset($labels['label_related_listing']) && $labels['label_related_listing'] != '' && !in_array($labels['label_related_listing'], $translation_texts))
@@ 4552-4553 (lines=2) @@
4549
                    $translation_texts[] = $labels['label_post_images'];
4550
                if (isset($labels['label_post_map']) && $labels['label_post_map'] != '' && !in_array($labels['label_post_map'], $translation_texts))
4551
                    $translation_texts[] = $labels['label_post_map'];
4552
                if (isset($labels['label_reviews']) && $labels['label_reviews'] != '' && !in_array($labels['label_reviews'], $translation_texts))
4553
                    $translation_texts[] = $labels['label_reviews'];
4554
                if (isset($labels['label_related_listing']) && $labels['label_related_listing'] != '' && !in_array($labels['label_related_listing'], $translation_texts))
4555
                    $translation_texts[] = $labels['label_related_listing'];
4556
            }
@@ 4554-4555 (lines=2) @@
4551
                    $translation_texts[] = $labels['label_post_map'];
4552
                if (isset($labels['label_reviews']) && $labels['label_reviews'] != '' && !in_array($labels['label_reviews'], $translation_texts))
4553
                    $translation_texts[] = $labels['label_reviews'];
4554
                if (isset($labels['label_related_listing']) && $labels['label_related_listing'] != '' && !in_array($labels['label_related_listing'], $translation_texts))
4555
                    $translation_texts[] = $labels['label_related_listing'];
4556
            }
4557
4558
            if ($description != '' && !in_array($description, $translation_texts)) {
@@ 4563-4564 (lines=2) @@
4560
            }
4561
4562
            if (!empty($seo)) {
4563
                if (isset($seo['meta_keyword']) && $seo['meta_keyword'] != '' && !in_array($seo['meta_keyword'], $translation_texts))
4564
                    $translation_texts[] = normalize_whitespace($seo['meta_keyword']);
4565
4566
                if (isset($seo['meta_description']) && $seo['meta_description'] != '' && !in_array($seo['meta_description'], $translation_texts))
4567
                    $translation_texts[] = normalize_whitespace($seo['meta_description']);
@@ 4566-4567 (lines=2) @@
4563
                if (isset($seo['meta_keyword']) && $seo['meta_keyword'] != '' && !in_array($seo['meta_keyword'], $translation_texts))
4564
                    $translation_texts[] = normalize_whitespace($seo['meta_keyword']);
4565
4566
                if (isset($seo['meta_description']) && $seo['meta_description'] != '' && !in_array($seo['meta_description'], $translation_texts))
4567
                    $translation_texts[] = normalize_whitespace($seo['meta_description']);
4568
            }
4569
        }
4570
    }