Code Duplication    Length = 13-15 lines in 2 locations

class.jetpack-user-agent.php 2 locations

@@ 516-528 (lines=13) @@
513
	 * 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
514
	 *
515
	 */
516
	static function is_twitter_for_ipad( ) {
517
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
518
			return false;
519
520
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
521
522
		if ( strpos( $ua, 'twitter for ipad' ) !== false )
523
			return true;
524
		elseif( strpos( $ua, 'ipad' ) !== false && strpos( $ua, 'twitter for iphone' ) !== false )
525
			return true;
526
		else
527
			return false;
528
	}
529
530
531
	/*
@@ 929-943 (lines=15) @@
926
	    return false;
927
	}
928
929
	static function is_J2ME_platform() {
930
931
		if ( empty( $_SERVER['HTTP_USER_AGENT'] ) )
932
			return false;
933
934
		$agent = strtolower( $_SERVER['HTTP_USER_AGENT'] );
935
936
		if ( strpos( $agent, 'j2me/midp' ) !== false ) {
937
			return true;
938
		} elseif ( strpos( $agent, 'midp' ) !== false && strpos( $agent, 'cldc' ) ) {
939
			return true;
940
		}
941
942
	    return false;
943
	}
944
945
946
	/*