Code Duplication    Length = 5-6 lines in 2 locations

projects/plugins/jetpack/sal/class.json-api-platform.php 1 location

@@ 21-25 (lines=5) @@
18
	abstract public function get_site( $blog_id );
19
}
20
21
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
22
	require_once dirname( __FILE__ ) . '/class.json-api-platform-wpcom.php';
23
} else {
24
	require_once dirname( __FILE__ ) . '/class.json-api-platform-jetpack.php';
25
}
26

projects/plugins/jetpack/tests/php/sync/test_interface.jetpack-sync-replicastore.php 1 location

@@ 5-10 (lines=6) @@
2
3
use Automattic\Jetpack\Sync\Replicastore;
4
5
if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
6
	require_once ABSPATH . 'wp-content/mu-plugins/jetpack/sync/class.jetpack-sync-test-object-factory.php';
7
} else {
8
	// is running in jetpack
9
	require_once dirname( __FILE__ ) . '/server/class.jetpack-sync-test-object-factory.php';
10
}
11
12
/*
13
 * Tests all known implementations of the replicastore