Code Duplication    Length = 31-42 lines in 12 locations

app/Census/CensusOfDenmark1860.php 1 location

@@ 21-52 (lines=32) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfDenmark1860 extends CensusOfDenmark implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '01 FEB 1860';
29
	}
30
31
	/**
32
	 * The columns of the census.
33
	 *
34
	 * @return CensusColumnInterface[]
35
	 */
36
	public function columns() {
37
		return array(
38
			new CensusColumnFullName($this, 'Navn', ''),
39
			new CensusColumnAge($this, 'Alder', ''),
40
			new CensusColumnConditionDanish($this, 'Civilstand', ''),
41
			new CensusColumnOccupation($this, 'Erhverv', ''),
42
			new CensusColumnRelationToHead($this, 'Stilling i familien', ''),
43
			new CensusColumnNull($this, '', ''), // Religion?
44
			new CensusColumnNull($this, '', ''),
45
			new CensusColumnNull($this, '', ''),
46
			new CensusColumnNull($this, '', ''),
47
			new CensusColumnNull($this, '', ''),
48
			new CensusColumnNull($this, '', ''),
49
			new CensusColumnNull($this, '', ''),
50
		);
51
	}
52
}
53

app/Census/CensusOfDenmark1880.php 1 location

@@ 21-53 (lines=33) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfDenmark1880 extends CensusOfDenmark implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '01 FEB 1880';
29
	}
30
31
	/**
32
	 * The columns of the census.
33
	 *
34
	 * @return CensusColumnInterface[]
35
	 */
36
	public function columns() {
37
		return array(
38
			new CensusColumnFullName($this, 'Navn', ''),
39
			new CensusColumnSexMK($this, 'Køn', ''),
40
			new CensusColumnAge($this, 'Alder', ''),
41
			new CensusColumnConditionDanish($this, 'Civilstand', ''),
42
			new CensusColumnReligion($this, 'Religion', ''),
43
			new CensusColumnOccupation($this, 'Erhverv', ''),
44
			new CensusColumnRelationToHead($this, 'Stilling i familien', ''),
45
			new CensusColumnNull($this, '', ''),
46
			new CensusColumnNull($this, '', ''),
47
			new CensusColumnNull($this, '', ''),
48
			new CensusColumnNull($this, '', ''),
49
			new CensusColumnNull($this, '', ''),
50
			new CensusColumnNull($this, '', ''),
51
		);
52
	}
53
}
54

app/Census/CensusOfDenmark1916.php 1 location

@@ 21-52 (lines=32) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfDenmark1916 extends CensusOfDenmark implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '01 FEB 1916';
29
	}
30
31
	/**
32
	 * The columns of the census.
33
	 *
34
	 * @return CensusColumnInterface[]
35
	 */
36
	public function columns() {
37
		return array(
38
			new CensusColumnFullName($this, 'Navn', 'Samtlige Personers Navn (ogsaa Fornavn). Ved Børn, endnu uden Navn, sættes „Dreng“ eller „Pige“. Midlertidig fraværerade Personer anføres ikke her, men paa Skemaeta Bagside)'),
39
			new CensusColumnSexMK($this, 'Køn', 'Kjønnet. Mandkøn (M) eller Kvindekøn (K).'),
40
			new CensusColumnBirthDaySlashMonthYear($this, 'Fødselsdag', 'Føderlsaar og Føderladag.'),
41
			new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'),
42
			new CensusColumnReligion($this, 'Trossamfund', 'Trossamfund (Folkekirken eller Navnet paa det Trossamfund, man tilhører, eller „udenfor Trossamfund“).'),
43
			new CensusColumnBirthPlace($this, 'Fødested', ''),
44
			new CensusColumnNull($this, '', ''),
45
			new CensusColumnNull($this, '', ''),
46
			new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'),
47
			new CensusColumnOccupation($this, 'Erhverv', ''),
48
			new CensusColumnNull($this, '', ''),
49
			new CensusColumnNull($this, 'Anmærkninger', 'Anmærkninger.'),
50
		);
51
	}
