Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5396-5407 (lines=12) @@
5393
	 * @param array $properties
5394
	 * @return array amended properties.
5395
	 */
5396
	public static function filter_register_request_body( $properties ) {
5397
		$tracking        = new Tracking();
5398
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5399
5400
		return array_merge(
5401
			$properties,
5402
			array(
5403
				'_ui' => $tracks_identity['_ui'],
5404
				'_ut' => $tracks_identity['_ut'],
5405
			)
5406
		);
5407
	}
5408
5409
	/**
5410
	 * Filters the token request body to include tracking properties.
@@ 5415-5426 (lines=12) @@
5412
	 * @param array $properties
5413
	 * @return array amended properties.
5414
	 */
5415
	public static function filter_token_request_body( $properties ) {
5416
		$tracking        = new Tracking();
5417
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5418
5419
		return array_merge(
5420
			$properties,
5421
			array(
5422
				'_ui' => $tracks_identity['_ui'],
5423
				'_ut' => $tracks_identity['_ut'],
5424
			)
5425
		);
5426
	}
5427
5428
	/**
5429
	 * If the db version is showing something other that what we've got now, bump it to current.