Code Duplication    Length = 6-6 lines in 16 locations

class.jetpack-user-agent.php 16 locations

@@ 315-320 (lines=6) @@
312
			$this->isTierRichCss = false;
313
			$this->isTierGenericMobile = false;
314
		}
315
		elseif ( $this->is_android() ) {
316
			$this->matched_agent = 'android';
317
			$this->isTierIphone = true;
318
			$this->isTierRichCss = false;
319
			$this->isTierGenericMobile = false;
320
		}
321
		elseif ( $this->is_windows_phone_8() ) {
322
			$this->matched_agent = 'winphone8';
323
			$this->isTierIphone = true;
@@ 321-326 (lines=6) @@
318
			$this->isTierRichCss = false;
319
			$this->isTierGenericMobile = false;
320
		}
321
		elseif ( $this->is_windows_phone_8() ) {
322
			$this->matched_agent = 'winphone8';
323
			$this->isTierIphone = true;
324
			$this->isTierRichCss = false;
325
			$this->isTierGenericMobile = false;
326
		}
327
		elseif ( $this->is_WindowsPhone7() ) {
328
			$this->matched_agent = 'win7';
329
			$this->isTierIphone = true;
@@ 327-332 (lines=6) @@
324
			$this->isTierRichCss = false;
325
			$this->isTierGenericMobile = false;
326
		}
327
		elseif ( $this->is_WindowsPhone7() ) {
328
			$this->matched_agent = 'win7';
329
			$this->isTierIphone = true;
330
			$this->isTierRichCss = false;
331
			$this->isTierGenericMobile = false;
332
		}
333
		elseif ( $this->is_blackberry_10() ) {
334
			$this->matched_agent = 'blackberry-10';
335
			$this->isTierIphone = true;
@@ 333-338 (lines=6) @@
330
			$this->isTierRichCss = false;
331
			$this->isTierGenericMobile = false;
332
		}
333
		elseif ( $this->is_blackberry_10() ) {
334
			$this->matched_agent = 'blackberry-10';
335
			$this->isTierIphone = true;
336
			$this->isTierRichCss = false;
337
			$this->isTierGenericMobile = false;
338
		}
339
		elseif ( $this->is_blackbeberry() && $this->detect_blackberry_browser_version() == 'blackberry-webkit' ) {
340
			$this->matched_agent = 'blackberry-webkit';
341
			$this->isTierIphone = true;
@@ 339-344 (lines=6) @@
336
			$this->isTierRichCss = false;
337
			$this->isTierGenericMobile = false;
338
		}
339
		elseif ( $this->is_blackbeberry() && $this->detect_blackberry_browser_version() == 'blackberry-webkit' ) {
340
			$this->matched_agent = 'blackberry-webkit';
341
			$this->isTierIphone = true;
342
			$this->isTierRichCss = false;
343
			$this->isTierGenericMobile = false;
344
		}
345
		elseif ( $this->is_blackberry_tablet() ) {
346
			$this->matched_agent = 'blackberry_tablet';
347
			$this->isTierIphone = true;
@@ 345-350 (lines=6) @@
342
			$this->isTierRichCss = false;
343
			$this->isTierGenericMobile = false;
344
		}
345
		elseif ( $this->is_blackberry_tablet() ) {
346
			$this->matched_agent = 'blackberry_tablet';
347
			$this->isTierIphone = true;
348
			$this->isTierRichCss = false;
349
			$this->isTierGenericMobile = false;
350
		}
351
		elseif ( $this->is_PalmWebOS() ) {
352
			$this->matched_agent = 'webos';
353
			$this->isTierIphone = true;
@@ 351-356 (lines=6) @@
348
			$this->isTierRichCss = false;
349
			$this->isTierGenericMobile = false;
350
		}
351
		elseif ( $this->is_PalmWebOS() ) {
352
			$this->matched_agent = 'webos';
353
			$this->isTierIphone = true;
354
			$this->isTierRichCss = false;
355
			$this->isTierGenericMobile = false;
356
		}
357
		elseif ( $this->is_TouchPad() ) {
358
			$this->matched_agent = 'hp_tablet';
359
			$this->isTierIphone = true;
@@ 357-362 (lines=6) @@
354
			$this->isTierRichCss = false;
355
			$this->isTierGenericMobile = false;
356
		}
357
		elseif ( $this->is_TouchPad() ) {
358
			$this->matched_agent = 'hp_tablet';
359
			$this->isTierIphone = true;
360
			$this->isTierRichCss = false;
361
			$this->isTierGenericMobile = false;
362
		}
