Code Duplication    Length = 30-31 lines in 2 locations

app/Census/CensusOfUnitedStates1900.php 1 location

@@ 37-66 (lines=30) @@
34
	 *
35
	 * @return CensusColumnInterface[]
36
	 */
37
	public function columns() {
38
		return [
39
			new CensusColumnFullName($this, 'Name', 'Name'),
40
			new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'),
41
			new CensusColumnNull($this, 'Race', 'Color or race'),
42
			new CensusColumnSexMF($this, 'Sex', 'Sex'),
43
			new CensusColumnBirthMonth($this, 'Month', 'Month of birth'),
44
			new CensusColumnBirthYear($this, 'Year', 'Year of birth'),
45
			new CensusColumnAge($this, 'Age', 'Age at last birthday'),
46
			new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'),
47
			new CensusColumnYearsMarried($this, 'Marr', 'Number of years married'),
48
			new CensusColumnChildrenBornAlive($this, 'Chil', 'Mother of how many children'),
49
			new CensusColumnChildrenLiving($this, 'Chil', 'Number of these children living'),
50
			new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth of this person'),
51
			new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father of this person'),
52
			new CensusColumnMotherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother of this person'),
53
			new CensusColumnNull($this, 'Imm', 'Year of immigration to the United States'),
54
			new CensusColumnNull($this, 'US', 'Number of years in the United States'),
55
			new CensusColumnNull($this, 'Nat', 'Naturalization'),
56
			new CensusColumnOccupation($this, 'Occupation', 'Occupation, trade of profession'),
57
			new CensusColumnNull($this, 'Unemp', 'Months not unemployed'),
58
			new CensusColumnNull($this, 'School', 'Attended school (in months)'),
59
			new CensusColumnNull($this, 'Read', 'Can read'),
60
			new CensusColumnNull($this, 'Write', 'Can write'),
61
			new CensusColumnNull($this, 'Eng', 'Can speak English'),
62
			new CensusColumnNull($this, 'Home', 'Owned or rented'),
63
			new CensusColumnNull($this, 'Mort', 'Owned free or mortgaged'),
64
			new CensusColumnNull($this, 'Farm', 'Farm or house'),
65
		];
66
	}
67
}
68

app/Census/CensusOfUnitedStates1940.php 1 location

@@ 37-67 (lines=31) @@
34
	 *
35
	 * @return CensusColumnInterface[]
36
	 */
37
	public function columns() {
38
		return [
39
			new CensusColumnFullName($this, 'Name', 'Name'),
40
			new CensusColumnRelationToHead($this, 'Relation', 'Relationship of each person to the head of the family'),
41
			new CensusColumnNull($this, 'Home', 'Home owned or rented'),
42
			new CensusColumnNull($this, 'V/R', 'Value of house, if owned, or monthly rental if rented'),
43
			new CensusColumnNull($this, 'Farm', 'Does this family live on a farm'),
44
			new CensusColumnSexMF($this, 'Sex', 'Sex'),
45
			new CensusColumnNull($this, 'Race', 'Color or race'),
46
			new CensusColumnAge($this, 'Age', 'Age at last birthday'),
47
			new CensusColumnConditionUs($this, 'Cond', 'Whether single, married, widowed, or divorced'),
48
			new CensusColumnAgeMarried($this, 'AM', 'Age at first marriage'),
49
			new CensusColumnNull($this, 'School', 'Attended school since Sept. 1, 1929'),
50
			new CensusColumnNull($this, 'R/W', 'Whether able to read and write'),
51
			new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'),
52
			new CensusColumnFatherBirthPlaceSimple($this, 'FBP', 'Place of birth of father'),
53
			new CensusColumnMotherBirthPlaceSimple($this, 'MBP', 'Place of birth of mother'),
54
			new CensusColumnNull($this, 'Lang', 'Language spoken in home before coming to the United States'),
55
			new CensusColumnNull($this, 'Imm', 'Year of immigration to the United States'),
56
			new CensusColumnNull($this, 'Nat', 'Naturalization'),
57
			new CensusColumnNull($this, 'Eng', 'Whether able to speak English'),
58
			new CensusColumnOccupation($this, 'Occupation', 'Trade, profession, or particular kind of work done'),
59
			new CensusColumnNull($this, 'Industry', 'Industry, business of establishment in which at work'),
60
			new CensusColumnNull($this, 'Code', 'Industry code'),
61
			new CensusColumnNull($this, 'Emp', 'Class of worker'),
62
			new CensusColumnNull($this, 'Work', 'Whether normally at work yesterday or the last regular working day'),
63
			new CensusColumnNull($this, 'Unemp', 'If not, …'),
64
			new CensusColumnNull($this, 'Vet', 'Whether a veteran of U.S. military or …'),
65
			new CensusColumnNull($this, 'War', 'What war or …'),
66
		];
67
	}
68
}
69