Code Duplication    Length = 9-9 lines in 2 locations

class.jetpack.php 2 locations

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