Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

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