Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 693-701 (lines=9) @@
690
691
			wp_send_json_success();
692
		}
693
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
694
			$module_slug = $_REQUEST['jitmModule'];
695
696
			// User went to WordPress.com, track this
697
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
698
			$this->do_stats( 'server_side' );
699
700
			wp_send_json_success();
701
		}
702
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
703
			$track = $_REQUEST['jitmModule'];
704
@@ 702-710 (lines=9) @@
699
700
			wp_send_json_success();
701
		}
702
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
703
			$track = $_REQUEST['jitmModule'];
704
705
			// User is viewing JITM, track it.
706
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
707
			$this->do_stats( 'server_side' );
708
709
			wp_send_json_success();
710
		}
711
	}
712
713
	/**