Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 916-924 (lines=9) @@
913
914
			wp_send_json_success();
915
		}
916
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
917
			$module_slug = $_REQUEST['jitmModule'];
918
919
			// User went to WordPress.com, track this
920
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
921
			$this->do_stats( 'server_side' );
922
923
			wp_send_json_success();
924
		}
925
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
926
			$track = $_REQUEST['jitmModule'];
927
@@ 925-933 (lines=9) @@
922
923
			wp_send_json_success();
924
		}
925
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
926
			$track = $_REQUEST['jitmModule'];
927
928
			// User is viewing JITM, track it.
929
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
930
			$this->do_stats( 'server_side' );
931
932
			wp_send_json_success();
933
		}
934
	}
935
936
	/**