Completed
Push — develop ( 7f13c6...c06441 )
by Zack
06:21
created

GravityView_Field_Checkbox::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 4
Ratio 100 %
Metric Value
dl 4
loc 4
rs 10
cc 1
eloc 3
nc 1
nop 0
1
<?php
2
/**
3
 * @file class-gravityview-field-checkbox.php
4
 * @package GravityView
5
 * @subpackage includes\fields
6
 */
7
8 View Code Duplication
class GravityView_Field_Checkbox extends GravityView_Field {
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
9
10
	var $name = 'checkbox';
11
12
	var $search_operators = array( 'is', 'in', 'not in', 'isnot', 'contains');
13
14
	var $_gf_field_class_name = 'GF_Field_Checkbox';
15
16
	var $group = 'standard';
17
18
	public function __construct() {
19
		$this->label = esc_html__( 'Checkbox', 'gravityview' );
20
		parent::__construct();
21
	}
22
23
}
24
25
new GravityView_Field_Checkbox;
26