Passed
Push — 1.7 ( 23cbb7...8df8a8 )
by Greg
08:15
created
app/Census/CensusOfCzechRepublic1880.php 2 patches
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -19,36 +19,36 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfCzechRepublic1880 extends CensusOfCzechRepublic implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return '31 DEC 1880';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return '31 DEC 1880';
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, 'Jméno', ''),
39
-			new CensusColumnSexMZ($this, 'Pohlaví', ''),
40
-			new CensusColumnRelationToHead($this, 'Vztah', ''),
41
-			new CensusColumnBirthDaySlashMonthYear($this, 'Narození', 'Datum narození'),
42
-			new CensusColumnBirthPlace($this, 'Místo', 'Místo narození'),
43
-			new CensusColumnNull($this, 'Přísluší', 'Domovské právo'),
44
-			new CensusColumnReligion($this, 'Vyznání', ''),
45
-			new CensusColumnNull($this, 'Stav', 'Rodinný stav'),
46
-			new CensusColumnNull($this, 'Jazyk', 'Jazyk v obcování'),
47
-			new CensusColumnOccupation($this, 'Povolání', ''),
48
-			new CensusColumnNull($this, 'Postavení', 'Postavení v zaměstnání'),
49
-			new CensusColumnNull($this, '', ''),
50
-			new CensusColumnNull($this, '', ''),
51
-			new CensusColumnNull($this, '', ''),
52
-		);
53
-	}
31
+    /**
32
+     * The columns of the census.
33
+     *
34
+     * @return CensusColumnInterface[]
35
+     */
36
+    public function columns() {
37
+        return array(
38
+            new CensusColumnFullName($this, 'Jméno', ''),
39
+            new CensusColumnSexMZ($this, 'Pohlaví', ''),
40
+            new CensusColumnRelationToHead($this, 'Vztah', ''),
41
+            new CensusColumnBirthDaySlashMonthYear($this, 'Narození', 'Datum narození'),
42
+            new CensusColumnBirthPlace($this, 'Místo', 'Místo narození'),
43
+            new CensusColumnNull($this, 'Přísluší', 'Domovské právo'),
44
+            new CensusColumnReligion($this, 'Vyznání', ''),
45
+            new CensusColumnNull($this, 'Stav', 'Rodinný stav'),
46
+            new CensusColumnNull($this, 'Jazyk', 'Jazyk v obcování'),
47
+            new CensusColumnOccupation($this, 'Povolání', ''),
48
+            new CensusColumnNull($this, 'Postavení', 'Postavení v zaměstnání'),
49
+            new CensusColumnNull($this, '', ''),
50
+            new CensusColumnNull($this, '', ''),
51
+            new CensusColumnNull($this, '', ''),
52
+        );
53
+    }
54 54
 }
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 CensusOfCzechRepublic1880 extends CensusOfCzechRepublic implements CensusInterface {
21
+class CensusOfCzechRepublic1880 extends CensusOfCzechRepublic 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 '31 DEC 1880';
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, 'Jméno', ''),
39 42
 			new CensusColumnSexMZ($this, 'Pohlaví', ''),
Please login to merge, or discard this patch.
app/Census/CensusColumnBirthPlace.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -21,27 +21,27 @@
 block discarded – undo
21 21
  * The individual's birth place.
22 22
  */
