Code Duplication    Length = 16-16 lines in 2 locations

projects/packages/partner/tests/php/test-partner.php 1 location

@@ 48-63 (lines=16) @@
45
	 *
46
	 * @return array[]
47
	 */
48
	public function code_provider() {
49
		return array(
50
			'subsidiary_code' =>
51
				array(
52
					Partner::SUBSIDIARY_CODE,            // Code type.
53
					'jetpack_partner_subsidiary_id',     // filter/option key.
54
					'subsidiaryId',                      // Query string parameter.
55
				),
56
			'affiliate_code'  =>
57
				array(
58
					Partner::AFFILIATE_CODE,
59
					'jetpack_affiliate_code',
60
					'aff',
61
				),
62
		);
63
	}
64
65
	/**
66
	 * Tests that the partner code is empty by default.

projects/plugins/jetpack/tests/php/general/test_class.jetpack.php 1 location

@@ 1203-1218 (lines=16) @@
1200
	 *
1201
	 * @return array
1202
	 */
1203
	public function partner_code_provider() {
1204
		return array(
1205
			'subsidiary_code' =>
1206
				array(
1207
					Partner::SUBSIDIARY_CODE,            // Code type.
1208
					'jetpack_partner_subsidiary_id',     // filter/option key.
1209
					'subsidiaryId',                      // Query string parameter.
1210
				),
1211
			'affiliate_code'  =>
1212
				array(
1213
					Partner::AFFILIATE_CODE,
1214
					'jetpack_affiliate_code',
1215
					'aff',
1216
				),
1217
		);
1218
	}
1219
1220
	/**
1221
	 * Tests login URL only adds redirect param when redirect param is in original request.