Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5481-5492 (lines=12) @@
5478
	 * @param array $properties
5479
	 * @return array amended properties.
5480
	 */
5481
	public static function filter_register_request_body( $properties ) {
5482
		$tracking        = new Tracking();
5483
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5484
5485
		return array_merge(
5486
			$properties,
5487
			array(
5488
				'_ui' => $tracks_identity['_ui'],
5489
				'_ut' => $tracks_identity['_ut'],
5490
			)
5491
		);
5492
	}
5493
5494
	/**
5495
	 * Filters the token request body to include tracking properties.
@@ 5500-5511 (lines=12) @@
5497
	 * @param array $properties
5498
	 * @return array amended properties.
5499
	 */
5500
	public static function filter_token_request_body( $properties ) {
5501
		$tracking        = new Tracking();
5502
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5503
5504
		return array_merge(
5505
			$properties,
5506
			array(
5507
				'_ui' => $tracks_identity['_ui'],
5508
				'_ut' => $tracks_identity['_ut'],
5509
			)
5510
		);
5511
	}
5512
5513
	/**
5514
	 * If the db version is showing something other that what we've got now, bump it to current.