Code Duplication    Length = 5-7 lines in 2 locations

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

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