Code Duplication    Length = 10-10 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 5000-5009 (lines=10) @@
4997
 *
4998
 * @return string|null The current page number.
4999
 */
5000
function geodir_title_meta_pagenumber() {
5001
	$replacement = null;
5002
5003
	$nr = geodir_title_meta_pagenumbering( 'nr' );
5004
	if ( isset( $nr ) && $nr > 0 ) {
5005
		$replacement = (string) $nr;
5006
	}
5007
5008
	return $replacement;
5009
}
5010
5011
/**
5012
 * Retrieve the current page total for use as replacement string.
@@ 5019-5028 (lines=10) @@
5016
 *
5017
 * @return string|null The current page total.
5018
 */
5019
function geodir_title_meta_pagetotal() {
5020
	$replacement = null;
5021
5022
	$max = geodir_title_meta_pagenumbering( 'max' );
5023
	if ( isset( $max ) && $max > 0 ) {
5024
		$replacement = (string) $max;
5025
	}
5026
5027
	return $replacement;
5028
}
5029
5030
/**
5031
 * Determine the page numbering of the current post/page/cpt.