Code Duplication    Length = 3-3 lines in 2 locations

code/model/SiteTree.php 2 locations

@@ 354-356 (lines=3) @@
351
		if(!$sitetree) {
352
			$parentID = self::config()->nested_urls ? 0 : null;
353
			
354
			if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $URLSegment, $parentID)) {
355
				foreach($alternatives as $alternative) if($alternative) $sitetree = $alternative;
356
			}
357
			
358
			if(!$sitetree) return false;
359
		}
@@ 376-378 (lines=3) @@
373
			if(!$next) {
374
				$parentID = (int) $sitetree->ID;
375
				
376
				if($alternatives = singleton('SiteTree')->extend('alternateGetByLink', $segment, $parentID)) {
377
					foreach($alternatives as $alternative) if($alternative) $next = $alternative;
378
				}
379
				
380
				if(!$next) return false;
381
			}