Code Duplication    Length = 10-10 lines in 2 locations

Ajax/bootstrap/html/HtmlBreadcrumbs.php 1 location

@@ 112-121 (lines=10) @@
109
	 * @param string $separator
110
	 * @return string
111
	 */
112
	public function getHref($index=null,$separator="/"){
113
		if(!isset($index)){
114
			$index=sizeof($this->content);
115
		}
116
		if($this->absolutePaths===true){
117
			return $this->_hrefFunction($this->content[$index]);
118
		}else{
119
			return $this->root.implode($separator, array_slice(array_map(function($e){return $this->_hrefFunction($e);}, $this->content),$this->startIndex,$index+1));
120
		}
121
	}
122
123
	/*
124
	 * (non-PHPdoc)

Ajax/semantic/html/collections/HtmlBreadcrumb.php 1 location

@@ 116-125 (lines=10) @@
113
	 * @param string $separator
114
	 * @return string
115
	 */
116
	public function getHref($index=null, $separator="/") {
117
		if (!isset($index)) {
118
			$index=sizeof($this->content);
119
		}
120
		if ($this->absolutePaths === true) {
121
			return $this->_hrefFunction($this->content[$index]);
122
		} else {
123
			return $this->root . implode($separator, array_slice(array_map(function ($e) {
124
				return $this->_hrefFunction($e);
125
			}, $this->content), $this->startIndex, $index + 1));
126
		}
127
	}
128