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...
12
13
/**
14
* @var \Clubdeuce\WPGoogleMaps\Marker_Label
15
*/
16
protected $_label;
17
18
/**
19
* @return bool
20
*/
21
1
function has_label() {
22
23
1
return $this->_has( '_label' );
24
25
}
26
27
/**
28
* @param string $method_name
29
* @param array $args
30
*
31
* @return mixed
32
*/
33
1
function __call( $method_name, $args = array() ) {
34
1
$value = null;
35
36
do {
37
38
1
if ( property_exists( $this, "_{$method_name}" ) ) {
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.