Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 976-984 (lines=9) @@
973
974
			wp_send_json_success();
975
		}
976
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
977
			$module_slug = $_REQUEST['jitmModule'];
978
979
			// User went to WordPress.com, track this
980
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
981
			$this->do_stats( 'server_side' );
982
983
			wp_send_json_success();
984
		}
985
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
986
			$track = $_REQUEST['jitmModule'];
987
@@ 985-993 (lines=9) @@
982
983
			wp_send_json_success();
984
		}
985
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
986
			$track = $_REQUEST['jitmModule'];
987
988
			// User is viewing JITM, track it.
989
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
990
			$this->do_stats( 'server_side' );
991
992
			wp_send_json_success();
993
		}
994
	}
995
996
	/**