@@ -19,28 +19,28 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1946 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '17 JAN 1946'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '17 JAN 1946'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurname($this, 'Nom', 'Nom de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénom', 'Prénom usuel'), |
|
40 | - new CensusColumnRelationToHead($this, 'Parenté', 'Parenté avec le chef de ménage ou situation dans le ménage'), |
|
41 | - new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
42 | - new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | - new CensusColumnOccupation($this, 'Profession', ''), |
|
44 | - ); |
|
45 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurname($this, 'Nom', 'Nom de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénom', 'Prénom usuel'), |
|
40 | + new CensusColumnRelationToHead($this, 'Parenté', 'Parenté avec le chef de ménage ou situation dans le ménage'), |
|
41 | + new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
42 | + new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | + new CensusColumnOccupation($this, 'Profession', ''), |
|
44 | + ); |
|
45 | + } |
|
46 | 46 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1946 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1946 extends CensusOfFrance implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '17 JAN 1946'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurname($this, 'Nom', 'Nom de famille'), |
39 | 42 | new CensusColumnGivenNames($this, 'Prénom', 'Prénom usuel'), |
@@ -19,32 +19,32 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1866 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '18 JAN 1866'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '18 JAN 1866'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | - new CensusColumnOccupation($this, 'Titres', 'Titres, qualifications, état ou profession et fonctions'), |
|
41 | - new CensusColumnConditionFrenchGarcon($this, 'Garçons', ''), |
|
42 | - new CensusColumnConditionFrenchHomme($this, 'Hommes', 'Hommes mariés'), |
|
43 | - new CensusColumnConditionFrenchVeuf($this, 'Veufs', ''), |
|
44 | - new CensusColumnConditionFrenchFille($this, 'Filles', ''), |
|
45 | - new CensusColumnConditionFrenchFemme($this, 'Femmes', 'Femmes mariées'), |
|
46 | - new CensusColumnConditionFrenchVeuve($this, 'Veuves', ''), |
|
47 | - new CensusColumnAge($this, 'Âge', ''), |
|
48 | - ); |
|
49 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | + new CensusColumnOccupation($this, 'Titres', 'Titres, qualifications, état ou profession et fonctions'), |
|
41 | + new CensusColumnConditionFrenchGarcon($this, 'Garçons', ''), |
|
42 | + new CensusColumnConditionFrenchHomme($this, 'Hommes', 'Hommes mariés'), |
|
43 | + new CensusColumnConditionFrenchVeuf($this, 'Veufs', ''), |
|
44 | + new CensusColumnConditionFrenchFille($this, 'Filles', ''), |
|
45 | + new CensusColumnConditionFrenchFemme($this, 'Femmes', 'Femmes mariées'), |
|
46 | + new CensusColumnConditionFrenchVeuve($this, 'Veuves', ''), |
|
47 | + new CensusColumnAge($this, 'Âge', ''), |
|
48 | + ); |
|
49 | + } |
|
50 | 50 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1866 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1866 extends CensusOfFrance implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '18 JAN 1866'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
39 | 42 | new CensusColumnGivenNames($this, 'Prénoms', ''), |
@@ -22,43 +22,43 @@ |
||
22 | 22 | * The nationality of the individual. |
23 | 23 | */ |
24 | 24 | class CensusColumnNationality extends AbstractCensusColumn implements CensusColumnInterface { |
25 | - /** @var array Convert a country name to a nationality */ |
|
26 | - private $nationalities = array( |
|
27 | - 'England' => 'British', |
|
28 | - 'Scotland' => 'British', |
|
29 | - 'Wales' => 'British', |
|
30 | - 'Deutschland' => 'Deutsch', |
|
31 | - ); |
|
25 | + /** @var array Convert a country name to a nationality */ |
|
26 | + private $nationalities = array( |
|
27 | + 'England' => 'British', |
|
28 | + 'Scotland' => 'British', |
|
29 | + 'Wales' => 'British', |
|
30 | + 'Deutschland' => 'Deutsch', |
|
31 | + ); |
|
32 | 32 | |
33 | - /** |
|
34 | - * Generate the likely value of this census column, based on available information. |
|
35 | - * |
|
36 | - * @param Individual $individual |
|
37 | - * @param Individual|null $head |
|
38 | - * |
|
39 | - * @return string |
|
40 | - */ |
|
41 | - public function generate(Individual $individual, Individual $head = null) { |
|
42 | - $place = $individual->getBirthPlace(); |
|
33 | + /** |
|
34 | + * Generate the likely value of this census column, based on available information. |
|
35 | + * |
|
36 | + * @param Individual $individual |
|
37 | + * @param Individual|null $head |
|
38 | + * |
|
39 | + * @return string |
|
40 | + */ |
|
41 | + public function generate(Individual $individual, Individual $head = null) { |
|
42 | + $place = $individual->getBirthPlace(); |
|
43 | 43 | |
44 | - // No birthplace? Assume born in the same country. |
|
45 | - if ($place === '') { |
|
46 | - $place = $this->place(); |
|
47 | - } |
|
44 | + // No birthplace? Assume born in the same country. |
|
45 | + if ($place === '') { |
|
46 | + $place = $this->place(); |
|
47 | + } |
|
48 | 48 | |
49 | - // Did we emigrate or naturalise? |
|
50 | - foreach ($individual->getFacts('IMMI|EMIG|NATU', true) as $fact) { |
|
51 | - if (Date::compare($fact->getDate(), $this->date()) <= 0) { |
|
52 | - $place = $fact->getPlace()->getGedcomName(); |
|
53 | - } |
|
54 | - } |
|
49 | + // Did we emigrate or naturalise? |
|
50 | + foreach ($individual->getFacts('IMMI|EMIG|NATU', true) as $fact) { |
|
51 | + if (Date::compare($fact->getDate(), $this->date()) <= 0) { |
|
52 | + $place = $fact->getPlace()->getGedcomName(); |
|
53 | + } |
|
54 | + } |
|
55 | 55 | |
56 | - $place = $this->lastPartOfPlace($place); |
|
56 | + $place = $this->lastPartOfPlace($place); |
|
57 | 57 | |
58 | - if (array_key_exists($place, $this->nationalities)) { |
|
59 | - return $this->nationalities[$place]; |
|
60 | - } else { |
|
61 | - return $place; |
|
62 | - } |
|
63 | - } |
|
58 | + if (array_key_exists($place, $this->nationalities)) { |
|
59 | + return $this->nationalities[$place]; |
|
60 | + } else { |
|
61 | + return $place; |
|
62 | + } |
|
63 | + } |
|
64 | 64 | } |
@@ -21,7 +21,8 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * The nationality of the individual. |
23 | 23 | */ |
24 | -class CensusColumnNationality extends AbstractCensusColumn implements CensusColumnInterface { |
|
24 | +class CensusColumnNationality extends AbstractCensusColumn implements CensusColumnInterface |
|
25 | +{ |
|
25 | 26 | /** @var array Convert a country name to a nationality */ |
26 | 27 | private $nationalities = array( |
27 | 28 | 'England' => 'British', |
@@ -38,7 +39,8 @@ discard block |
||
38 | 39 | * |
39 | 40 | * @return string |
40 | 41 | */ |
41 | - public function generate(Individual $individual, Individual $head = null) { |
|
42 | + public function generate(Individual $individual, Individual $head = null) |
|
43 | + { |
|
42 | 44 | $place = $individual->getBirthPlace(); |
43 | 45 | |
44 | 46 | // No birthplace? Assume born in the same country. |
@@ -19,30 +19,30 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1926 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '21 JAN 1926'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '21 JAN 1926'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | - new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
41 | - new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'), |
|
42 | - new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | - new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'), |
|
44 | - new CensusColumnOccupation($this, 'Profession', ''), |
|
45 | - new CensusColumnNull($this, 'Empl', ''), |
|
46 | - ); |
|
47 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | + new CensusColumnBirthYear($this, 'Année', 'Année de naissance'), |
|
41 | + new CensusColumnBirthPlace($this, 'Lieu', 'Lieu de naissance'), |
|
42 | + new CensusColumnNationality($this, 'Nationalité', ''), |
|
43 | + new CensusColumnRelationToHead($this, 'Situation', 'Situation par rapport au chef de ménage'), |
|
44 | + new CensusColumnOccupation($this, 'Profession', ''), |
|
45 | + new CensusColumnNull($this, 'Empl', ''), |
|
46 | + ); |
|
47 | + } |
|
48 | 48 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1926 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1926 extends CensusOfFrance implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '21 JAN 1926'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
39 | 42 | new CensusColumnGivenNames($this, 'Prénoms', ''), |
@@ -19,32 +19,32 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1861 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '17 JAN 1861'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '17 JAN 1861'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | - new CensusColumnOccupation($this, 'Titres', 'Titres, qualifications, état ou profession et fonctions'), |
|
41 | - new CensusColumnConditionFrenchGarcon($this, 'Garçons', ''), |
|
42 | - new CensusColumnConditionFrenchHomme($this, 'Hommes', 'Hommes mariés'), |
|
43 | - new CensusColumnConditionFrenchVeuf($this, 'Veufs', ''), |
|
44 | - new CensusColumnConditionFrenchFille($this, 'Filles', ''), |
|
45 | - new CensusColumnConditionFrenchFemme($this, 'Femmes', 'Femmes mariées'), |
|
46 | - new CensusColumnConditionFrenchVeuve($this, 'Veuves', ''), |
|
47 | - new CensusColumnAge($this, 'Âge', ''), |
|
48 | - ); |
|
49 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | + new CensusColumnOccupation($this, 'Titres', 'Titres, qualifications, état ou profession et fonctions'), |
|
41 | + new CensusColumnConditionFrenchGarcon($this, 'Garçons', ''), |
|
42 | + new CensusColumnConditionFrenchHomme($this, 'Hommes', 'Hommes mariés'), |
|
43 | + new CensusColumnConditionFrenchVeuf($this, 'Veufs', ''), |
|
44 | + new CensusColumnConditionFrenchFille($this, 'Filles', ''), |
|
45 | + new CensusColumnConditionFrenchFemme($this, 'Femmes', 'Femmes mariées'), |
|
46 | + new CensusColumnConditionFrenchVeuve($this, 'Veuves', ''), |
|
47 | + new CensusColumnAge($this, 'Âge', ''), |
|
48 | + ); |
|
49 | + } |
|
50 | 50 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1861 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1861 extends CensusOfFrance implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '17 JAN 1861'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
39 | 42 | new CensusColumnGivenNames($this, 'Prénoms', ''), |
@@ -19,46 +19,46 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfUnitedStates1890 extends CensusOfUnitedStates implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '02 JUN 1890'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '02 JUN 1890'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnGivenNameInitial($this, 'Name', 'Christian name in full, and initial of middle name'), |
|
39 | - new CensusColumnSurname($this, 'Surname', 'Surname'), |
|
40 | - new CensusColumnNull($this, 'CW', 'Whether a soldier, sailor or marine during the civil war (U.S. or Conf.), or widow of such person'), |
|
41 | - new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of family'), |
|
42 | - new CensusColumnNull($this, 'Race', 'Whether white, black, mulatto, quadroon, octoroon, Chinese, Japanese, or Indian'), |
|
43 | - new CensusColumnSexMF($this, 'Sex', 'Sex'), |
|
44 | - new CensusColumnAge($this, 'Age', 'Age at nearest birthday. If under one year, give age in months'), |
|
45 | - new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'), |
|
46 | - new CensusColumnMonthIfMarriedWithinYear($this, 'Mar', 'Whether married duirng the census year (June 1, 1889, to May 31, 1890)'), |
|
47 | - new CensusColumnNull($this, 'Chil', 'Mother of how many children, and number of these children living'), |
|
48 | - new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'), |
|
49 | - new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), |
|
50 | - new CensusColumnFatherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), |
|
51 | - new CensusColumnNull($this, 'US', 'Number of years in the United States'), |
|
52 | - new CensusColumnNull($this, 'Nat', 'Whether naturalized'), |
|
53 | - new CensusColumnNull($this, 'Papers', 'Whether naturalization papers have been taken out'), |
|
54 | - new CensusColumnOccupation($this, 'Occupation', 'Profession, trade, occupation'), |
|
55 | - new CensusColumnNull($this, 'Unemp', 'Months unemployed during the census year (June 1, 1889, to May 31, 1890)'), |
|
56 | - new CensusColumnNull($this, 'Read', 'Able to read'), |
|
57 | - new CensusColumnNull($this, 'Write', 'Able to write'), |
|
58 | - new CensusColumnNull($this, 'Eng', 'Able to speak English. If not the language or dialect spoken'), |
|
59 | - new CensusColumnNull($this, 'Disease', 'Whether suffering from acute or chronic disease, with name of disease and length of time afflicted'), |
|
60 | - new CensusColumnNull($this, 'Infirm', 'Whether defective in mind, sight, hearing, or speech, or whether crippled, maimed, or deformed, with name of defect'), |
|
61 | - new CensusColumnNull($this, 'Prisoner', 'Whether a prisoner, convict, homeless child, or pauper'), |
|
62 | - ); |
|
63 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnGivenNameInitial($this, 'Name', 'Christian name in full, and initial of middle name'), |
|
39 | + new CensusColumnSurname($this, 'Surname', 'Surname'), |
|
40 | + new CensusColumnNull($this, 'CW', 'Whether a soldier, sailor or marine during the civil war (U.S. or Conf.), or widow of such person'), |
|
41 | + new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of family'), |
|
42 | + new CensusColumnNull($this, 'Race', 'Whether white, black, mulatto, quadroon, octoroon, Chinese, Japanese, or Indian'), |
|
43 | + new CensusColumnSexMF($this, 'Sex', 'Sex'), |
|
44 | + new CensusColumnAge($this, 'Age', 'Age at nearest birthday. If under one year, give age in months'), |
|
45 | + new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'), |
|
46 | + new CensusColumnMonthIfMarriedWithinYear($this, 'Mar', 'Whether married duirng the census year (June 1, 1889, to May 31, 1890)'), |
|
47 | + new CensusColumnNull($this, 'Chil', 'Mother of how many children, and number of these children living'), |
|
48 | + new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'), |
|
49 | + new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'), |
|
50 | + new CensusColumnFatherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'), |
|
51 | + new CensusColumnNull($this, 'US', 'Number of years in the United States'), |
|
52 | + new CensusColumnNull($this, 'Nat', 'Whether naturalized'), |
|
53 | + new CensusColumnNull($this, 'Papers', 'Whether naturalization papers have been taken out'), |
|
54 | + new CensusColumnOccupation($this, 'Occupation', 'Profession, trade, occupation'), |
|
55 | + new CensusColumnNull($this, 'Unemp', 'Months unemployed during the census year (June 1, 1889, to May 31, 1890)'), |
|
56 | + new CensusColumnNull($this, 'Read', 'Able to read'), |
|
57 | + new CensusColumnNull($this, 'Write', 'Able to write'), |
|
58 | + new CensusColumnNull($this, 'Eng', 'Able to speak English. If not the language or dialect spoken'), |
|
59 | + new CensusColumnNull($this, 'Disease', 'Whether suffering from acute or chronic disease, with name of disease and length of time afflicted'), |
|
60 | + new CensusColumnNull($this, 'Infirm', 'Whether defective in mind, sight, hearing, or speech, or whether crippled, maimed, or deformed, with name of defect'), |
|
61 | + new CensusColumnNull($this, 'Prisoner', 'Whether a prisoner, convict, homeless child, or pauper'), |
|
62 | + ); |
|
63 | + } |
|
64 | 64 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfUnitedStates1890 extends CensusOfUnitedStates implements CensusInterface { |
|
21 | +class CensusOfUnitedStates1890 extends CensusOfUnitedStates implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '02 JUN 1890'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnGivenNameInitial($this, 'Name', 'Christian name in full, and initial of middle name'), |
39 | 42 | new CensusColumnSurname($this, 'Surname', 'Surname'), |
@@ -19,28 +19,28 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfFrance1891 extends CensusOfFrance implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '15 JAN 1891'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '15 JAN 1891'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * The columns of the census. |
|
33 | - * |
|
34 | - * @return CensusColumnInterface[] |
|
35 | - */ |
|
36 | - public function columns() { |
|
37 | - return array( |
|
38 | - new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | - new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | - new CensusColumnAge($this, 'Âge', ''), |
|
41 | - new CensusColumnNationality($this, 'Nationalité', ''), |
|
42 | - new CensusColumnOccupation($this, 'Profession', ''), |
|
43 | - new CensusColumnRelationToHead($this, 'Position', 'Position dans le ménage'), |
|
44 | - ); |
|
45 | - } |
|
31 | + /** |
|
32 | + * The columns of the census. |
|
33 | + * |
|
34 | + * @return CensusColumnInterface[] |
|
35 | + */ |
|
36 | + public function columns() { |
|
37 | + return array( |
|
38 | + new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
|
39 | + new CensusColumnGivenNames($this, 'Prénoms', ''), |
|
40 | + new CensusColumnAge($this, 'Âge', ''), |
|
41 | + new CensusColumnNationality($this, 'Nationalité', ''), |
|
42 | + new CensusColumnOccupation($this, 'Profession', ''), |
|
43 | + new CensusColumnRelationToHead($this, 'Position', 'Position dans le ménage'), |
|
44 | + ); |
|
45 | + } |
|
46 | 46 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfFrance1891 extends CensusOfFrance implements CensusInterface { |
|
21 | +class CensusOfFrance1891 extends CensusOfFrance implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '15 JAN 1891'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return CensusColumnInterface[] |
35 | 37 | */ |
36 | - public function columns() { |
|
38 | + public function columns() |
|
39 | + { |
|
37 | 40 | return array( |
38 | 41 | new CensusColumnSurname($this, 'Noms', 'Noms de famille'), |
39 | 42 | new CensusColumnGivenNames($this, 'Prénoms', ''), |
@@ -19,35 +19,35 @@ |
||
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | 21 | class CensusOfDenmark1835 extends CensusOfDenmark implements CensusInterface { |
22 | - /** |
|
23 | - * When did this census occur. |
|
24 | - * |
|
25 | - * @return string |
|
26 | - */ |
|
27 | - public function censusDate() { |
|
28 | - return '18 FEB 1835'; |
|
29 | - } |
|
22 | + /** |
|
23 | + * When did this census occur. |
|
24 | + * |
|
25 | + * @return string |
|
26 | + */ |
|
27 | + public function censusDate() { |
|
28 | + return '18 FEB 1835'; |
|
29 | + } |
|
30 | 30 | |
31 | - /** |
|
32 | - * Where did this census occur, in GEDCOM format. |
|
33 | - * |
|
34 | - * @return string |
|
35 | - */ |
|
36 | - public function censusPlace() { |
|
37 | - return 'Schleswig-Holstein, Deutschland'; |
|
38 | - } |
|
31 | + /** |
|
32 | + * Where did this census occur, in GEDCOM format. |
|
33 | + * |
|
34 | + * @return string |
|
35 | + */ |
|
36 | + public function censusPlace() { |
|
37 | + return 'Schleswig-Holstein, Deutschland'; |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * The columns of the census. |
|
42 | - * |
|
43 | - * @return CensusColumnInterface[] |
|
44 | - */ |
|
45 | - public function columns() { |
|
46 | - return array( |
|
47 | - new CensusColumnFullName($this, 'Navn', ''), |
|
48 | - new CensusColumnAge($this, 'Alder', ''), |
|
49 | - new CensusColumnConditionDanish($this, 'Civilstand', ''), |
|
50 | - new CensusColumnRelationToHead($this, 'Stilling i familien', ''), |
|
51 | - ); |
|
52 | - } |
|
40 | + /** |
|
41 | + * The columns of the census. |
|
42 | + * |
|
43 | + * @return CensusColumnInterface[] |
|
44 | + */ |
|
45 | + public function columns() { |
|
46 | + return array( |
|
47 | + new CensusColumnFullName($this, 'Navn', ''), |
|
48 | + new CensusColumnAge($this, 'Alder', ''), |
|
49 | + new CensusColumnConditionDanish($this, 'Civilstand', ''), |
|
50 | + new CensusColumnRelationToHead($this, 'Stilling i familien', ''), |
|
51 | + ); |
|
52 | + } |
|
53 | 53 | } |
@@ -18,13 +18,15 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Definitions for a census |
20 | 20 | */ |
21 | -class CensusOfDenmark1835 extends CensusOfDenmark implements CensusInterface { |
|
21 | +class CensusOfDenmark1835 extends CensusOfDenmark implements CensusInterface |
|
22 | +{ |
|
22 | 23 | /** |
23 | 24 | * When did this census occur. |
24 | 25 | * |
25 | 26 | * @return string |
26 | 27 | */ |
27 | - public function censusDate() { |
|
28 | + public function censusDate() |
|
29 | + { |
|
28 | 30 | return '18 FEB 1835'; |
29 | 31 | } |
30 | 32 | |
@@ -33,7 +35,8 @@ discard block |
||
33 | 35 | * |
34 | 36 | * @return string |
35 | 37 | */ |
36 | - public function censusPlace() { |
|
38 | + public function censusPlace() |
|
39 | + { |
|
37 | 40 | return 'Schleswig-Holstein, Deutschland'; |
38 | 41 | } |
39 | 42 | |
@@ -42,7 +45,8 @@ discard block |
||
42 | 45 | * |
43 | 46 | * @return CensusColumnInterface[] |
44 | 47 | */ |
45 | - public function columns() { |
|
48 | + public function columns() |
|
49 | + { |
|
46 | 50 | return array( |
47 | 51 | new CensusColumnFullName($this, 'Navn', ''), |
48 | 52 | new CensusColumnAge($this, 'Alder', ''), |
@@ -23,150 +23,150 @@ |
||
23 | 23 | * Definitions for a census column |
24 | 24 | */ |
25 | 25 | class AbstractCensusColumn { |
26 | - /** @var CensusInterface */ |
|
27 | - private $census; |
|
28 | - |
|
29 | - /** @var string */ |
|
30 | - private $abbr; |
|
31 | - |
|
32 | - /** @var string */ |
|
33 | - private $title; |
|
34 | - |
|
35 | - /** |
|
36 | - * Create a column for a census |
|
37 | - * |
|
38 | - * @param CensusInterface $census - The census to which this column forms part. |
|
39 | - * @param string $abbr - The abbrievated on-screen name "BiC" |
|
40 | - * @param string $title - The full column heading "Born in the county" |
|
41 | - */ |
|
42 | - public function __construct(CensusInterface $census, $abbr, $title) { |
|
43 | - $this->census = $census; |
|
44 | - $this->abbr = $abbr; |
|
45 | - $this->title = $title; |
|
46 | - } |
|
47 | - |
|
48 | - /** |
|
49 | - * A short version of the column's name. |
|
50 | - * |
|
51 | - * @return string |
|
52 | - */ |
|
53 | - public function abbreviation() { |
|
54 | - return $this->abbr; |
|
55 | - } |
|
56 | - |
|
57 | - /** |
|
58 | - * Extract the country (last part) of a place name. |
|
59 | - * |
|
60 | - * @param string $place - e.g. "London, England" |
|
61 | - * |
|
62 | - * @return string - e.g. "England" |
|
63 | - */ |
|
64 | - protected function lastPartOfPlace($place) { |
|
65 | - $place = explode(', ', $place); |
|
66 | - |
|
67 | - return end($place); |
|
68 | - } |
|
69 | - |
|
70 | - /** |
|
71 | - * When did this census occur |
|
72 | - * |
|
73 | - * @return Date |
|
74 | - */ |
|
75 | - public function date() { |
|
76 | - return new Date($this->census->censusDate()); |
|
77 | - } |
|
78 | - |
|
79 | - /** |
|
80 | - * Find the father of an individual |
|
81 | - * |
|
82 | - * @param Individual $individual |
|
83 | - * |
|
84 | - * @return Individual|null |
|
85 | - */ |
|
86 | - public function father(Individual $individual) { |
|
87 | - $family = $individual->getPrimaryChildFamily(); |
|
88 | - |
|
89 | - if ($family) { |
|
90 | - return $family->getHusband(); |
|
91 | - } else { |
|
92 | - return null; |
|
93 | - } |
|
94 | - } |
|
95 | - |
|
96 | - /** |
|
97 | - * Find the mother of an individual |
|
98 | - * |
|
99 | - * @param Individual $individual |
|
100 | - * |
|
101 | - * @return Individual|null |
|
102 | - */ |
|
103 | - public function mother(Individual $individual) { |
|
104 | - $family = $individual->getPrimaryChildFamily(); |
|
105 | - |
|
106 | - if ($family) { |
|
107 | - return $family->getWife(); |
|
108 | - } else { |
|
109 | - return null; |
|
110 | - } |
|
111 | - } |
|
112 | - |
|
113 | - /** |
|
114 | - * Remove the country of a place name, where it is the same as the census place |
|
115 | - * |
|
116 | - * @param string $place - e.g. "London, England" |
|
117 | - * |
|
118 | - * @return string - e.g. "London" (for census of England) and "London, England" elsewhere |
|
119 | - */ |
|
120 | - protected function notCountry($place) { |
|
121 | - $parts = explode(', ', $place); |
|
122 | - |
|
123 | - if (end($parts) === $this->place()) { |
|
124 | - return implode(', ', array_slice($parts, 0, -1)); |
|
125 | - } else { |
|
126 | - return $place; |
|
127 | - } |
|
128 | - } |
|
129 | - |
|
130 | - /** |
|
131 | - * Where did this census occur |
|
132 | - * |
|
133 | - * @return string |
|
134 | - */ |
|
135 | - public function place() { |
|
136 | - return $this->census->censusPlace(); |
|
137 | - } |
|
138 | - |
|
139 | - /** |
|
140 | - * Find the current spouse family of an individual |
|
141 | - * |
|
142 | - * @param Individual $individual |
|
143 | - * |
|
144 | - * @return Family|null |
|
145 | - */ |
|
146 | - public function spouseFamily(Individual $individual) { |
|
147 | - // Exclude families that were created after this census date |
|
148 | - $families = array(); |
|
149 | - foreach ($individual->getSpouseFamilies() as $family) { |
|
150 | - if (Date::compare($family->getMarriageDate(), $this->date()) <= 0) { |
|
151 | - $families[] = $family; |
|
152 | - } |
|
153 | - } |
|
154 | - |
|
155 | - if (empty($families)) { |
|
156 | - return null; |
|
157 | - } else { |
|
158 | - usort($families, function (Family $x, Family $y) { return Date::compare($x->getMarriageDate(), $y->getMarriageDate()); }); |
|
159 | - |
|
160 | - return end($families); |
|
161 | - } |
|
162 | - } |
|
163 | - |
|
164 | - /** |
|
165 | - * The full version of the column's name. |
|
166 | - * |
|
167 | - * @return string |
|
168 | - */ |
|
169 | - public function title() { |
|
170 | - return $this->title; |
|
171 | - } |
|
26 | + /** @var CensusInterface */ |
|
27 | + private $census; |
|
28 | + |
|
29 | + /** @var string */ |
|
30 | + private $abbr; |
|
31 | + |
|
32 | + /** @var string */ |
|
33 | + private $title; |
|
34 | + |
|
35 | + /** |
|
36 | + * Create a column for a census |
|
37 | + * |
|
38 | + * @param CensusInterface $census - The census to which this column forms part. |
|
39 | + * @param string $abbr - The abbrievated on-screen name "BiC" |
|
40 | + * @param string $title - The full column heading "Born in the county" |
|
41 | + */ |
|
42 | + public function __construct(CensusInterface $census, $abbr, $title) { |
|
43 | + $this->census = $census; |
|
44 | + $this->abbr = $abbr; |
|
45 | + $this->title = $title; |
|
46 | + } |
|
47 | + |
|
48 | + /** |
|
49 | + * A short version of the column's name. |
|
50 | + * |
|
51 | + * @return string |
|
52 | + */ |
|
53 | + public function abbreviation() { |
|
54 | + return $this->abbr; |
|
55 | + } |
|
56 | + |
|
57 | + /** |
|
58 | + * Extract the country (last part) of a place name. |
|
59 | + * |
|
60 | + * @param string $place - e.g. "London, England" |
|
61 | + * |
|
62 | + * @return string - e.g. "England" |
|
63 | + */ |
|
64 | + protected function lastPartOfPlace($place) { |
|
65 | + $place = explode(', ', $place); |
|
66 | + |
|
67 | + return end($place); |
|
68 | + } |
|
69 | + |
|
70 | + /** |
|
71 | + * When did this census occur |
|
72 | + * |
|
73 | + * @return Date |
|
74 | + */ |
|
75 | + public function date() { |
|
76 | + return new Date($this->census->censusDate()); |
|
77 | + } |
|
78 | + |
|
79 | + /** |
|
80 | + * Find the father of an individual |
|
81 | + * |
|
82 | + * @param Individual $individual |
|
83 | + * |
|
84 | + * @return Individual|null |
|
85 | + */ |
|
86 | + public function father(Individual $individual) { |
|
87 | + $family = $individual->getPrimaryChildFamily(); |
|
88 | + |
|
89 | + if ($family) { |
|
90 | + return $family->getHusband(); |
|
91 | + } else { |
|
92 | + return null; |
|
93 | + } |
|
94 | + } |
|
95 | + |
|
96 | + /** |
|
97 | + * Find the mother of an individual |
|
98 | + * |
|
99 | + * @param Individual $individual |
|
100 | + * |
|
101 | + * @return Individual|null |
|
102 | + */ |
|
103 | + public function mother(Individual $individual) { |
|
104 | + $family = $individual->getPrimaryChildFamily(); |
|
105 | + |
|
106 | + if ($family) { |
|
107 | + return $family->getWife(); |
|
108 | + } else { |
|
109 | + return null; |
|
110 | + } |
|
111 | + } |
|
112 | + |
|
113 | + /** |
|
114 | + * Remove the country of a place name, where it is the same as the census place |
|
115 | + * |
|
116 | + * @param string $place - e.g. "London, England" |
|
117 | + * |
|
118 | + * @return string - e.g. "London" (for census of England) and "London, England" elsewhere |
|
119 | + */ |
|
120 | + protected function notCountry($place) { |
|
121 | + $parts = explode(', ', $place); |
|
122 | + |
|
123 | + if (end($parts) === $this->place()) { |
|
124 | + return implode(', ', array_slice($parts, 0, -1)); |
|
125 | + } else { |
|
126 | + return $place; |
|
127 | + } |
|
128 | + } |
|
129 | + |
|
130 | + /** |
|
131 | + * Where did this census occur |
|
132 | + * |
|
133 | + * @return string |
|
134 | + */ |
|
135 | + public function place() { |
|
136 | + return $this->census->censusPlace(); |
|
137 | + } |
|
138 | + |
|
139 | + /** |
|
140 | + * Find the current spouse family of an individual |
|
141 | + * |
|
142 | + * @param Individual $individual |
|
143 | + * |
|
144 | + * @return Family|null |
|
145 | + */ |
|
146 | + public function spouseFamily(Individual $individual) { |
|
147 | + // Exclude families that were created after this census date |
|
148 | + $families = array(); |
|
149 | + foreach ($individual->getSpouseFamilies() as $family) { |
|
150 | + if (Date::compare($family->getMarriageDate(), $this->date()) <= 0) { |
|
151 | + $families[] = $family; |
|
152 | + } |
|
153 | + } |
|
154 | + |
|
155 | + if (empty($families)) { |
|
156 | + return null; |
|
157 | + } else { |
|
158 | + usort($families, function (Family $x, Family $y) { return Date::compare($x->getMarriageDate(), $y->getMarriageDate()); }); |
|
159 | + |
|
160 | + return end($families); |
|
161 | + } |
|
162 | + } |
|
163 | + |
|
164 | + /** |
|
165 | + * The full version of the column's name. |
|
166 | + * |
|
167 | + * @return string |
|
168 | + */ |
|
169 | + public function title() { |
|
170 | + return $this->title; |
|
171 | + } |
|
172 | 172 | } |
@@ -22,7 +22,8 @@ discard block |
||
22 | 22 | /** |
23 | 23 | * Definitions for a census column |
24 | 24 | */ |
25 | -class AbstractCensusColumn { |
|
25 | +class AbstractCensusColumn |
|
26 | +{ |
|
26 | 27 | /** @var CensusInterface */ |
27 | 28 | private $census; |
28 | 29 | |
@@ -39,7 +40,8 @@ discard block |
||
39 | 40 | * @param string $abbr - The abbrievated on-screen name "BiC" |
40 | 41 | * @param string $title - The full column heading "Born in the county" |
41 | 42 | */ |
42 | - public function __construct(CensusInterface $census, $abbr, $title) { |
|
43 | + public function __construct(CensusInterface $census, $abbr, $title) |
|
44 | + { |
|
43 | 45 | $this->census = $census; |
44 | 46 | $this->abbr = $abbr; |
45 | 47 | $this->title = $title; |
@@ -50,7 +52,8 @@ discard block |
||
50 | 52 | * |
51 | 53 | * @return string |
52 | 54 | */ |
53 | - public function abbreviation() { |
|
55 | + public function abbreviation() |
|
56 | + { |
|
54 | 57 | return $this->abbr; |
55 | 58 | } |
56 | 59 | |
@@ -61,7 +64,8 @@ discard block |
||
61 | 64 | * |
62 | 65 | * @return string - e.g. "England" |
63 | 66 | */ |
64 | - protected function lastPartOfPlace($place) { |
|
67 | + protected function lastPartOfPlace($place) |
|
68 | + { |
|
65 | 69 | $place = explode(', ', $place); |
66 | 70 | |
67 | 71 | return end($place); |
@@ -72,7 +76,8 @@ discard block |
||
72 | 76 | * |
73 | 77 | * @return Date |
74 | 78 | */ |
75 | - public function date() { |
|
79 | + public function date() |
|
80 | + { |
|
76 | 81 | return new Date($this->census->censusDate()); |
77 | 82 | } |
78 | 83 | |
@@ -83,7 +88,8 @@ discard block |
||
83 | 88 | * |
84 | 89 | * @return Individual|null |
85 | 90 | */ |
86 | - public function father(Individual $individual) { |
|
91 | + public function father(Individual $individual) |
|
92 | + { |
|
87 | 93 | $family = $individual->getPrimaryChildFamily(); |
88 | 94 | |
89 | 95 | if ($family) { |
@@ -100,7 +106,8 @@ discard block |
||
100 | 106 | * |
101 | 107 | * @return Individual|null |
102 | 108 | */ |
103 | - public function mother(Individual $individual) { |
|
109 | + public function mother(Individual $individual) |
|
110 | + { |
|
104 | 111 | $family = $individual->getPrimaryChildFamily(); |
105 | 112 | |
106 | 113 | if ($family) { |
@@ -117,7 +124,8 @@ discard block |
||
117 | 124 | * |
118 | 125 | * @return string - e.g. "London" (for census of England) and "London, England" elsewhere |
119 | 126 | */ |
120 | - protected function notCountry($place) { |
|
127 | + protected function notCountry($place) |
|
128 | + { |
|
121 | 129 | $parts = explode(', ', $place); |
122 | 130 | |
123 | 131 | if (end($parts) === $this->place()) { |
@@ -132,7 +140,8 @@ discard block |
||
132 | 140 | * |
133 | 141 | * @return string |
134 | 142 | */ |
135 | - public function place() { |
|
143 | + public function place() |
|
144 | + { |
|
136 | 145 | return $this->census->censusPlace(); |
137 | 146 | } |
138 | 147 | |
@@ -143,7 +152,8 @@ discard block |
||
143 | 152 | * |
144 | 153 | * @return Family|null |
145 | 154 | */ |
146 | - public function spouseFamily(Individual $individual) { |
|
155 | + public function spouseFamily(Individual $individual) |
|
156 | + { |
|
147 | 157 | // Exclude families that were created after this census date |
148 | 158 | $families = array(); |
149 | 159 | foreach ($individual->getSpouseFamilies() as $family) { |
@@ -166,7 +176,8 @@ discard block |
||
166 | 176 | * |
167 | 177 | * @return string |
168 | 178 | */ |
169 | - public function title() { |
|
179 | + public function title() |
|
180 | + { |
|
170 | 181 | return $this->title; |
171 | 182 | } |
172 | 183 | } |