Completed
Push — update/api-get-site-endpoint ( 87e1bc )
by
unknown
09:51
created

WPORG_Platform::get_site()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 2
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
class WPORG_Platform extends SAL_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
}