Code Duplication    Length = 12-12 lines in 2 locations

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

@@ 5445-5456 (lines=12) @@
5442
	 * @param array $properties
5443
	 * @return array amended properties.
5444
	 */
5445
	public static function filter_register_request_body( $properties ) {
5446
		$tracking        = new Tracking();
5447
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5448
5449
		return array_merge(
5450
			$properties,
5451
			array(
5452
				'_ui' => $tracks_identity['_ui'],
5453
				'_ut' => $tracks_identity['_ut'],
5454
			)
5455
		);
5456
	}
5457
5458
	/**
5459
	 * Filters the token request body to include tracking properties.
@@ 5464-5475 (lines=12) @@
5461
	 * @param array $properties
5462
	 * @return array amended properties.
5463
	 */
5464
	public static function filter_token_request_body( $properties ) {
5465
		$tracking        = new Tracking();
5466
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5467
5468
		return array_merge(
5469
			$properties,
5470
			array(
5471
				'_ui' => $tracks_identity['_ui'],
5472
				'_ut' => $tracks_identity['_ut'],
5473
			)
5474
		);
5475
	}
5476
5477
	/**
5478
	 * If the db version is showing something other that what we've got now, bump it to current.