Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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