52
}
53

app/Census/CensusOfDenmark1925.php 1 location

@@ 21-51 (lines=31) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfDenmark1925 extends CensusOfDenmark implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '05 NOV 1925';
29
	}
30
31
	/**
32
	 * The columns of the census.
33
	 *
34
	 * @return CensusColumnInterface[]
35
	 */
36
	public function columns() {
37
		return array(
38
			new CensusColumnFullName($this, 'Navn', 'Samtlige Personers Navn (ogsaa Fornavn). Ved Børn, endnu uden Navn, sættes „Dreng“ eller „Pige“. Midlertidig fraværerade Personer anføres ikke her, men paa Skemaeta Bagside)'),
39
			new CensusColumnSexMK($this, 'Køn', 'Kjønnet. Mandkøn (M) eller Kvindekøn (K).'),
40
			new CensusColumnBirthDaySlashMonth($this, 'Fødselsdag', ''),
41
			new CensusColumnBirthYear($this, 'Fødselsaar', ''),
42
			new CensusColumnBirthPlace($this, 'Fødested', ''),
43
			new CensusColumnNull($this, 'Statsbergerferhold', ''),
44
			new CensusColumnConditionDanish($this, 'Civilstand', 'Ægteskabelig Stillinge. Ugift (U), Gift (G), Enkemand eller Enke (E), Separeret (S), Fraskilt (F).'),
45
			new CensusColumnRelationToHead($this, 'Stilling i familien', 'Stilling i Familien: Husfader, Husmoder, Barn, Slangtning o.l., Tjenestetyende, Logerende, Pensioner'),
46
			new CensusColumnOccupation($this, 'Erhverv', 'Erhverv eller Livsstilling'),
47
			new CensusColumnNull($this, 'Bopæl', 'Bopæl den 5. Novbr. 1924'),
48
			new CensusColumnNull($this, 'Anmærkninger', 'Anmærkninger'),
49
		);
50
	}
51
}
52

app/Census/CensusOfEngland1891.php 1 location

@@ 21-51 (lines=31) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfEngland1891 extends CensusOfEngland implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '05 APR 1891';
29
	}
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 CensusColumnNull($this, 'Empl', 'Employer'),
45
			new CensusColumnNull($this, 'Empd', 'Employed'),
46
			new CensusColumnNull($this, 'OAC', 'Own account'),
47
			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
48
			new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, lunatic or imbecile'),
49
		);
50
	}
51
}
52

app/Census/CensusOfScotland1891.php 1 location

@@ 21-52 (lines=32) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfScotland1891 extends CensusOfScotland implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '05 APR 1891';
29
	}
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 CensusColumnNull($this, 'Empl', 'Employer'),
45
			new CensusColumnNull($this, 'Empd', 'Employed'),
46
			new CensusColumnNull($this, 'OAC', 'Own account'),
47
			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
48
			new CensusColumnNull($this, 'Lang', 'Language spoken'),
49
			new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, lunatic or imbecile'),
50
		);
51
	}
52
}
53

app/Census/CensusOfScotland1901.php 1 location

@@ 21-51 (lines=31) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfScotland1901 extends CensusOfScotland implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '31 MAR 1901';
29
	}
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 CensusColumnNull($this, 'Emp', 'Employer, worker or own account'),
45
			new CensusColumnNull($this, 'Home', 'Working at home'),
46
			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
47
			new CensusColumnNull($this, 'Lang', 'Language spoken'),
48
			new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, lunatic, imbecile, feeble-minded'),
49
		);
50
	}
51
}
52

app/Census/CensusOfUnitedStates1850.php 1 location

@@ 21-51 (lines=31) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfUnitedStates1850 extends CensusOfUnitedStates implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '01 JUN 1850';
29
	}
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 CensusColumnBirthPlaceSimple($this, 'Birthplace', 'Place of birth, naming the state, territory, or country'),
45
			new CensusColumnMarriedWithinYear($this, 'Mar', 'Married within the year'),
