Code Duplication    Length = 12-12 lines in 2 locations

projects/packages/connection/src/class-utils.php 1 location

@@ 87-98 (lines=12) @@
84
	 * @param array $properties Already prepared tracking properties.
85
	 * @return array amended properties.
86
	 */
87
	public static function filter_register_request_body( $properties ) {
88
		$tracking        = new Tracking();
89
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
90
91
		return array_merge(
92
			$properties,
93
			array(
94
				'_ui' => $tracks_identity['_ui'],
95
				'_ut' => $tracks_identity['_ut'],
96
			)
97
		);
98
	}
99
}
100

projects/plugins/jetpack/class.jetpack.php 1 location

@@ 5557-5568 (lines=12) @@
5554
	 * @param array $properties
5555
	 * @return array amended properties.
5556
	 */
5557
	public static function filter_token_request_body( $properties ) {
5558
		$tracking        = new Tracking();
5559
		$tracks_identity = $tracking->tracks_get_identity( get_current_user_id() );
5560
5561
		return array_merge(
5562
			$properties,
5563
			array(
5564
				'_ui' => $tracks_identity['_ui'],
5565
				'_ut' => $tracks_identity['_ut'],
5566
			)
5567
		);
5568
	}
5569
5570
	/**
5571
	 * If the db version is showing something other that what we've got now, bump it to current.