Code Duplication    Length = 12-12 lines in 2 locations

class.jetpack.php 2 locations

@@ 5251-5262 (lines=12) @@
5248
	 * @param Array $properties
5249
	 * @return Array amended properties.
5250
	 */
5251
	public static function filter_register_request_body( $properties ) {
5252
		$tracking        = new Tracking();
5253
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5254
5255
		return array_merge(
5256
			$properties,
5257
			array(
5258
				'_ui' => $tracks_identity['_ui'],
5259
				'_ut' => $tracks_identity['_ut'],
5260
			)
5261
		);
5262
	}
5263
5264
	/**
5265
	 * Filters the token request body to include tracking properties.
@@ 5270-5281 (lines=12) @@
5267
	 * @param Array $properties
5268
	 * @return Array amended properties.
5269
	 */
5270
	public static function filter_token_request_body( $properties ) {
5271
		$tracking        = new Tracking();
5272
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5273
5274
		return array_merge(
5275
			$properties,
5276
			array(
5277
				'_ui' => $tracks_identity['_ui'],
5278
				'_ut' => $tracks_identity['_ut'],
5279
			)
5280
		);
5281
	}
5282
5283
	/**
5284
	 * If the db version is showing something other that what we've got now, bump it to current.