Code Duplication    Length = 15-15 lines in 2 locations

modules/likes/jetpack-likes-settings.php 2 locations

@@ 550-564 (lines=15) @@
547
		/** Default State *********************************************************/
548
549
		// Checked (enabled)
550
		switch( $new_state ) {
551
			case 'off' :
552
				if ( true == $db_state && ! $this->in_jetpack ) {
553
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_likes=disabled_likes' );
554
				}
555
				update_option( 'disabled_likes', 1 );
556
				break;
557
			case 'on'  :
558
			default:
559
				if ( false == $db_state && ! $this->in_jetpack ) {
560
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_likes=reenabled_likes' );
561
				}
562
				delete_option( 'disabled_likes' );
563
				break;
564
		}
565
566
		switch( $reblogs_new_state ) {
567
			case 'off' :
@@ 566-580 (lines=15) @@
563
				break;
564
		}
565
566
		switch( $reblogs_new_state ) {
567
			case 'off' :
568
				if ( true == $reblogs_db_state && ! $this->in_jetpack ) {
569
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_reblogs=disabled_reblogs' );
570
				}
571
				update_option( 'disabled_reblogs', 1 );
572
				break;
573
			case 'on'  :
574
			default:
575
				if ( false == $reblogs_db_state && ! $this->in_jetpack ) {
576
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_reblogs=reenabled_reblogs' );
577
				}
578
				delete_option( 'disabled_reblogs' );
579
				break;
580
		}
581
	}
582
583
	/**