Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 576-588 (lines=13) @@
573
	 * 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
574
	 *
575
	 */
576
	static function is_twitter_for_ipad( ) {
577
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
578
			return false;
579
580
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
581
582
		if ( strpos( $ua, 'twitter for ipad' ) !== false )
583
			return true;
584
		elseif( strpos( $ua, 'ipad' ) !== false && strpos( $ua, 'twitter for iphone' ) !== false )
585
			return true;
586
		else
587
			return false;
588
	}
589
590
591
	/*
@@ 989-1003 (lines=15) @@
986
	    return false;
987
	}
988
989
	static function is_J2ME_platform() {
990
991
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
992
			return false;
993
994
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
995
996
		if ( strpos( $agent, 'j2me/midp' ) !== false ) {
997
			return true;
998
		} elseif ( strpos( $agent, 'midp' ) !== false && strpos( $agent, 'cldc' ) ) {
999
			return true;
1000
		}
1001
1002
	    return false;
1003
	}
1004
1005
1006
	/*