Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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