src/Webtrees/Individual.php
public function getSignificantPlace(){
	    if($bplace = $this->gedcomrecord->getBirthPlace()){
	        return $bplace;
	    }
	
	    foreach ($this->gedcomrecord->getAllEventPlaces('RESI') as $rplace) {
	        if ($rplace) {
	            return $rplace;
	        }
	    }
	
	    if($dplace = $this->gedcomrecord->getDeathPlace()){
	        return $dplace;
	    }
	
	    foreach($this->gedcomrecord->getSpouseFamilies() as $fams) {
	        foreach ($fams->getAllEventPlaces('RESI') as $rplace) {
	            if ($rplace) {
	                return $rplace;
	            }
	        }
	    }
	
	    return null;
	}
public function getSignificantPlace(){
	    if($bplace = $this->gedcomrecord->getBirthPlace()){
	        return $bplace;
	    }
	
	    foreach ($this->gedcomrecord->getAllEventPlaces('RESI') as $rplace) {
	        if ($rplace) {
	            return $rplace;
	        }
	    }
	
	    if($dplace = $this->gedcomrecord->getDeathPlace()){
	        return $dplace;
	    }
	
	    foreach($this->gedcomrecord->getSpouseFamilies() as $fams) {
	        foreach ($fams->getAllEventPlaces('RESI') as $rplace) {
	            if ($rplace) {
	                return $rplace;
	            }
	        }
	    }
	
	    return null;
	}
public function getSignificantPlace ( ) { if ( $ bplace = $ this -> gedcomrecord -> getBirthPlace ( ) ) { return $ bplace ; } foreach ( $ this -> gedcomrecord -> getAllEventPlaces ( 'RESI' ) as $ rplace ) { if ( $ rplace ) { return $ rplace ; } } if ( $ dplace = $ this -> gedcomrecord -> getDeathPlace ( ) ) { return $ dplace ; } foreach ( $ this -> gedcomrecord -> getSpouseFamilies ( ) as $ fams ) { foreach ( $ fams -> getAllEventPlaces ( 'RESI' ) as $ rplace ) { if ( $ rplace ) { return $ rplace ; } } } return null ; }
Returns a significant place for the individual

@param boolean $perc Should the coefficient of reliability be returned
@return string|array Estimated birth place if found, null otherwise
Returns a significant place for the individual