Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 571-583 (lines=13) @@
568
	 * Ver 5.0 or Higher - Mozilla/5.0 (iPad; CPU OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Mobile/9B206 Twitter for iPhone
569
	 *
570
	 */
571
	static function is_twitter_for_ipad( ) {
572
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
573
			return false;
574
575
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
576
577
		if ( strpos( $ua, 'twitter for ipad' ) !== false )
578
			return true;
579
		elseif( strpos( $ua, 'ipad' ) !== false && strpos( $ua, 'twitter for iphone' ) !== false )
580
			return true;
581
		else
582
			return false;
583
	}
584
585
586
	/*
@@ 984-998 (lines=15) @@
981
	    return false;
982
	}
983
984
	static function is_J2ME_platform() {
985
986
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
987
			return false;
988
989
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
990
991
		if ( strpos( $agent, 'j2me/midp' ) !== false ) {
992
			return true;
993
		} elseif ( strpos( $agent, 'midp' ) !== false && strpos( $agent, 'cldc' ) ) {
994
			return true;
995
		}
996
997
	    return false;
998
	}
999
1000
1001
	/*