Skip to content

Commit 0a289f1

Browse files
curtisdelicataStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 90e5f9e commit 0a289f1

File tree

4 files changed

+29
-33
lines changed

4 files changed

+29
-33
lines changed

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
declare(strict_types=1);
44

5-
use Rector\Core\Configuration\Option;
65
use Rector\Php74\Rector\Property\TypedPropertyRector;
76
use Rector\Set\ValueObject\SetList;
87
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

src/Utils/FamilyData.php

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ public static function getFamily($conn, $families, $obje_ids = [], $sour_ids = [
5959
// compact('husband_id', 'wife_id', 'description', 'type_id', 'nchi', 'rin')
6060
// );
6161

62-
$value = [
63-
'husband_id' => $husband_id,
64-
'wife_id' => $wife_id,
65-
'description' => $description,
66-
'type_id' => $type_id,
67-
'nchi' => $nchi,
68-
'rin' => $rin
69-
];
70-
71-
$familydata [] = $value;
62+
$value = [
63+
'husband_id' => $husband_id,
64+
'wife_id' => $wife_id,
65+
'description' => $description,
66+
'type_id' => $type_id,
67+
'nchi' => $nchi,
68+
'rin' => $rin,
69+
];
70+
71+
$familydata[] = $value;
7272
}
7373
// Family::insert($familyData);
7474

@@ -80,16 +80,16 @@ public static function getFamily($conn, $families, $obje_ids = [], $sour_ids = [
8080
['nchi', $nchi],
8181
['rin', $rin],
8282
];
83-
83+
8484
$check = Family::on($conn)->where($key)->first();
8585
if (empty($check)) {
8686
$value = [
87-
['husband_id', $husband_id],
88-
['wife_id', $wife_id],
89-
['description', $description],
90-
['type_id', $type_id],
87+
['husband_id', $husband_id],
88+
['wife_id', $wife_id],
89+
['description', $description],
90+
['type_id', $type_id],
9191
['nchi', $nchi],
92-
['rin', $rin],
92+
['rin', $rin],
9393
];
9494

9595
$FamilyData[] = $value;
@@ -102,9 +102,6 @@ public static function getFamily($conn, $families, $obje_ids = [], $sour_ids = [
102102
}
103103
// $person = Person::on($conn)->updateOrCreate($key,$value);
104104
// otherFields::insertOtherFields($conn,$individual,$obje_ids,$person);
105-
106-
107-
108105
} catch (\Exception $e) {
109106
$error = $e->getMessage();
110107

src/Utils/GedcomParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function parse(
204204
event(new GedComProgressSent($slug, $total, $complete, $channel));
205205
}
206206
}
207-
207+
208208
ParentData::getPerson($this->conn, $individuals, $this->obje_ids, $this->sour_ids);
209209

210210
foreach ($individuals as $individual) {
@@ -245,7 +245,7 @@ public function parse(
245245

246246
foreach ($families as $family) {
247247
// $this->getFamily($family);
248-
FamilyData::getFamily($this->conn, $family, $this->obje_ids);
248+
FamilyData::getFamily($this->conn, $family, $this->obje_ids);
249249
if ($progressBar === true) {
250250
$bar->advance();
251251
$complete++;

src/Utils/ParentData.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,17 +98,17 @@ public static function getPerson($conn, $individuals, $obje_ids = [], $sour_ids
9898
//$check = Person::on($conn)->where($key)->first();
9999
//if (empty($check)) {
100100
$value = [
101-
'gid' => $g_id,
102-
'name' => $name,
103-
'givn' => $givn,
104-
'surn' => $surn,
105-
'sex' => $sex,
106-
'uid' => $uid,
107-
'rin' => $rin,
108-
'resn' => $resn,
109-
'rfn' => $rfn,
110-
'afn' => $afn,
111-
'birthday' => $birthday
101+
'gid' => $g_id,
102+
'name' => $name,
103+
'givn' => $givn,
104+
'surn' => $surn,
105+
'sex' => $sex,
106+
'uid' => $uid,
107+
'rin' => $rin,
108+
'resn' => $resn,
109+
'rfn' => $rfn,
110+
'afn' => $afn,
111+
'birthday' => $birthday,
112112
];
113113

114114
$ParentData[] = $value;

0 commit comments

Comments
 (0)