Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 535-549 (lines=15) @@
532
		/** Default State *********************************************************/
533
534
		// Checked (enabled)
535
		switch( $new_state ) {
536
			case 'off' :
537
				if ( true == $db_state && ! $this->in_jetpack ) {
538
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_likes=disabled_likes' );
539
				}
540
				update_option( 'disabled_likes', 1 );
541
				break;
542
			case 'on'  :
543
			default:
544
				if ( false == $db_state && ! $this->in_jetpack ) {
545
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_likes=reenabled_likes' );
546
				}
547
				delete_option( 'disabled_likes' );
548
				break;
549
		}
550
551
		switch( $reblogs_new_state ) {
552
			case 'off' :
@@ 551-565 (lines=15) @@
548
				break;
549
		}
550
551
		switch( $reblogs_new_state ) {
552
			case 'off' :
553
				if ( true == $reblogs_db_state && ! $this->in_jetpack ) {
554
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_reblogs=disabled_reblogs' );
555
				}
556
				update_option( 'disabled_reblogs', 1 );
557
				break;
558
			case 'on'  :
559
			default:
560
				if ( false == $reblogs_db_state && ! $this->in_jetpack ) {
561
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_reblogs=reenabled_reblogs' );
562
				}
563
				delete_option( 'disabled_reblogs' );
564
				break;
565
		}
566
	}
567
568
	/**