363
		elseif ( $this->is_firefox_os() ) {
364
			$this->matched_agent = 'firefoxOS';
365
			$this->isTierIphone = true;
@@ 363-368 (lines=6) @@
360
			$this->isTierRichCss = false;
361
			$this->isTierGenericMobile = false;
362
		}
363
		elseif ( $this->is_firefox_os() ) {
364
			$this->matched_agent = 'firefoxOS';
365
			$this->isTierIphone = true;
366
			$this->isTierRichCss = false;
367
			$this->isTierGenericMobile = false;
368
		}
369
		elseif ( $this->is_firefox_mobile() ) {
370
			$this->matched_agent = 'fennec';
371
			$this->isTierIphone = true;
@@ 369-374 (lines=6) @@
366
			$this->isTierRichCss = false;
367
			$this->isTierGenericMobile = false;
368
		}
369
		elseif ( $this->is_firefox_mobile() ) {
370
			$this->matched_agent = 'fennec';
371
			$this->isTierIphone = true;
372
			$this->isTierRichCss = false;
373
			$this->isTierGenericMobile = false;
374
		}
375
		elseif ( $this->is_opera_mobile() ) {
376
			$this->matched_agent = 'opera-mobi';
377
			$this->isTierIphone = true;
@@ 375-380 (lines=6) @@
372
			$this->isTierRichCss = false;
373
			$this->isTierGenericMobile = false;
374
		}
375
		elseif ( $this->is_opera_mobile() ) {
376
			$this->matched_agent = 'opera-mobi';
377
			$this->isTierIphone = true;
378
			$this->isTierRichCss = false;
379
			$this->isTierGenericMobile = false;
380
		}
381
		elseif ( $this->is_MaemoTablet() ) {
382
			$this->matched_agent = 'maemo';
383
			$this->isTierIphone = true;
@@ 381-386 (lines=6) @@
378
			$this->isTierRichCss = false;
379
			$this->isTierGenericMobile = false;
380
		}
381
		elseif ( $this->is_MaemoTablet() ) {
382
			$this->matched_agent = 'maemo';
383
			$this->isTierIphone = true;
384
			$this->isTierRichCss = false;
385
			$this->isTierGenericMobile = false;
386
		}
387
		elseif ( $this->is_MeeGo() ) {
388
			$this->matched_agent = 'meego';
389
			$this->isTierIphone = true;
@@ 387-392 (lines=6) @@
384
			$this->isTierRichCss = false;
385
			$this->isTierGenericMobile = false;
386
		}
387
		elseif ( $this->is_MeeGo() ) {
388
			$this->matched_agent = 'meego';
389
			$this->isTierIphone = true;
390
			$this->isTierRichCss = false;
391
			$this->isTierGenericMobile = false;
392
		}
393
		elseif ( $this->is_kindle_touch() ) {
394
			$this->matched_agent = 'kindle-touch';
395
			$this->isTierIphone = true;
@@ 393-398 (lines=6) @@
390
			$this->isTierRichCss = false;
391
			$this->isTierGenericMobile = false;
392
		}
393
		elseif ( $this->is_kindle_touch() ) {
394
			$this->matched_agent = 'kindle-touch';
395
			$this->isTierIphone = true;
396
			$this->isTierRichCss = false;
397
			$this->isTierGenericMobile = false;
398
		}
399
		elseif ( $this->is_Nintendo_3DS() ) {
400
			$this->matched_agent = 'nintendo-3ds';
401
			$this->isTierIphone = true;
@@ 399-404 (lines=6) @@
396
			$this->isTierRichCss = false;
397
			$this->isTierGenericMobile = false;
398
		}
399
		elseif ( $this->is_Nintendo_3DS() ) {
400
			$this->matched_agent = 'nintendo-3ds';
401
			$this->isTierIphone = true;
402
			$this->isTierRichCss = false;
403
			$this->isTierGenericMobile = false;
404
		}
405
		else {
406
			$this->isTierIphone = false;
407
		}
@@ 431-436 (lines=6) @@
428
			$this->isTierRichCss = true;
429
			$this->isTierGenericMobile = false;
430
		}
431
		elseif ( $this->is_opera_mini() ) {
432
			$this->matched_agent = 'opera-mini';
433
			$this->isTierIphone = false;
434
			$this->isTierRichCss = true;
435
			$this->isTierGenericMobile = false;
436
		}
437
		elseif ( $this->is_blackbeberry() ) {
438
			$detectedDevice = $this->detect_blackberry_browser_version();
439
			if ( $detectedDevice === 'blackberry-5' || $detectedDevice == 'blackberry-4.7' || $detectedDevice === 'blackberry-4.6' ) {