Completed
Pull Request — master (#107)
by Stephanie
03:20
created

FrmFormTemplateApi   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 4
lcom 1
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A set_cache_key() 0 3 2
A api_url() 0 3 1
A skip_categories() 0 3 1
1
<?php
2
3
class FrmFormTemplateApi extends FrmFormApi {
4
5
	/**
6
	 * @since 3.06
7
	 */
8
	protected function set_cache_key() {
9
		$this->cache_key = 'frm_form_templates_l' . ( empty( $this->license ) ? '' : md5( $this->license ) );
10
	}
11
12
	/**
13
	 * @since 3.06
14
	 */
15
	protected function api_url() {
16
		return 'https://formidableforms.com/wp-json/form-templates/v1/list';
17
	}
18
19
	/**
20
	 * @since 3.06
21
	 */
22
	protected function skip_categories() {
23
		return array();
24
	}
25
}
26