Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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