Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5334-5345 (lines=12) @@
5331
	 * @param Array $properties
5332
	 * @return Array amended properties.
5333
	 */
5334
	public static function filter_register_request_body( $properties ) {
5335
		$tracking        = new Tracking();
5336
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5337
5338
		return array_merge(
5339
			$properties,
5340
			array(
5341
				'_ui' => $tracks_identity['_ui'],
5342
				'_ut' => $tracks_identity['_ut'],
5343
			)
5344
		);
5345
	}
5346
5347
	/**
5348
	 * Filters the token request body to include tracking properties.
@@ 5353-5364 (lines=12) @@
5350
	 * @param Array $properties
5351
	 * @return Array amended properties.
5352
	 */
5353
	public static function filter_token_request_body( $properties ) {
5354
		$tracking        = new Tracking();
5355
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5356
5357
		return array_merge(
5358
			$properties,
5359
			array(
5360
				'_ui' => $tracks_identity['_ui'],
5361
				'_ut' => $tracks_identity['_ut'],
5362
			)
5363
		);
5364
	}
5365
5366
	/**
5367
	 * If the db version is showing something other that what we've got now, bump it to current.