Completed
Push — add/amp-pwa-experiment ( efea12 )
by
unknown
11:53
created

AMP_Customizer_Settings   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_stored_options() 0 3 1
A get_settings() 0 5 1
1
<?php
2
3
class AMP_Customizer_Settings {
4
	private static function get_stored_options() {
5
		return get_option( 'amp_customizer', array() );
6
	}
7
8
	public static function get_settings() {
9
		$settings = self::get_stored_options();
10
11
		return apply_filters( 'amp_customizer_get_settings', $settings );
12
	}
13
}
14