fisharebest /
webtrees
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * webtrees: online genealogy |
||
| 5 | * Copyright (C) 2025 webtrees development team |
||
| 6 | * This program is free software: you can redistribute it and/or modify |
||
| 7 | * it under the terms of the GNU General Public License as published by |
||
| 8 | * the Free Software Foundation, either version 3 of the License, or |
||
| 9 | * (at your option) any later version. |
||
| 10 | * This program is distributed in the hope that it will be useful, |
||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
| 13 | * GNU General Public License for more details. |
||
| 14 | * You should have received a copy of the GNU General Public License |
||
| 15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. |
||
| 16 | */ |
||
| 17 | |||
| 18 | declare(strict_types=1); |
||
| 19 | |||
| 20 | namespace Fisharebest\Webtrees\Census; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Definitions for a census |
||
| 24 | */ |
||
| 25 | class CensusOfUnitedStates1940 extends CensusOfUnitedStates implements CensusInterface |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * When did this census occur. |
||
| 29 | * |
||
| 30 | * @return string |
||
| 31 | */ |
||
| 32 | public function censusDate(): string |
||
| 33 | { |
||
| 34 | return 'APR 1940'; |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * The columns of the census. |
||
| 39 | * |
||
| 40 | * @return array<CensusColumnInterface> |
||
| 41 | */ |
||
| 42 | public function columns(): array |
||
| 43 | { |
||
| 44 | return [ |
||
| 45 | new CensusColumnNull($this, 'Street', 'Street,avenue,road,etc'), |
||
| 46 | new CensusColumnNull($this, 'Number', 'House number (in cities and towns)'), |
||
| 47 | new CensusColumnNull($this, 'Home', 'Home owned (O) or rented (R)'), |
||
| 48 | new CensusColumnNull($this, 'Value', 'Value of home, if owned, or monthly rental if rented'), |
||
| 49 | new CensusColumnNull($this, 'Farm', 'Does this household live on a farm?'), |
||
| 50 | new CensusColumnFullName($this, 'Name', 'Name of each person whose usual place of residence on April 1, 1940, was in this household'), |
||
| 51 | new CensusColumnRelationToHeadEnglish($this, 'Relation', 'Relationship of this person to the head of the household'), |
||
|
0 ignored issues
–
show
|
|||
| 52 | new CensusColumnSexMF($this, 'Sex', 'Sex-Male (M),Female (F)'), |
||
|
0 ignored issues
–
show
The type
Fisharebest\Webtrees\Census\CensusColumnSexMF was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 53 | new CensusColumnNull($this, 'Race', 'Color or race'), |
||
| 54 | new CensusColumnAge($this, 'Age', 'Age at last birthday'), |
||
| 55 | new CensusColumnConditionUs($this, 'Cond', 'Marital Status-Single (S), Married (M), Widowed (W), Divorced (D)'), |
||
|
0 ignored issues
–
show
The type
Fisharebest\Webtrees\Cen...CensusColumnConditionUs was not found. Maybe you did not declare it correctly or list all dependencies?
The issue could also be caused by a filter entry in the build configuration.
If the path has been excluded in your configuration, e.g. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 56 | new CensusColumnNull($this, 'School', 'Attended school or college any time since March 1, 1940?'), |
||
| 57 | new CensusColumnNull($this, 'Grade', 'Highest grade of school completed'), |
||
| 58 | new CensusColumnBirthPlaceSimple($this, 'BP', 'Place of birth'), |
||
| 59 | new CensusColumnNull($this, 'Citizen', 'Citizenship of the foreign born'), |
||
| 60 | new CensusColumnNull($this, 'City', 'City, town, or village having 2,500 or more inhabitants. Enter "R" for all other places.'), |
||
| 61 | new CensusColumnNull($this, 'County', 'County'), |
||
| 62 | new CensusColumnNull($this, 'State', 'State (or Territory or foreign country)'), |
||
| 63 | new CensusColumnNull($this, 'OnFarm', 'On a farm?'), |
||
| 64 | new CensusColumnNull($this, 'Work', 'Was this person AT WORK for pay or profit in private or nonemergency Govt. work during week of March 24-30?'), |
||
| 65 | new CensusColumnNull($this, 'Emerg', 'If not, was he at work on, or assigned to, public EMERGENCY WORK (WPA,NYA,CCC,etc.) during week of March 24-30?'), |
||
| 66 | new CensusColumnNull($this, 'Seeking', 'Was this person SEEKING WORK?'), |
||
| 67 | new CensusColumnNull($this, 'Job', 'If not seeking work, did he HAVE A JOB, business, etc.?'), |
||
| 68 | new CensusColumnNull($this, 'Type', 'Indicate whether engaged in home housework (H), in school (S), unable to work (U), or other (Ot)'), |
||
| 69 | new CensusColumnNull($this, 'Hours', 'Numbers of hours worked during week of March 24-30, 1940'), |
||
| 70 | new CensusColumnNull($this, 'Unemp', 'Duration of unemployment up to March 30, 1940-in weeks'), |
||
| 71 | new CensusColumnOccupation($this, 'Occupation', 'Trade, profession, or particular kind of work'), |
||
| 72 | new CensusColumnNull($this, 'Industry', 'Industry or business'), |
||
| 73 | new CensusColumnNull($this, 'Weeks', 'Number of weeks worked in 1939 (Equivalent full-time weeks)'), |
||
| 74 | new CensusColumnNull($this, 'Salary', 'Amount of money wages or salary received (including commissions)'), |
||
| 75 | new CensusColumnNull($this, 'Extra', 'Did this person receive income of $50 or more from sources other than money wages or salary?'), |
||
| 76 | ]; |
||
| 77 | } |
||
| 78 | } |
||
| 79 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths