Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5569-5580 (lines=12) @@
5566
	 * @param array $properties
5567
	 * @return array amended properties.
5568
	 */
5569
	public static function filter_register_request_body( $properties ) {
5570
		$tracking        = new Tracking();
5571
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5572
5573
		return array_merge(
5574
			$properties,
5575
			array(
5576
				'_ui' => $tracks_identity['_ui'],
5577
				'_ut' => $tracks_identity['_ut'],
5578
			)
5579
		);
5580
	}
5581
5582
	/**
5583
	 * Filters the token request body to include tracking properties.
@@ 5588-5599 (lines=12) @@
5585
	 * @param array $properties
5586
	 * @return array amended properties.
5587
	 */
5588
	public static function filter_token_request_body( $properties ) {
5589
		$tracking        = new Tracking();
5590
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5591
5592
		return array_merge(
5593
			$properties,
5594
			array(
5595
				'_ui' => $tracks_identity['_ui'],
5596
				'_ut' => $tracks_identity['_ut'],
5597
			)
5598
		);
5599
	}
5600
5601
	/**
5602
	 * If the db version is showing something other that what we've got now, bump it to current.