Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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