Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5449-5460 (lines=12) @@
5446
	 * @param array $properties
5447
	 * @return array amended properties.
5448
	 */
5449
	public static function filter_register_request_body( $properties ) {
5450
		$tracking        = new Tracking();
5451
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5452
5453
		return array_merge(
5454
			$properties,
5455
			array(
5456
				'_ui' => $tracks_identity['_ui'],
5457
				'_ut' => $tracks_identity['_ut'],
5458
			)
5459
		);
5460
	}
5461
5462
	/**
5463
	 * Filters the token request body to include tracking properties.
@@ 5468-5479 (lines=12) @@
5465
	 * @param array $properties
5466
	 * @return array amended properties.
5467
	 */
5468
	public static function filter_token_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
	 * If the db version is showing something other that what we've got now, bump it to current.