Completed
Push — develop ( ccf59a...c5ee8a )
by Aristeides
09:51
created

Kirki_Modules_Webfonts::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Handles webfonts.
4
 *
5
 * @package     Kirki
6
 * @category    Modules
7
 * @author      Aristeides Stathopoulos
8
 * @copyright   Copyright (c) 2017, Aristeides Stathopoulos
9
 * @license     http://opensource.org/licenses/https://opensource.org/licenses/MIT
10
 * @since       3.0.0
11
 */
12
13
// Exit if accessed directly.
14
if ( ! defined( 'ABSPATH' ) ) {
15
	exit;
16
}
17
18
/**
19
 * Adds script for tooltips.
20
 */
21
class Kirki_Modules_Webfonts {
22
23
	/**
24
	 * The class constructor
25
	 *
26
	 * @access public
27
	 * @since 3.0.0
28
	 */
29
	public function __construct() {
30
		include_once wp_normalize_path( dirname( __FILE__ ) . '/class-kirki-fonts.php' );
31
		include_once wp_normalize_path( dirname( __FILE__ ) . '/class-kirki-fonts-google.php' );
32
	}
33
34
	/**
35
	 * Parses fields and if any tooltips are found, they are added to the
36
	 * object's $tooltips_content property.
37
	 *
38
	 * @access private
39
	 * @since 3.0.0
40
	 */
41
	private function parse_fields() {
0 ignored issues
show
Unused Code introduced by
This method is not used, and could be removed.
Loading history...
42
43
		$fields = Kirki::$fields;
44
		foreach ( $fields as $field ) {
0 ignored issues
show
Unused Code introduced by
This foreach statement is empty and can be removed.

This check looks for foreach loops that have no statements or where all statements have been commented out. This may be the result of changes for debugging or the code may simply be obsolete.

Consider removing the loop.

Loading history...
45
		}
46
	}
47
}
48