Code Duplication    Length = 3-3 lines in 2 locations

code/model/SiteTree.php 2 locations

@@ 359-361 (lines=3) @@
356
		if(!$sitetree) {
357
			$parentID = self::config()->nested_urls ? 0 : null;
358
359
			if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $URLSegment, $parentID)) {
360
				foreach($alternatives as $alternative) if($alternative) $sitetree = $alternative;
361
			}
362
363
			if(!$sitetree) return false;
364
		}
@@ 381-383 (lines=3) @@
378
			if(!$next) {
379
				$parentID = (int) $sitetree->ID;
380
381
				if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $segment, $parentID)) {
382
					foreach($alternatives as $alternative) if($alternative) $next = $alternative;
383
				}
384
385
				if(!$next) return false;
386
			}