Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 995-1003 (lines=9) @@
992
993
			wp_send_json_success();
994
		}
995
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
996
			$module_slug = $_REQUEST['jitmModule'];
997
998
			// User went to WordPress.com, track this
999
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
1000
			$this->do_stats( 'server_side' );
1001
1002
			wp_send_json_success();
1003
		}
1004
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
1005
			$track = $_REQUEST['jitmModule'];
1006
@@ 1004-1012 (lines=9) @@
1001
1002
			wp_send_json_success();
1003
		}
1004
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
1005
			$track = $_REQUEST['jitmModule'];
1006
1007
			// User is viewing JITM, track it.
1008
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
1009
			$this->do_stats( 'server_side' );
1010
1011
			wp_send_json_success();
1012
		}
1013
	}
1014
1015
	/**