Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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