Code Duplication    Length = 10-10 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 4686-4695 (lines=10) @@
4683
 *
4684
 * @return string|null The current page number.
4685
 */
4686
function geodir_title_meta_pagenumber() {
4687
    $replacement = null;
4688
4689
    $nr = geodir_title_meta_pagenumbering('nr');
4690
    if (isset($nr) && $nr > 0) {
4691
        $replacement = (string)$nr;
4692
    }
4693
4694
    return $replacement;
4695
}
4696
4697
/**
4698
 * Retrieve the current page total for use as replacement string.
@@ 4705-4714 (lines=10) @@
4702
 *
4703
 * @return string|null The current page total.
4704
 */
4705
function geodir_title_meta_pagetotal() {
4706
    $replacement = null;
4707
4708
    $max = geodir_title_meta_pagenumbering('max');
4709
    if (isset($max) && $max > 0) {
4710
        $replacement = (string)$max;
4711
    }
4712
4713
    return $replacement;
4714
}
4715
4716
/**
4717
 * Determine the page numbering of the current post/page/cpt.