Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5424-5435 (lines=12) @@
5421
	 * @param array $properties
5422
	 * @return array amended properties.
5423
	 */
5424
	public static function filter_register_request_body( $properties ) {
5425
		$tracking        = new Tracking();
5426
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5427
5428
		return array_merge(
5429
			$properties,
5430
			array(
5431
				'_ui' => $tracks_identity['_ui'],
5432
				'_ut' => $tracks_identity['_ut'],
5433
			)
5434
		);
5435
	}
5436
5437
	/**
5438
	 * Filters the token request body to include tracking properties.
@@ 5443-5454 (lines=12) @@
5440
	 * @param array $properties
5441
	 * @return array amended properties.
5442
	 */
5443
	public static function filter_token_request_body( $properties ) {
5444
		$tracking        = new Tracking();
5445
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5446
5447
		return array_merge(
5448
			$properties,
5449
			array(
5450
				'_ui' => $tracks_identity['_ui'],
5451
				'_ut' => $tracks_identity['_ut'],
5452
			)
5453
		);
5454
	}
5455
5456
	/**
5457
	 * If the db version is showing something other that what we've got now, bump it to current.