diff --git a/src/Utils/FamilyData.php b/src/Utils/FamilyData.php index 276854f..0bc1826 100644 --- a/src/Utils/FamilyData.php +++ b/src/Utils/FamilyData.php @@ -56,7 +56,7 @@ public static function getFamily($conn, $families, $obje_ids = [], $sour_ids = [ $husband_key = $parentData ? array_search($husb, array_column($parentData, 'gid')) : null; $husband_uid = $parentData[$husband_key]['uid'] ?? null; - if(Person::where('uid', $husband_uid)->first() != null) { + if (Person::where('uid', $husband_uid)->first() != null) { $husband_id = Person::where('uid', $husband_uid)->first()->id; } else { $husband_id = null; @@ -64,7 +64,7 @@ public static function getFamily($conn, $families, $obje_ids = [], $sour_ids = [ $wife_key = $parentData ? array_search($wife, array_column($parentData, 'gid')) : null; $wife_uid = $parentData[$wife_key]['uid'] ?? null; - if(Person::where('uid', $wife_uid)->first() != null) { + if (Person::where('uid', $wife_uid)->first() != null) { $wife_id = Person::where('uid', $wife_uid)->first()->id; } else { $wife_id = null; diff --git a/src/Utils/otherFamRecord.php b/src/Utils/otherFamRecord.php index 112935d..f5f3e69 100644 --- a/src/Utils/otherFamRecord.php +++ b/src/Utils/otherFamRecord.php @@ -69,7 +69,7 @@ public static function insertFamilyData($conn, $persons_id, $families, $obje_ids } } $_group = 'fam'; - if($familie == null) { + if ($familie == null) { $_gid = 0; } else { $_gid = $familie->id;