Completed
Push — add/sync-rest-2 ( 1be3a0...df1b9f )
by
unknown
18:45 queued 09:48
created

WPORG_Platform   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 1
c 2
b 0
f 2
lcom 0
cbo 1
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A get_site() 0 4 1
1
<?php
2
3
class WPORG_Platform {
4
	static function get_site( $blog_id ) {
5
		require_once dirname( __FILE__ ) . '/class.json-api-site-jetpack.php';
6
		return new Jetpack_Site( $blog_id );
7
	}
8
}
9
10
function wpcom_get_sal_site( $blog_id ) {
11
	return WPORG_Platform::get_site( $blog_id );
12
}
13