Code Duplication    Length = 15-15 lines in 2 locations

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

@@ 524-538 (lines=15) @@
521
		/** Default State *********************************************************/
522
523
		// Checked (enabled)
524
		switch( $new_state ) {
525
			case 'off' :
526
				if ( true == $db_state && ! $this->in_jetpack ) {
527
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_likes=disabled_likes' );
528
				}
529
				update_option( 'disabled_likes', 1 );
530
				break;
531
			case 'on'  :
532
			default:
533
				if ( false == $db_state && ! $this->in_jetpack ) {
534
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_likes=reenabled_likes' );
535
				}
536
				delete_option( 'disabled_likes' );
537
				break;
538
		}
539
540
		switch( $reblogs_new_state ) {
541
			case 'off' :
@@ 540-554 (lines=15) @@
537
				break;
538
		}
539
540
		switch( $reblogs_new_state ) {
541
			case 'off' :
542
				if ( true == $reblogs_db_state && ! $this->in_jetpack ) {
543
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_reblogs=disabled_reblogs' );
544
				}
545
				update_option( 'disabled_reblogs', 1 );
546
				break;
547
			case 'on'  :
548
			default:
549
				if ( false == $reblogs_db_state && ! $this->in_jetpack ) {
550
					$g_gif = file_get_contents( 'https://pixel.wp.com/g.gif?v=wpcom-no-pv&x_reblogs=reenabled_reblogs' );
551
				}
552
				delete_option( 'disabled_reblogs' );
553
				break;
554
		}
555
	}
556
557
	/**