Completed
Push — renovate/glob-7.x ( 697d78...f7fc07 )
by
unknown
18:21 queued 12:01
created

Jetpack_Sync_Modules::get_module()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * A compatibility shim for the sync modules class.
4
 *
5
 * @package jetpack-compat
6
 */
7
8
use Automattic\Jetpack\Sync\Modules;
9
10
/**
11
 * Class Jetpack_Sync_Modules
12
 *
13
 * @deprecated Use Automattic\Jetpack\Sync\Modules
14
 */
15
class Jetpack_Sync_Modules {
16
17
	/**
18
	 * Returns the sync module object.
19
	 *
20
	 * @param String $module_name the module name.
21
	 * @return Automattic\Jetpack\Sync\Modules\Module the module object.
22
	 */
23
	public static function get_module( $module_name ) {
24
		_deprecated_function( __METHOD__, 'jetpack-7.5', 'Automattic\Jetpack\Sync\Modules' );
25
26
		return Modules::get_module( $module_name );
27
	}
28
}
29