Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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