46
			new CensusColumnNull($this, 'School', 'Attended school within the year'),
47
			new CensusColumnNull($this, 'R+W', 'Persons over 20 years of age who cannot read and write'),
48
			new CensusColumnNull($this, 'Infirm', 'Whether deaf and dumb, blind, insane, idiotic, pauper or convict'),
49
		);
50
	}
51
}
52

app/Census/CensusOfUnitedStates1860.php 1 location

@@ 21-52 (lines=32) @@
18
/**
19
 * Definitions for a census
20
 */
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
	}
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
	}
52
}
53

app/Census/CensusOfWales1891.php 1 location

@@ 21-51 (lines=31) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfWales1891 extends CensusOfWales implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '05 APR 1891';
29
	}
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 CensusColumnNull($this, 'Empl', 'Employer'),
45
			new CensusColumnNull($this, 'Empd', 'Employed'),
46
			new CensusColumnNull($this, 'OAC', 'Own account'),
47
			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
48
			new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, lunatic or imbecile'),
49
		);
50
	}
51
}
52

app/Census/CensusOfWales1901.php 1 location

@@ 21-51 (lines=31) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfWales1901 extends CensusOfWales implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return '31 MAR 1901';
29
	}
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 CensusColumnNull($this, 'Emp', 'Employer, worker or own account'),
45
			new CensusColumnNull($this, 'Home', 'Working at home'),
46
			new CensusColumnBirthPlace($this, 'Birthplace', 'Where born'),
47
			new CensusColumnNull($this, 'Infirm', 'Whether deaf-and-dumb, blind, lunatic, imbecile, feeble-minded'),
48
			new CensusColumnNull($this, 'Lang', 'Language spoken'),
49
		);
50
	}
51
}
52

app/Census/CensusOfDeutschland1819.php 1 location

@@ 21-62 (lines=42) @@
18
/**
19
 * Definitions for a census
20
 */
21
class CensusOfDeutschland1819 extends CensusOfDeutschland implements CensusInterface {
22
	/**
23
	 * When did this census occur.
24
	 *
25
	 * @return string
26
	 */
27
	public function censusDate() {
28
		return 'AUG 1819';
29
	}
30
31
	/**
32
	 * Where did this census occur, in GEDCOM format.
33
	 *
34
	 * @return string
35
	 */
36
	public function censusPlace() {
37
		return 'Mecklenburg-Schwerin, Deutschland';
38
	}	
39
40
	/**
41
	 * The columns of the census.
42
	 *
43
	 * @return CensusColumnInterface[]
44
	 */
45
	public function columns() {
46
		return array(
47
			new CensusColumnNull($this, 'Nr.', 'Laufende Num̅er.'),
48
			new CensusColumnNull($this, 'Geschlecht', 'Ob männlichen oder weiblichen Geschlechts.'),
49
			new CensusColumnFullName($this, 'Name', 'Vor- und Zuname.'),
50
			new CensusColumnBirthYear($this, 'Geburtsdatum', 'Jahr und Tag der Geburt.'),
51
			new CensusColumnBirthPlace($this, 'Geburtsort', 'Geburtsort.'),
52
			new CensusColumnNull($this, 'Kirchspiel', 'Kirchspiel, wohin der Geburtsort gehört.'),
53
			new CensusColumnNull($this, '', 'leere Spalte'),
54
			new CensusColumnOccupation($this, 'Stand/Beruf', 'Stand und Gewerbe.'),
55
			new CensusColumnNull($this, 'Besitz', 'Grundbesitz.'),
56
			new CensusColumnNull($this, 'hier seit', 'Wie lange er schon hier ist.'),
57
			new CensusColumnNull($this, 'Familienstand', 'Ob ledig oder verheirathet.'),
58
			new CensusColumnReligion($this, 'Religion', 'Religion.'),
59
			new CensusColumnNull($this, 'Bemerkungen', 'Allgemeine Bemerkungen.'),
60
		);
61
	}
62
}
63