Code Duplication    Length = 10-10 lines in 2 locations

geodirectory-functions/general_functions.php 2 locations

@@ 5027-5036 (lines=10) @@
5024
 *
5025
 * @return string|null The current page number.
5026
 */
5027
function geodir_title_meta_pagenumber() {
5028
	$replacement = null;
5029
5030
	$nr = geodir_title_meta_pagenumbering( 'nr' );
5031
	if ( isset( $nr ) && $nr > 0 ) {
5032
		$replacement = (string) $nr;
5033
	}
5034
5035
	return $replacement;
5036
}
5037
5038
/**
5039
 * Retrieve the current page total for use as replacement string.
@@ 5046-5055 (lines=10) @@
5043
 *
5044
 * @return string|null The current page total.
5045
 */
5046
function geodir_title_meta_pagetotal() {
5047
	$replacement = null;
5048
5049
	$max = geodir_title_meta_pagenumbering( 'max' );
5050
	if ( isset( $max ) && $max > 0 ) {
5051
		$replacement = (string) $max;
5052
	}
5053
5054
	return $replacement;
5055
}
5056
5057
/**
5058
 * Determine the page numbering of the current post/page/cpt.