Completed
Push — 1.7 ( ce7091...0d97cf )
by Greg
14:14 queued 07:41
created
app/Census/CensusOfUnitedStates.php 2 patches
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -19,38 +19,38 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfUnitedStates extends Census implements CensusPlaceInterface {
22
-	/**
23
-	 * All available censuses for this census place.
24
-	 *
25
-	 * @return CensusInterface[]
26
-	 */
27
-	public function allCensusDates() {
28
-		return array(
29
-			new CensusOfUnitedStates1790(),
30
-			new CensusOfUnitedStates1800(),
31
-			new CensusOfUnitedStates1810(),
32
-			new CensusOfUnitedStates1820(),
33
-			new CensusOfUnitedStates1830(),
34
-			new CensusOfUnitedStates1840(),
35
-			new CensusOfUnitedStates1850(),
36
-			new CensusOfUnitedStates1860(),
37
-			new CensusOfUnitedStates1870(),
38
-			new CensusOfUnitedStates1880(),
39
-			new CensusOfUnitedStates1890(),
40
-			new CensusOfUnitedStates1900(),
41
-			new CensusOfUnitedStates1910(),
42
-			new CensusOfUnitedStates1920(),
43
-			new CensusOfUnitedStates1930(),
44
-			new CensusOfUnitedStates1940(),
45
-		);
46
-	}
22
+    /**
23
+     * All available censuses for this census place.
24
+     *
25
+     * @return CensusInterface[]
26
+     */
27
+    public function allCensusDates() {
28
+        return array(
29
+            new CensusOfUnitedStates1790(),
30
+            new CensusOfUnitedStates1800(),
31
+            new CensusOfUnitedStates1810(),
32
+            new CensusOfUnitedStates1820(),
33
+            new CensusOfUnitedStates1830(),
34
+            new CensusOfUnitedStates1840(),
35
+            new CensusOfUnitedStates1850(),
36
+            new CensusOfUnitedStates1860(),
37
+            new CensusOfUnitedStates1870(),
38
+            new CensusOfUnitedStates1880(),
39
+            new CensusOfUnitedStates1890(),
40
+            new CensusOfUnitedStates1900(),
41
+            new CensusOfUnitedStates1910(),
42
+            new CensusOfUnitedStates1920(),
43
+            new CensusOfUnitedStates1930(),
44
+            new CensusOfUnitedStates1940(),
45
+        );
46
+    }
47 47
 
48
-	/**
49
-	 * Where did this census occur, in GEDCOM format.
50
-	 *
51
-	 * @return string
52
-	 */
53
-	public function censusPlace() {
54
-		return 'United States';
55
-	}
48
+    /**
49
+     * Where did this census occur, in GEDCOM format.
50
+     *
51
+     * @return string
52
+     */
53
+    public function censusPlace() {
54
+        return 'United States';
55
+    }
56 56
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Definitions for a census
20 20
  */
21
-class CensusOfUnitedStates extends Census implements CensusPlaceInterface {
21
+class CensusOfUnitedStates extends Census implements CensusPlaceInterface
22
+{
22 23
 	/**
23 24
 	 * All available censuses for this census place.
24 25
 	 *
25 26
 	 * @return CensusInterface[]
26 27
 	 */
27
-	public function allCensusDates() {
28
+	public function allCensusDates()
29
+	{
28 30
 		return array(
29 31
 			new CensusOfUnitedStates1790(),
30 32
 			new CensusOfUnitedStates1800(),
@@ -50,7 +52,8 @@  discard block
 block discarded – undo
50 52
 	 *
51 53
 	 * @return string
52 54
 	 */
53
-	public function censusPlace() {
55
+	public function censusPlace()
56
+	{
54 57
 		return 'United States';
55 58
 	}
56 59
 }
Please login to merge, or discard this patch.
app/Census/CensusOfFrance1906.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -19,30 +19,30 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfFrance1906 extends CensusOfFrance implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return '18 JAN 1906';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return '18 JAN 1906';
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
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Definitions for a census
20 20
  */
21
-class CensusOfFrance1906 extends CensusOfFrance implements CensusInterface {
21
+class CensusOfFrance1906 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 1906';
29 31
 	}
30 32
 
@@ -33,7 +35,8 @@  discard block
 block discarded – undo
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', ''),
Please login to merge, or discard this patch.
app/Census/CensusColumnConditionFrenchFemme.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,23 +19,23 @@
 block discarded – undo
19 19
  * Marital status.
20 20
  */
21 21
 class CensusColumnConditionFrenchFemme extends AbstractCensusColumnCondition {
22
-	/* Text to display for married individuals */
23
-	protected $husband = '';
24
-	protected $wife    = '1';
22
+    /* Text to display for married individuals */
23
+    protected $husband = '';
24
+    protected $wife    = '1';
25 25
 
26
-	/* Text to display for unmarried individuals */
27
-	protected $bachelor = '';
28
-	protected $spinster = '';
26
+    /* Text to display for unmarried individuals */
27
+    protected $bachelor = '';
28
+    protected $spinster = '';
29 29
 
30
-	/* Text to display for children */
31
-	protected $boy  = '';
32
-	protected $girl = '';
30
+    /* Text to display for children */
31
+    protected $boy  = '';
32
+    protected $girl = '';
33 33
 
34
-	/* Text to display for divorced individuals */
35
-	protected $divorce  = '';
36
-	protected $divorcee = '1';
34
+    /* Text to display for divorced individuals */
35
+    protected $divorce  = '';
36
+    protected $divorcee = '1';
37 37
 
38
-	/* Text to display for widowed individuals (not yet implemented) */
39
-	protected $widower = '';
40
-	protected $widow   = '';
38
+    /* Text to display for widowed individuals (not yet implemented) */
39
+    protected $widower = '';
40
+    protected $widow   = '';
41 41
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 /**
19 19
  * Marital status.
20 20
  */
21
-class CensusColumnConditionFrenchFemme extends AbstractCensusColumnCondition {
21
+class CensusColumnConditionFrenchFemme extends AbstractCensusColumnCondition
22
+{
22 23
 	/* Text to display for married individuals */
23 24
 	protected $husband = '';
24 25
 	protected $wife    = '1';
Please login to merge, or discard this patch.
app/Census/CensusOfScotland1861.php 2 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -19,31 +19,31 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfScotland1861 extends CensusOfScotland implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return '07 APR 1861';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return '07 APR 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 CensusColumnFullName($this, 'Name', 'Name and surname'),
39
-			new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
40
-			new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
41
-			new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
42
-			new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
43
-			new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
44
-			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
45
-			new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'),
46
-			new CensusColumnNull($this, 'School', 'Number of children between 5 and 13 attending school'),
47
-		);
48
-	}
31
+    /**
32
+     * The columns of the census.
33
+     *
34
+     * @return CensusColumnInterface[]
35
+     */
36
+    public function columns() {
37
+        return array(
38
+            new CensusColumnFullName($this, 'Name', 'Name and surname'),
39
+            new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
40
+            new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
41
+            new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
42
+            new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
43
+            new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
44
+            new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
45
+            new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'),
46
+            new CensusColumnNull($this, 'School', 'Number of children between 5 and 13 attending school'),
47
+        );
48
+    }
49 49
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Definitions for a census
20 20
  */
21
-class CensusOfScotland1861 extends CensusOfScotland implements CensusInterface {
21
+class CensusOfScotland1861 extends CensusOfScotland 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 '07 APR 1861';
29 31
 	}
30 32
 
@@ -33,7 +35,8 @@  discard block
 block discarded – undo
33 35
 	 *
34 36
 	 * @return CensusColumnInterface[]
35 37
 	 */
36
-	public function columns() {
38
+	public function columns()
39
+	{
37 40
 		return array(
38 41
 			new CensusColumnFullName($this, 'Name', 'Name and surname'),
39 42
 			new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
Please login to merge, or discard this patch.
app/Census/CensusColumnConditionUs.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -19,23 +19,23 @@
 block discarded – undo
19 19
  * Marital status.
20 20
  */
21 21
 class CensusColumnConditionUs extends CensusColumnConditionEnglish {
22
-	/* Text to display for married individuals */
23
-	protected $husband = 'M';
24
-	protected $wife    = 'M';
22
+    /* Text to display for married individuals */
23
+    protected $husband = 'M';
24
+    protected $wife    = 'M';
25 25
 
26
-	/* Text to display for unmarried individuals */
27
-	protected $bachelor = 'S';
28
-	protected $spinster = 'S';
26
+    /* Text to display for unmarried individuals */
27
+    protected $bachelor = 'S';
28
+    protected $spinster = 'S';
29 29
 
30
-	/* Text to display for children */
31
-	protected $boy  = 'S';
32
-	protected $girl = 'S';
30
+    /* Text to display for children */
31
+    protected $boy  = 'S';
32
+    protected $girl = 'S';
33 33
 
34
-	/* Text to display for divorced individuals */
35
-	protected $divorce  = 'D';
36
-	protected $divorcee = 'D';
34
+    /* Text to display for divorced individuals */
35
+    protected $divorce  = 'D';
36
+    protected $divorcee = 'D';
37 37
 
38
-	/* Text to display for widowed individuals (not yet implemented) */
39
-	protected $widower = 'W';
40
-	protected $widow   = 'W';
38
+    /* Text to display for widowed individuals (not yet implemented) */
39
+    protected $widower = 'W';
40
+    protected $widow   = 'W';
41 41
 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 /**
19 19
  * Marital status.
20 20
  */
21
-class CensusColumnConditionUs extends CensusColumnConditionEnglish {
21
+class CensusColumnConditionUs extends CensusColumnConditionEnglish
22
+{
22 23
 	/* Text to display for married individuals */
23 24
 	protected $husband = 'M';
24 25
 	protected $wife    = 'M';
Please login to merge, or discard this patch.
app/Census/CensusOfDenmark.php 2 patches
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -19,44 +19,44 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfDenmark extends Census implements CensusPlaceInterface {
22
-	/**
23
-	 * All available censuses for this census place.
24
-	 *
25
-	 * @return CensusInterface[]
26
-	 */
27
-	public function allCensusDates() {
28
-		return array(
29
-			new CensusOfDenmark1787(),
30
-			new CensusOfDenmark1801(),
31
-			new CensusOfDenmark1803(),
32
-			new CensusOfDenmark1834(),
33
-			new CensusOfDenmark1835(),
34
-			new CensusOfDenmark1840(),
35
-			new CensusOfDenmark1845(),
36
-			new CensusOfDenmark1850(),
37
-			new CensusOfDenmark1855(),
38
-			new CensusOfDenmark1860(),
39
-			new CensusOfDenmark1870(),
40
-			new CensusOfDenmark1880(),
41
-			new CensusOfDenmark1885(),
42
-			new CensusOfDenmark1890(),
43
-			new CensusOfDenmark1901(),
44
-			new CensusOfDenmark1906(),
45
-			new CensusOfDenmark1911(),
46
-			new CensusOfDenmark1916(),
47
-			new CensusOfDenmark1921(),
48
-			new CensusOfDenmark1925(),
49
-			new CensusOfDenmark1930(),
50
-			new CensusOfDenmark1940(),
51
-		);
52
-	}
22
+    /**
23
+     * All available censuses for this census place.
24
+     *
25
+     * @return CensusInterface[]
26
+     */
27
+    public function allCensusDates() {
28
+        return array(
29
+            new CensusOfDenmark1787(),
30
+            new CensusOfDenmark1801(),
31
+            new CensusOfDenmark1803(),
32
+            new CensusOfDenmark1834(),
33
+            new CensusOfDenmark1835(),
34
+            new CensusOfDenmark1840(),
35
+            new CensusOfDenmark1845(),
36
+            new CensusOfDenmark1850(),
37
+            new CensusOfDenmark1855(),
38
+            new CensusOfDenmark1860(),
39
+            new CensusOfDenmark1870(),
40
+            new CensusOfDenmark1880(),
41
+            new CensusOfDenmark1885(),
42
+            new CensusOfDenmark1890(),
43
+            new CensusOfDenmark1901(),
44
+            new CensusOfDenmark1906(),
45
+            new CensusOfDenmark1911(),
46
+            new CensusOfDenmark1916(),
47
+            new CensusOfDenmark1921(),
48
+            new CensusOfDenmark1925(),
49
+            new CensusOfDenmark1930(),
50
+            new CensusOfDenmark1940(),
51
+        );
52
+    }
53 53
 
54
-	/**
55
-	 * Where did this census occur, in GEDCOM format.
56
-	 *
57
-	 * @return string
58
-	 */
59
-	public function censusPlace() {
60
-		return 'Danmark';
61
-	}
54
+    /**
55
+     * Where did this census occur, in GEDCOM format.
56
+     *
57
+     * @return string
58
+     */
59
+    public function censusPlace() {
60
+        return 'Danmark';
61
+    }
62 62
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Definitions for a census
20 20
  */
21
-class CensusOfDenmark extends Census implements CensusPlaceInterface {
21
+class CensusOfDenmark extends Census implements CensusPlaceInterface
22
+{
22 23
 	/**
23 24
 	 * All available censuses for this census place.
24 25
 	 *
25 26
 	 * @return CensusInterface[]
26 27
 	 */
27
-	public function allCensusDates() {
28
+	public function allCensusDates()
29
+	{
28 30
 		return array(
29 31
 			new CensusOfDenmark1787(),
30 32
 			new CensusOfDenmark1801(),
@@ -56,7 +58,8 @@  discard block
 block discarded – undo
56 58
 	 *
57 59
 	 * @return string
58 60
 	 */
59
-	public function censusPlace() {
61
+	public function censusPlace()
62
+	{
60 63
 		return 'Danmark';
61 64
 	}
62 65
 }
Please login to merge, or discard this patch.
app/Census/CensusOfWales1851.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -19,30 +19,30 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfWales1851 extends CensusOfWales implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return '30 MAR 1851';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return '30 MAR 1851';
29
+    }
30 30
 
31
-	/**
32
-	 * The columns of the census.
33
-	 *
34
-	 * @return CensusColumnInterface[]
35
-	 */
36
-	public function columns() {
37
-		return array(
38
-			new CensusColumnFullName($this, 'Name', 'Name and surname'),
39
-			new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
40
-			new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
41
-			new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
42
-			new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
43
-			new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
44
-			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
45
-			new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'),
46
-		);
47
-	}
31
+    /**
32
+     * The columns of the census.
33
+     *
34
+     * @return CensusColumnInterface[]
35
+     */
36
+    public function columns() {
37
+        return array(
38
+            new CensusColumnFullName($this, 'Name', 'Name and surname'),
39
+            new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
40
+            new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
41
+            new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
42
+            new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
43
+            new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
44
+            new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
45
+            new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'),
46
+        );
47
+    }
48 48
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Definitions for a census
20 20
  */
21
-class CensusOfWales1851 extends CensusOfWales implements CensusInterface {
21
+class CensusOfWales1851 extends CensusOfWales 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 '30 MAR 1851';
29 31
 	}
30 32
 
@@ -33,7 +35,8 @@  discard block
 block discarded – undo
33 35
 	 *
34 36
 	 * @return CensusColumnInterface[]
35 37
 	 */
36
-	public function columns() {
38
+	public function columns()
39
+	{
37 40
 		return array(
38 41
 			new CensusColumnFullName($this, 'Name', 'Name and surname'),
39 42
 			new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
Please login to merge, or discard this patch.
app/Census/CensusColumnRelationToHead.php 2 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -22,21 +22,21 @@
 block discarded – undo
22 22
  * Relationshiop to head of household.
23 23
  */
24 24
 class CensusColumnRelationToHead extends AbstractCensusColumn implements CensusColumnInterface {
25
-	/**
26
-	 * Generate the likely value of this census column, based on available information.
27
-	 *
28
-	 * @param Individual      $individual
29
-	 * @param Individual|null $head
30
-	 *
31
-	 * @return string
32
-	 */
33
-	public function generate(Individual $individual, Individual $head = null) {
34
-		if ($head === null) {
35
-			return '';
36
-		} elseif ($individual == $head) {
37
-			return 'head';
38
-		} else {
39
-			return Functions::getCloseRelationshipName($head, $individual);
40
-		}
41
-	}
25
+    /**
26
+     * Generate the likely value of this census column, based on available information.
27
+     *
28
+     * @param Individual      $individual
29
+     * @param Individual|null $head
30
+     *
31
+     * @return string
32
+     */
33
+    public function generate(Individual $individual, Individual $head = null) {
34
+        if ($head === null) {
35
+            return '';
36
+        } elseif ($individual == $head) {
37
+            return 'head';
38
+        } else {
39
+            return Functions::getCloseRelationshipName($head, $individual);
40
+        }
41
+    }
42 42
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,8 @@  discard block
 block discarded – undo
21 21
 /**
22 22
  * Relationshiop to head of household.
23 23
  */
24
-class CensusColumnRelationToHead extends AbstractCensusColumn implements CensusColumnInterface {
24
+class CensusColumnRelationToHead extends AbstractCensusColumn implements CensusColumnInterface
25
+{
25 26
 	/**
26 27
 	 * Generate the likely value of this census column, based on available information.
27 28
 	 *
@@ -30,7 +31,8 @@  discard block
 block discarded – undo
30 31
 	 *
31 32
 	 * @return string
32 33
 	 */
33
-	public function generate(Individual $individual, Individual $head = null) {
34
+	public function generate(Individual $individual, Individual $head = null)
35
+	{
34 36
 		if ($head === null) {
35 37
 			return '';
36 38
 		} elseif ($individual == $head) {
Please login to merge, or discard this patch.
app/Census/CensusOfEngland1851.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -19,30 +19,30 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfEngland1851 extends CensusOfEngland implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return '30 MAR 1851';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return '30 MAR 1851';
29
+    }
30 30
 
31
-	/**
32
-	 * The columns of the census.
33
-	 *
34
-	 * @return CensusColumnInterface[]
35
-	 */
36
-	public function columns() {
37
-		return array(
38
-			new CensusColumnFullName($this, 'Name', 'Name and surname'),
39
-			new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
40
-			new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
41
-			new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
42
-			new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
43
-			new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
44
-			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
45
-			new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'),
46
-		);
47
-	}
31
+    /**
32
+     * The columns of the census.
33
+     *
34
+     * @return CensusColumnInterface[]
35
+     */
36
+    public function columns() {
37
+        return array(
38
+            new CensusColumnFullName($this, 'Name', 'Name and surname'),
39
+            new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
40
+            new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
41
+            new CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
42
+            new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
43
+            new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
44
+            new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
45
+            new CensusColumnNull($this, 'Infirm', 'Whether blind or deaf-and-dumb'),
46
+        );
47
+    }
48 48
 }
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,13 +18,15 @@  discard block
 block discarded – undo
18 18
 /**
19 19
  * Definitions for a census
20 20
  */
21
-class CensusOfEngland1851 extends CensusOfEngland implements CensusInterface {
21
+class CensusOfEngland1851 extends CensusOfEngland 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 '30 MAR 1851';
29 31
 	}
30 32
 
@@ -33,7 +35,8 @@  discard block
 block discarded – undo
33 35
 	 *
34 36
 	 * @return CensusColumnInterface[]
35 37
 	 */
36
-	public function columns() {
38
+	public function columns()
39
+	{
37 40
 		return array(
38 41
 			new CensusColumnFullName($this, 'Name', 'Name and surname'),
39 42
 			new CensusColumnRelationToHead($this, 'Relation', 'Relation to head of household'),
Please login to merge, or discard this patch.