Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5499-5510 (lines=12) @@
5496
	 * @param array $properties
5497
	 * @return array amended properties.
5498
	 */
5499
	public static function filter_register_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
	 * Filters the token request body to include tracking properties.
@@ 5518-5529 (lines=12) @@
5515
	 * @param array $properties
5516
	 * @return array amended properties.
5517
	 */
5518
	public static function filter_token_request_body( $properties ) {
5519
		$tracking        = new Tracking();
5520
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5521
5522
		return array_merge(
5523
			$properties,
5524
			array(
5525
				'_ui' => $tracks_identity['_ui'],
5526
				'_ut' => $tracks_identity['_ut'],
5527
			)
5528
		);
5529
	}
5530
5531
	/**
5532
	 * If the db version is showing something other that what we've got now, bump it to current.