Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 712-720 (lines=9) @@
709
710
			wp_send_json_success();
711
		}
712
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
713
			$module_slug = $_REQUEST['jitmModule'];
714
715
			// User went to WordPress.com, track this
716
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
717
			$this->do_stats( 'server_side' );
718
719
			wp_send_json_success();
720
		}
721
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
722
			$track = $_REQUEST['jitmModule'];
723
@@ 721-729 (lines=9) @@
718
719
			wp_send_json_success();
720
		}
721
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
722
			$track = $_REQUEST['jitmModule'];
723
724
			// User is viewing JITM, track it.
725
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
726
			$this->do_stats( 'server_side' );
727
728
			wp_send_json_success();
729
		}
730
	}
731
732
	/**