Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5468-5479 (lines=12) @@
5465
	 * @param array $properties
5466
	 * @return array amended properties.
5467
	 */
5468
	public static function filter_register_request_body( $properties ) {
5469
		$tracking        = new Tracking();
5470
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5471
5472
		return array_merge(
5473
			$properties,
5474
			array(
5475
				'_ui' => $tracks_identity['_ui'],
5476
				'_ut' => $tracks_identity['_ut'],
5477
			)
5478
		);
5479
	}
5480
5481
	/**
5482
	 * Filters the token request body to include tracking properties.
@@ 5487-5498 (lines=12) @@
5484
	 * @param array $properties
5485
	 * @return array amended properties.
5486
	 */
5487
	public static function filter_token_request_body( $properties ) {
5488
		$tracking        = new Tracking();
5489
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5490
5491
		return array_merge(
5492
			$properties,
5493
			array(
5494
				'_ui' => $tracks_identity['_ui'],
5495
				'_ut' => $tracks_identity['_ut'],
5496
			)
5497
		);
5498
	}
5499
5500
	/**
5501
	 * If the db version is showing something other that what we've got now, bump it to current.