Code Duplication    Length = 12-12 lines in 2 locations

code/model/DNBranchList.php 1 location

@@ 106-117 (lines=12) @@
103
	 *
104
	 * @return ArrayIterator
105
	 */
106
	public function getIterator() {
107
		if($this->loaded === false) {
108
			$this->items = $this->getReferences();
109
			$this->loaded = true;
110
		}
111
		foreach($this->items as $i => $item) {
112
			if(is_array($item)) {
113
				$this->items[$i] = new ArrayData($item);
114
			}
115
		}
116
		return new ArrayIterator($this->items);
117
	}
118
}
119

code/model/DNReferenceList.php 1 location

@@ 195-206 (lines=12) @@
192
	 *
193
	 * @return ArrayIterator
194
	 */
195
	public function getIterator() {
196
		if($this->loaded === false) {
197
			$this->items = $this->getReferences();
198
			$this->loaded = true;
199
		}
200
		foreach($this->items as $item) {
201
			if(is_array($item)) {
202
				$this->items[] = new ArrayData($item);
203
			}
204
		}
205
		return new ArrayIterator($this->items);
206
	}
207
}
208