Code Duplication    Length = 12-12 lines in 2 locations

src/wp-includes/class-snoopy.php 2 locations

@@ 922-933 (lines=12) @@
919
		}
920
921
		// have we hit our frame depth and is there frame src to fetch?
922
		if(($this->_framedepth < $this->maxframes) && preg_match_all("'<frame\s+.*src[\s]*=[\'\"]?([^\'\"\>]+)'i",$results,$match))
923
		{
924
			$this->results[] = $results;
925
			for($x=0; $x<count($match[1]); $x++)
926
				$this->_frameurls[] = $this->_expandlinks($match[1][$x],$URI_PARTS["scheme"]."://".$this->host);
927
		}
928
		// have we already fetched framed content?
929
		elseif(is_array($this->results))
930
			$this->results[] = $results;
931
		// no framed content
932
		else
933
			$this->results = $results;
934
935
		return true;
936
	}
@@ 1071-1082 (lines=12) @@
1068
		}
1069
1070
		// have we hit our frame depth and is there frame src to fetch?
1071
		if(($this->_framedepth < $this->maxframes) && preg_match_all("'<frame\s+.*src[\s]*=[\'\"]?([^\'\"\>]+)'i",$results,$match))
1072
		{
1073
			$this->results[] = $results;
1074
			for($x=0; $x<count($match[1]); $x++)
1075
				$this->_frameurls[] = $this->_expandlinks($match[1][$x],$URI_PARTS["scheme"]."://".$this->host);
1076
		}
1077
		// have we already fetched framed content?
1078
		elseif(is_array($this->results))
1079
			$this->results[] = $results;
1080
		// no framed content
1081
		else
1082
			$this->results = $results;
1083
1084
		unlink("$headerfile");
1085