Code Duplication    Length = 8-8 lines in 2 locations

modules/widgets/googleplus-badge.php 1 location

@@ 300-307 (lines=8) @@
297
		return ( FALSE !== strpos( $url, 'plus.google.com' ) ) ? TRUE : FALSE;
298
	}
299
300
	function filter_text( $value, $default = '', $allowed = array() ) {
301
		$allowed = (array) $allowed;
302
303
		if ( empty( $value ) || ( ! empty( $allowed ) && ! in_array( $value, $allowed ) ) )
304
			$value = $default;
305
306
		return $value;
307
	}
308
}
309
310
// END

modules/widgets/facebook-likebox.php 1 location

@@ 278-285 (lines=8) @@
275
		return (int) $value;
276
	}
277
278
	function normalize_text_value( $value, $default = '', $allowed = array() ) {
279
		$allowed = (array) $allowed;
280
281
		if ( empty( $value ) || ( ! empty( $allowed ) && ! in_array( $value, $allowed ) ) )
282
			$value = $default;
283
284
		return $value;
285
	}
286
287
	/**
288
	 * @deprecated