Code Duplication    Length = 5-7 lines in 2 locations

Ajax/semantic/widgets/base/InstanceViewer.php 2 locations

@@ 66-70 (lines=5) @@
63
		if($property instanceof \ReflectionProperty){
64
			$property->setAccessible(true);
65
			$value=$property->getValue($this->instance);
66
			if(isset($this->values[$index])){
67
				$value= $this->values[$index]($value,$this->instance,$index);
68
			}else{
69
				$value=$this->_getDefaultValue($property->getName(),$value, $index);
70
			}
71
		}else{
72
			if(\is_callable($property))
73
				$value=$property($this->instance);
@@ 77-83 (lines=7) @@
74
			elseif(\is_array($property)){
75
				$values=\array_map(function($v) use ($index){return $this->_getValue($v, $index);}, $property);
76
				$value=\implode("", $values);
77
			}else{
78
				if(isset($this->values[$index])){
79
					$value= $this->values[$index]($property,$this->instance,$index);
80
				}else{
81
					$value=$property;
82
				}
83
			}
84
		}
85
		if(isset($this->afterCompile[$index])){
86
			if(\is_callable($this->afterCompile[$index])){