Code Duplication    Length = 3-3 lines in 2 locations

modules/videopress-v2/utility-functions.php 1 location

@@ 16-18 (lines=3) @@
13
 * @return bool true if passes validation test
14
 */
15
function videopress_is_valid_guid( $guid ) {
16
	if ( ! empty( $guid ) && strlen( $guid ) === 8 && ctype_alnum( $guid ) ) {
17
		return true;
18
	}
19
	return false;
20
}
21

modules/videopress/utility-functions.php 1 location

@@ 15-17 (lines=3) @@
12
 * @return bool true if passes validation test
13
 */
14
function videopress_is_valid_guid( $guid ) {
15
	if ( ! empty( $guid ) && strlen( $guid ) === 8 && ctype_alnum( $guid ) ) {
16
		return true;
17
	}
18
	return false;
19
}
20