summaryrefslogtreecommitdiff
path: root/app/SurnameTradition/SpanishSurnameTradition.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/SurnameTradition/SpanishSurnameTradition.php')
-rw-r--r--app/SurnameTradition/SpanishSurnameTradition.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/app/SurnameTradition/SpanishSurnameTradition.php b/app/SurnameTradition/SpanishSurnameTradition.php
index 9c7ee7556f..6e27a394bd 100644
--- a/app/SurnameTradition/SpanishSurnameTradition.php
+++ b/app/SurnameTradition/SpanishSurnameTradition.php
@@ -62,16 +62,16 @@ class SpanishSurnameTradition extends DefaultSurnameTradition implements Surname
public function newParentNames($child_name, $parent_sex) {
if (preg_match(self::REGEX_SURNS, $child_name, $match)) {
switch ($parent_sex) {
- case 'M':
- return [
- 'NAME' => '/' . $match['SURN1'] . '/ //',
- 'SURN' => $match['SURN1'],
- ];
- case 'F':
- return [
- 'NAME' => '/' . $match['SURN2'] . '/ //',
- 'SURN' => $match['SURN2'],
- ];
+ case 'M':
+ return [
+ 'NAME' => '/' . $match['SURN1'] . '/ //',
+ 'SURN' => $match['SURN1'],
+ ];
+ case 'F':
+ return [
+ 'NAME' => '/' . $match['SURN2'] . '/ //',
+ 'SURN' => $match['SURN2'],
+ ];
}
}