Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5554-5565 (lines=12) @@
5551
	 * @param array $properties
5552
	 * @return array amended properties.
5553
	 */
5554
	public static function filter_register_request_body( $properties ) {
5555
		$tracking        = new Tracking();
5556
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5557
5558
		return array_merge(
5559
			$properties,
5560
			array(
5561
				'_ui' => $tracks_identity['_ui'],
5562
				'_ut' => $tracks_identity['_ut'],
5563
			)
5564
		);
5565
	}
5566
5567
	/**
5568
	 * Filters the token request body to include tracking properties.
@@ 5573-5584 (lines=12) @@
5570
	 * @param array $properties
5571
	 * @return array amended properties.
5572
	 */
5573
	public static function filter_token_request_body( $properties ) {
5574
		$tracking        = new Tracking();
5575
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5576
5577
		return array_merge(
5578
			$properties,
5579
			array(
5580
				'_ui' => $tracks_identity['_ui'],
5581
				'_ut' => $tracks_identity['_ut'],
5582
			)
5583
		);
5584
	}
5585
5586
	/**
5587
	 * If the db version is showing something other that what we've got now, bump it to current.