23 23
 class CensusColumnBirthPlace extends AbstractCensusColumn implements CensusColumnInterface {
24
-	/**
25
-	 * Generate the likely value of this census column, based on available information.
26
-	 *
27
-	 * @param Individual      $individual
28
-	 * @param Individual|null $head
29
-	 *
30
-	 * @return string
31
-	 */
32
-	public function generate(Individual $individual, Individual $head = null) {
33
-		$birth_place  = $individual->getBirthPlace();
34
-		$census_place = $this->place();
24
+    /**
25
+     * Generate the likely value of this census column, based on available information.
26
+     *
27
+     * @param Individual      $individual
28
+     * @param Individual|null $head
29
+     *
30
+     * @return string
31
+     */
32
+    public function generate(Individual $individual, Individual $head = null) {
33
+        $birth_place  = $individual->getBirthPlace();
34
+        $census_place = $this->place();
35 35
 
36
-		// Ignore the census country
37
-		if ($birth_place === $census_place) {
38
-			return '';
39
-		}
36
+        // Ignore the census country
37
+        if ($birth_place === $census_place) {
38
+            return '';
39
+        }
40 40
 
41
-		if (substr($birth_place, -strlen($census_place) - 2) === ', ' . $census_place) {
42
-			return substr($birth_place, 0, -strlen($census_place) - 2);
43
-		} else {
44
-			return $birth_place;
45
-		}
46
-	}
41
+        if (substr($birth_place, -strlen($census_place) - 2) === ', ' . $census_place) {
42
+            return substr($birth_place, 0, -strlen($census_place) - 2);
43
+        } else {
44
+            return $birth_place;
45
+        }
46
+    }
47 47
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
 /**
21 21
  * The individual's birth place.
22 22
  */
23
-class CensusColumnBirthPlace extends AbstractCensusColumn implements CensusColumnInterface {
23
+class CensusColumnBirthPlace extends AbstractCensusColumn implements CensusColumnInterface
24
+{
24 25
 	/**
25 26
 	 * Generate the likely value of this census column, based on available information.
26 27
 	 *
@@ -29,7 +30,8 @@  discard block
 block discarded – undo
29 30
 	 *
30 31
 	 * @return string
31 32
 	 */
32
-	public function generate(Individual $individual, Individual $head = null) {
33
+	public function generate(Individual $individual, Individual $head = null)
34
+	{
33 35
 		$birth_place  = $individual->getBirthPlace();
34 36
 		$census_place = $this->place();
35 37
 
Please login to merge, or discard this patch.
app/Census/CensusOfScotland1911.php 2 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -19,39 +19,39 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfScotland1911 extends CensusOfScotland implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return '02 APR 1911';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return '02 APR 1911';
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 CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
41
-			new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
42
-			new CensusColumnNull($this, 'Lang', 'Language spoken'),
43
-			new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
44
-			new CensusColumnYearsMarried($this, 'YrM', 'Years married'),
45
-			new CensusColumnChildrenBornAlive($this, 'ChA', 'Children born alive'),
46
-			new CensusColumnChildrenLiving($this, 'ChL', 'Children who are still alive'),
47
-			new CensusColumnChildrenDied($this, 'ChD', 'Children who have died'),
48
-			new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
49
-			new CensusColumnNull($this, 'Ind', 'Industry'),
50
-			new CensusColumnNull($this, 'Emp', 'Employer, worker or own account'),
51
-			new CensusColumnNull($this, 'Home', 'Working at home'),
52
-			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
53
-			new CensusColumnNationality($this, 'Nat', 'Nationality'),
54
-			new CensusColumnNull($this, 'Infirm', 'Infirmity'),
55
-		);
56
-	}
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 CensusColumnAgeMale($this, 'AgeM', 'Age (males)'),
41
+            new CensusColumnAgeFemale($this, 'AgeF', 'Age (females)'),
42
+            new CensusColumnNull($this, 'Lang', 'Language spoken'),
43
+            new CensusColumnConditionEnglish($this, 'Condition', 'Condition'),
44
+            new CensusColumnYearsMarried($this, 'YrM', 'Years married'),
45
+            new CensusColumnChildrenBornAlive($this, 'ChA', 'Children born alive'),
46
+            new CensusColumnChildrenLiving($this, 'ChL', 'Children who are still alive'),
47
+            new CensusColumnChildrenDied($this, 'ChD', 'Children who have died'),
48
+            new CensusColumnOccupation($this, 'Occupation', 'Rank, profession or occupation'),
49
+            new CensusColumnNull($this, 'Ind', 'Industry'),
50
+            new CensusColumnNull($this, 'Emp', 'Employer, worker or own account'),
51
+            new CensusColumnNull($this, 'Home', 'Working at home'),
52
+            new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
53
+            new CensusColumnNationality($this, 'Nat', 'Nationality'),
54
+            new CensusColumnNull($this, 'Infirm', 'Infirmity'),
55
+        );
56
+    }
57 57
 }
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 CensusOfScotland1911 extends CensusOfScotland implements CensusInterface {
21
+class CensusOfScotland1911 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 '02 APR 1911';
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/CensusPlaceInterface.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -19,17 +19,17 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 interface CensusPlaceInterface {
22
-	/**
23
-	 * All available censuses for this census place.
24
-	 *
25
-	 * @return CensusInterface[]
26
-	 */
27
-	public function allCensusDates();
22
+    /**
23
+     * All available censuses for this census place.
24
+     *
25
+     * @return CensusInterface[]
26
+     */
27
+    public function allCensusDates();
28 28
 
29
-	/**
30
-	 * Where did this census occur, in GEDCOM format.
31
-	 *
32
-	 * @return string
33
-	 */
34
-	public function censusPlace();
29
+    /**
30
+     * Where did this census occur, in GEDCOM format.
31
+     *
32
+     * @return string
33
+     */
34
+    public function censusPlace();
35 35
 }
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
  * Definitions for a census
20 20
  */
21
-interface CensusPlaceInterface {
21
+interface CensusPlaceInterface
22
+{
22 23
 	/**
23 24
 	 * All available censuses for this census place.
24 25
 	 *
Please login to merge, or discard this patch.
app/Census/CensusOfUnitedStates1860.php 2 patches
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -19,34 +19,34 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfUnitedStates1860 extends CensusOfUnitedStates implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return 'BET JUN 1860 AND OCT 1860';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return 'BET JUN 1860 AND OCT 1860';
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'),
39
-			new CensusColumnAge($this, 'Age', 'Age'),
40
-			new CensusColumnSexMF($this, 'Sex', 'Sex'),
41
-			new CensusColumnNull($this, 'Color', 'White, black, or mulatto'),
42
-			new CensusColumnOccupation($this, 'Occupation', 'Profession, occupation, or trade'),
43
-			new CensusColumnNull($this, 'RE', 'Value of real estate owned'),
44
-			new CensusColumnNull($this, 'PE', 'Value of personal estate owned'),
45
-			new CensusColumnBirthPlaceSimple($this, 'Birthplace', 'Place of birth, naming the state, territory, or country'),
46
-			new CensusColumnMarriedWithinYear($this, 'Mar', 'Married within the year'),
47
-			new CensusColumnNull($this, 'School', 'Attended school within the year'),
48
-			new CensusColumnNull($this, 'R+W', 'Persons over 20 years of age who cannot read and write'),
49
-			new CensusColumnNull($this, 'Infirm', 'Whether deaf and dumb, blind, insane, idiotic, pauper or convict'),
50
-		);
51
-	}
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'),
39
+            new CensusColumnAge($this, 'Age', 'Age'),
40
+            new CensusColumnSexMF($this, 'Sex', 'Sex'),
41
+            new CensusColumnNull($this, 'Color', 'White, black, or mulatto'),
42
+            new CensusColumnOccupation($this, 'Occupation', 'Profession, occupation, or trade'),
43
+            new CensusColumnNull($this, 'RE', 'Value of real estate owned'),
44
+            new CensusColumnNull($this, 'PE', 'Value of personal estate owned'),
45
+            new CensusColumnBirthPlaceSimple($this, 'Birthplace', 'Place of birth, naming the state, territory, or country'),
46
+            new CensusColumnMarriedWithinYear($this, 'Mar', 'Married within the year'),
47
+            new CensusColumnNull($this, 'School', 'Attended school within the year'),
48
+            new CensusColumnNull($this, 'R+W', 'Persons over 20 years of age who cannot read and write'),
49
+            new CensusColumnNull($this, 'Infirm', 'Whether deaf and dumb, blind, insane, idiotic, pauper or convict'),
50
+        );
51
+    }
52 52
 }
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 CensusOfUnitedStates1860 extends CensusOfUnitedStates implements CensusInterface {
21
+class CensusOfUnitedStates1860 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 'BET JUN 1860 AND OCT 1860';
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'),
39 42
 			new CensusColumnAge($this, 'Age', 'Age'),
Please login to merge, or discard this patch.
app/Census/CensusColumnMotherForeign.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -21,21 +21,21 @@
 block discarded – undo
21 21
  * Is the individual's mother a foreigner.
22 22
  */
23 23
 class CensusColumnMotherForeign extends AbstractCensusColumn implements CensusColumnInterface {
24
-	/**
25
-	 * Generate the likely value of this census column, based on available information.
26
-	 *
27
-	 * @param Individual      $individual
28
-	 * @param Individual|null $head
29
-	 *
30
-	 * @return string
31
-	 */
32
-	public function generate(Individual $individual, Individual $head = null) {
33
-		$mother = $this->mother($individual);
24
+    /**
25
+     * Generate the likely value of this census column, based on available information.
26
+     *
27
+     * @param Individual      $individual
28
+     * @param Individual|null $head
29
+     *
30
+     * @return string
31
+     */
32
+    public function generate(Individual $individual, Individual $head = null) {
33
+        $mother = $this->mother($individual);
34 34
 
35
-		if ($mother && $this->lastPartOfPlace($mother->getBirthPlace()) !== $this->place()) {
36
-			return 'Y';
37
-		} else {
38
-			return '';
39
-		}
40
-	}
35
+        if ($mother && $this->lastPartOfPlace($mother->getBirthPlace()) !== $this->place()) {
36
+            return 'Y';
37
+        } else {
38
+            return '';
39
+        }
40
+    }
41 41
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
 /**
21 21
  * Is the individual's mother a foreigner.
22 22
  */
23
-class CensusColumnMotherForeign extends AbstractCensusColumn implements CensusColumnInterface {
23
+class CensusColumnMotherForeign extends AbstractCensusColumn implements CensusColumnInterface
24
+{
24 25
 	/**
25 26
 	 * Generate the likely value of this census column, based on available information.
26 27
 	 *
@@ -29,7 +30,8 @@  discard block
 block discarded – undo
29 30
 	 *
30 31
 	 * @return string
31 32
 	 */
32
-	public function generate(Individual $individual, Individual $head = null) {
33
+	public function generate(Individual $individual, Individual $head = null)
34
+	{
33 35
 		$mother = $this->mother($individual);
34 36
 
35 37
 		if ($mother && $this->lastPartOfPlace($mother->getBirthPlace()) !== $this->place()) {
Please login to merge, or discard this patch.
app/Census/CensusColumnOccupation.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -21,19 +21,19 @@
 block discarded – undo
21 21
  * The individual's occupation.
22 22
  */
23 23
 class CensusColumnOccupation extends AbstractCensusColumn implements CensusColumnInterface {
24
-	/**
25
-	 * Generate the likely value of this census column, based on available information.
26
-	 *
27
-	 * @param Individual      $individual
28
-	 * @param Individual|null $head
29
-	 *
30
-	 * @return string
31
-	 */
32
-	public function generate(Individual $individual, Individual $head = null) {
33
-		foreach ($individual->getFacts('OCCU') as $fact) {
34
-			return $fact->getValue();
35
-		}
24
+    /**
25
+     * Generate the likely value of this census column, based on available information.
26
+     *
27
+     * @param Individual      $individual
28
+     * @param Individual|null $head
29
+     *
30
+     * @return string
31
+     */
32
+    public function generate(Individual $individual, Individual $head = null) {
33
+        foreach ($individual->getFacts('OCCU') as $fact) {
34
+            return $fact->getValue();
35
+        }
36 36
 
37
-		return '';
38
-	}
37
+        return '';
38
+    }
39 39
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@  discard block
 block discarded – undo
20 20
 /**
21 21
  * The individual's occupation.
22 22
  */
23
-class CensusColumnOccupation extends AbstractCensusColumn implements CensusColumnInterface {
23
+class CensusColumnOccupation extends AbstractCensusColumn implements CensusColumnInterface
24
+{
24 25
 	/**
25 26
 	 * Generate the likely value of this census column, based on available information.
26 27
 	 *
@@ -29,7 +30,8 @@  discard block
 block discarded – undo
29 30
 	 *
30 31
 	 * @return string
31 32
 	 */
32
-	public function generate(Individual $individual, Individual $head = null) {
33
+	public function generate(Individual $individual, Individual $head = null)
34
+	{
33 35
 		foreach ($individual->getFacts('OCCU') as $fact) {
34 36
 			return $fact->getValue();
35 37
 		}
Please login to merge, or discard this patch.
app/Census/CensusOfWales1861.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 CensusOfWales1861 extends CensusOfWales 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
-		);
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 CensusOfWales1861 extends CensusOfWales implements CensusInterface {
21
+class CensusOfWales1861 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 '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/CensusOfUnitedStates1870.php 2 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -19,40 +19,40 @@
 block discarded – undo
19 19
  * Definitions for a census
20 20
  */
21 21
 class CensusOfUnitedStates1870 extends CensusOfUnitedStates implements CensusInterface {
22
-	/**
23
-	 * When did this census occur.
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function censusDate() {
28
-		return 'JUN 1870';
29
-	}
22
+    /**
23
+     * When did this census occur.
24
+     *
25
+     * @return string
26
+     */
27
+    public function censusDate() {
28
+        return 'JUN 1870';
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'),
39
-			new CensusColumnAge($this, 'Age', 'Age'),
40
-			new CensusColumnSexMF($this, 'Sex', 'Sex'),
41
-			new CensusColumnNull($this, 'Color', 'White, Black, Mulatto, Chinese, Indian'),
42
-			new CensusColumnOccupation($this, 'Occupation', 'Profession, occupation, or trade'),
43
-			new CensusColumnNull($this, 'RE', 'Value of real estate owned'),
44
-			new CensusColumnNull($this, 'PE', 'Value of personal estate owned'),
45
-			new CensusColumnBirthPlaceSimple($this, 'Birthplace', 'Place of birth, naming the state, territory, or country'),
46
-			new CensusColumnFatherForeign($this, 'FFB', 'Father of foreign birth'),
47
-			new CensusColumnMotherForeign($this, 'MFB', 'Mother of foreign birth'),
48
-			new CensusColumnMonthIfBornWithinYear($this, 'Born', 'If born within the year, state month'),
49
-			new CensusColumnMonthIfMarriedWithinYear($this, 'Mar', 'If married within the year, state month'),
50
-			new CensusColumnNull($this, 'School', 'Attended school within the year'),
51
-			new CensusColumnNull($this, 'Read', 'Cannot read'),
52
-			new CensusColumnNull($this, 'Write', 'Cannot write'),
53
-			new CensusColumnNull($this, 'Infirm', 'Whether deaf and dumb, blind, insane, or idiotic'),
54
-			new CensusColumnNull($this, 'Cit', 'Male citizen of US'),
55
-			new CensusColumnNull($this, 'Dis', 'Male citizen of US, where right to vote is denied or abridged'),
56
-		);
57
-	}
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'),
39
+            new CensusColumnAge($this, 'Age', 'Age'),
40
+            new CensusColumnSexMF($this, 'Sex', 'Sex'),
41
+            new CensusColumnNull($this, 'Color', 'White, Black, Mulatto, Chinese, Indian'),
42
+            new CensusColumnOccupation($this, 'Occupation', 'Profession, occupation, or trade'),
43
+            new CensusColumnNull($this, 'RE', 'Value of real estate owned'),
44
+            new CensusColumnNull($this, 'PE', 'Value of personal estate owned'),
45
+            new CensusColumnBirthPlaceSimple($this, 'Birthplace', 'Place of birth, naming the state, territory, or country'),
46
+            new CensusColumnFatherForeign($this, 'FFB', 'Father of foreign birth'),
47
+            new CensusColumnMotherForeign($this, 'MFB', 'Mother of foreign birth'),
48
+            new CensusColumnMonthIfBornWithinYear($this, 'Born', 'If born within the year, state month'),
49
+            new CensusColumnMonthIfMarriedWithinYear($this, 'Mar', 'If married within the year, state month'),
50
+            new CensusColumnNull($this, 'School', 'Attended school within the year'),
51
+            new CensusColumnNull($this, 'Read', 'Cannot read'),
52
+            new CensusColumnNull($this, 'Write', 'Cannot write'),
53
+            new CensusColumnNull($this, 'Infirm', 'Whether deaf and dumb, blind, insane, or idiotic'),
54
+            new CensusColumnNull($this, 'Cit', 'Male citizen of US'),
55
+            new CensusColumnNull($this, 'Dis', 'Male citizen of US, where right to vote is denied or abridged'),
56
+        );
57
+    }
58 58
 }
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 CensusOfUnitedStates1870 extends CensusOfUnitedStates implements CensusInterface {
21
+class CensusOfUnitedStates1870 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 'JUN 1870';
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'),
39 42
 			new CensusColumnAge($this, 'Age', 'Age'),
Please login to merge, or discard this patch.