Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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