summaryrefslogtreecommitdiff
path: root/app/Census/CensusColumnSexF.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-10-29 22:10:08 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-10-29 22:17:34 +0100
commit05babb969dd66fd95325613c7360d51ed3aa19fc (patch)
tree64f6f45d4684a83baae7de4393b3be1014037497 /app/Census/CensusColumnSexF.php
parent43f2f523bcb6d4090564d23802872c0679ede6bc (diff)
downloadwebtrees-05babb969dd66fd95325613c7360d51ed3aa19fc.tar.gz
webtrees-05babb969dd66fd95325613c7360d51ed3aa19fc.tar.bz2
webtrees-05babb969dd66fd95325613c7360d51ed3aa19fc.zip
CodeStyle
Diffstat (limited to 'app/Census/CensusColumnSexF.php')
-rw-r--r--app/Census/CensusColumnSexF.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/Census/CensusColumnSexF.php b/app/Census/CensusColumnSexF.php
index 5cb45fe468..fd2eb4cf69 100644
--- a/app/Census/CensusColumnSexF.php
+++ b/app/Census/CensusColumnSexF.php
@@ -44,11 +44,10 @@ class CensusColumnSexF extends AbstractCensusColumn implements CensusColumnInter
*/
public function generate(Individual $individual, Individual $head): string
{
- switch ($individual->sex()) {
- case 'F':
- return static::X;
- default:
- return '';
+ if ($individual->sex() === 'F') {
+ return static::X;
}
+
+ return '';
}
}