Code Duplication    Length = 3-3 lines in 2 locations

code/model/SiteTree.php 2 locations

@@ 288-290 (lines=3) @@
285
		if(!$sitetree) {
286
			$parentID = self::config()->nested_urls ? 0 : null;
287
288
			if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $URLSegment, $parentID)) {
289
				foreach($alternatives as $alternative) if($alternative) $sitetree = $alternative;
290
			}
291
292
			if(!$sitetree) return false;
293
		}
@@ 310-312 (lines=3) @@
307
			if(!$next) {
308
				$parentID = (int) $sitetree->ID;
309
310
				if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $segment, $parentID)) {
311
					foreach($alternatives as $alternative) if($alternative) $next = $alternative;
312
				}
313
314
				if(!$next) return false;
315
			}