Code Duplication    Length = 10-10 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4694-4703 (lines=10) @@
4691
 *
4692
 * @return string|null The current page number.
4693
 */
4694
function geodir_title_meta_pagenumber() {
4695
    $replacement = null;
4696
4697
    $nr = geodir_title_meta_pagenumbering('nr');
4698
    if (isset($nr) && $nr > 0) {
4699
        $replacement = (string)$nr;
4700
    }
4701
4702
    return $replacement;
4703
}
4704
4705
/**
4706
 * Retrieve the current page total for use as replacement string.
@@ 4713-4722 (lines=10) @@
4710
 *
4711
 * @return string|null The current page total.
4712
 */
4713
function geodir_title_meta_pagetotal() {
4714
    $replacement = null;
4715
4716
    $max = geodir_title_meta_pagenumbering('max');
4717
    if (isset($max) && $max > 0) {
4718
        $replacement = (string)$max;
4719
    }
4720
4721
    return $replacement;
4722
}
4723
4724
/**
4725
 * Determine the page numbering of the current post/page/cpt.