Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 676-684 (lines=9) @@
673
674
			wp_send_json_success();
675
		}
676
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
677
			$module_slug = $_REQUEST['jitmModule'];
678
679
			// User went to WordPress.com, track this
680
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
681
			$this->do_stats( 'server_side' );
682
683
			wp_send_json_success();
684
		}
685
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
686
			$track = $_REQUEST['jitmModule'];
687
@@ 685-693 (lines=9) @@
682
683
			wp_send_json_success();
684
		}
685
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
686
			$track = $_REQUEST['jitmModule'];
687
688
			// User is viewing JITM, track it.
689
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
690
			$this->do_stats( 'server_side' );
691
692
			wp_send_json_success();
693
		}
694
	}
695
696
	/**