summaryrefslogtreecommitdiff
path: root/app/Census/CensusColumnFatherForeign.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Census/CensusColumnFatherForeign.php')
-rw-r--r--app/Census/CensusColumnFatherForeign.php36
1 files changed, 19 insertions, 17 deletions
diff --git a/app/Census/CensusColumnFatherForeign.php b/app/Census/CensusColumnFatherForeign.php
index d4fc77c7ca..739b794c67 100644
--- a/app/Census/CensusColumnFatherForeign.php
+++ b/app/Census/CensusColumnFatherForeign.php
@@ -21,22 +21,24 @@ use Fisharebest\Webtrees\Individual;
/**
* Is the individual's father a foreigner.
*/
-class CensusColumnFatherForeign extends AbstractCensusColumn implements CensusColumnInterface {
- /**
- * Generate the likely value of this census column, based on available information.
- *
- * @param Individual $individual
- * @param Individual $head
- *
- * @return string
- */
- public function generate(Individual $individual, Individual $head = null) {
- $father = $this->father($individual);
+class CensusColumnFatherForeign extends AbstractCensusColumn implements CensusColumnInterface
+{
+ /**
+ * Generate the likely value of this census column, based on available information.
+ *
+ * @param Individual $individual
+ * @param Individual $head
+ *
+ * @return string
+ */
+ public function generate(Individual $individual, Individual $head = null)
+ {
+ $father = $this->father($individual);
- if ($father && $this->lastPartOfPlace($father->getBirthPlace()->getGedcomName()) !== $this->place()) {
- return 'Y';
- } else {
- return '';
- }
- }
+ if ($father && $this->lastPartOfPlace($father->getBirthPlace()->getGedcomName()) !== $this->place()) {
+ return 'Y';
+ } else {
+ return '';
+ }
+ }
}