Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

@@ 653-661 (lines=9) @@
650
651
			wp_send_json_success();
652
		}
653
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'launch' == $_REQUEST['jitmActionToTake'] ) {
654
			$module_slug = $_REQUEST['jitmModule'];
655
656
			// User went to WordPress.com, track this
657
			$this->stat( 'jitm', $module_slug.'-wordpress-tools-' . JETPACK__VERSION );
658
			$this->do_stats( 'server_side' );
659
660
			wp_send_json_success();
661
		}
662
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
663
			$track = $_REQUEST['jitmModule'];
664
@@ 662-670 (lines=9) @@
659
660
			wp_send_json_success();
661
		}
662
		if ( isset( $_REQUEST['jitmActionToTake'] ) && 'viewed' == $_REQUEST['jitmActionToTake'] ) {
663
			$track = $_REQUEST['jitmModule'];
664
665
			// User is viewing JITM, track it.
666
			$this->stat( 'jitm', $track . '-viewed-' . JETPACK__VERSION );
667
			$this->do_stats( 'server_side' );
668
669
			wp_send_json_success();
670
		}
671
	}
672
673
	/**