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...
16
17
/**
18
* @var WPMap
19
*/
20
protected $_map;
21
22
/**
23
* @return bool
24
*/
25
2
function has_map() {
26
27
2
return $this->_has('_map' );
28
29
}
30
31
/**
32
* @param string $method_name
33
* @param array $args
34
*
35
* @return mixed
36
*/
37
2
function __call( $method_name, $args = array() ) {
38
2
$value = null;
39
40
do {
41
42
2
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.