Code Duplication    Length = 7-8 lines in 2 locations

packages/mobile/src/class-mobile.php 2 locations

@@ 512-519 (lines=8) @@
509
		}
510
511
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
512
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
513
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
514
				return false;
515
			} else {
516
				return true;
517
			}
518
		} else {
519
			return false;
520
		}
521
	}
522
@@ 1120-1126 (lines=7) @@
1117
		}
1118
1119
		// Must be Linux + Tablet, or else it could be something else.
1120
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1121
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1122
				return false;
1123
			} else {
1124
				return true;
1125
			}
1126
		} else {
1127
			return false;
1128
		}
1129
	}