Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5439-5450 (lines=12) @@
5436
	 * @param array $properties
5437
	 * @return array amended properties.
5438
	 */
5439
	public static function filter_register_request_body( $properties ) {
5440
		$tracking        = new Tracking();
5441
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5442
5443
		return array_merge(
5444
			$properties,
5445
			array(
5446
				'_ui' => $tracks_identity['_ui'],
5447
				'_ut' => $tracks_identity['_ut'],
5448
			)
5449
		);
5450
	}
5451
5452
	/**
5453
	 * Filters the token request body to include tracking properties.
@@ 5458-5469 (lines=12) @@
5455
	 * @param array $properties
5456
	 * @return array amended properties.
5457
	 */
5458
	public static function filter_token_request_body( $properties ) {
5459
		$tracking        = new Tracking();
5460
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5461
5462
		return array_merge(
5463
			$properties,
5464
			array(
5465
				'_ui' => $tracks_identity['_ui'],
5466
				'_ut' => $tracks_identity['_ut'],
5467
			)
5468
		);
5469
	}
5470
5471
	/**
5472
	 * If the db version is showing something other that what we've got now, bump it to current.