Code Duplication    Length = 7-8 lines in 2 locations

packages/device-detection/src/class-device-detection.php 2 locations

@@ 579-586 (lines=8) @@
576
		}
577
578
		$ua = strtolower( $_SERVER['HTTP_USER_AGENT'] );
579
		if ( ( strpos( $ua, 'iphone' ) !== false ) || ( strpos( $ua, 'ipod' ) !== false ) ) {
580
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
581
				return false;
582
			} else {
583
				return true;
584
			}
585
		} else {
586
			return false;
587
		}
588
	}
589
@@ 1187-1193 (lines=7) @@
1184
		}
1185
1186
		// Must be Linux + Tablet, or else it could be something else.
1187
		if ( strpos( $agent, 'tablet' ) !== false && strpos( $agent, 'linux' ) !== false ) {
1188
			if ( self::is_opera_mini() || self::is_opera_mobile() || self::is_firefox_mobile() ) {
1189
				return false;
1190
			} else {
1191
				return true;
1192
			}
1193
		} else {
1194
			return false;
1195
		}
1196
	}