Code Duplication    Length = 12-12 lines in 2 locations

projects/plugins/jetpack/class.jetpack.php 2 locations

@@ 5496-5507 (lines=12) @@
5493
	 * @param array $properties
5494
	 * @return array amended properties.
5495
	 */
5496
	public static function filter_register_request_body( $properties ) {
5497
		$tracking        = new Tracking();
5498
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5499
5500
		return array_merge(
5501
			$properties,
5502
			array(
5503
				'_ui' => $tracks_identity['_ui'],
5504
				'_ut' => $tracks_identity['_ut'],
5505
			)
5506
		);
5507
	}
5508
5509
	/**
5510
	 * Filters the token request body to include tracking properties.
@@ 5515-5526 (lines=12) @@
5512
	 * @param array $properties
5513
	 * @return array amended properties.
5514
	 */
5515
	public static function filter_token_request_body( $properties ) {
5516
		$tracking        = new Tracking();
5517
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5518
5519
		return array_merge(
5520
			$properties,
5521
			array(
5522
				'_ui' => $tracks_identity['_ui'],
5523
				'_ut' => $tracks_identity['_ut'],
5524
			)
5525
		);
5526
	}
5527
5528
	/**
5529
	 * If the db version is showing something other that what we've got now, bump it to current.