@@ -381,7 +381,7 @@ |
||
381 | 381 | $_date = null; // string |
382 | 382 | $_plac = null; // \Gedcom\Record\Indi\Even\Plac |
383 | 383 | $_caus = null; // string |
384 | - $_age = null; // string |
|
384 | + $_age = null; // string |
|
385 | 385 | $_addr = null; // \Gedcom\Record\Addr |
386 | 386 | $_phon = []; // \Gedcom\Record\Phon |
387 | 387 | $_agnc = null; // string |
@@ -67,14 +67,14 @@ |
||
67 | 67 | $_group = 'subm'; |
68 | 68 | $_gid = $record->id; |
69 | 69 | |
70 | - $note = $subm->getNote(); // array --- |
|
70 | + $note = $subm->getNote(); // array --- |
|
71 | 71 | |
72 | 72 | if ($note != null && count($note) > 0) { |
73 | 73 | foreach ($note as $item) { |
74 | 74 | \FamilyTree365\LaravelGedcom\Utils\Importer\NoteRef::read($conn, $item, $_group, $_gid); |
75 | 75 | } |
76 | 76 | } |
77 | - $obje = $subm->getObje() ?? null; // array --- |
|
77 | + $obje = $subm->getObje() ?? null; // array --- |
|
78 | 78 | if ($obje && count($obje) > 0) { |
79 | 79 | foreach ($obje as $item) { |
80 | 80 | if ($item) { |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | // store chan |
20 | 20 | $key = ['group'=>$group, 'gid'=>$group_id, 'date'=>$date, 'time'=>$time]; |
21 | - $data = ['group'=>$group, 'gid'=>$group_id, 'date'=>$date, 'time'=>$time]; |
|
21 | + $data = ['group'=>$group, 'gid'=>$group_id, 'date'=>$date, 'time'=>$time]; |
|
22 | 22 | $record = MChan::on($conn)->updateOrCreate($key, $data); |
23 | 23 | |
24 | 24 | // store Sources of Note |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $_group = 'subn'; |
33 | 33 | $_gid = $record->id; |
34 | 34 | |
35 | - $note = $subn->getNote(); // array --- |
|
35 | + $note = $subn->getNote(); // array --- |
|
36 | 36 | |
37 | 37 | if ($note != null && count($note) > 0) { |
38 | 38 | foreach ($note as $item) { |
@@ -279,7 +279,7 @@ |
||
279 | 279 | $chan = $_subm->getChan() ?? ['Unknown']; // Record\Chan--- |
280 | 280 | $name = $_subm->getName() ?? 'Unknown'; // string |
281 | 281 | if ($_subm->getAddr() != null) { // Record/Addr |
282 | - $addr = $_subm->getAddr(); |
|
282 | + $addr = $_subm->getAddr(); |
|
283 | 283 | $addr->getAddr() ?? 'Unknown'; |
284 | 284 | $addr->getAdr1() ?? 'Unknown'; |
285 | 285 | $addr->getAdr2() ?? 'Unknown'; |
@@ -84,8 +84,8 @@ |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | // array value |
87 | - $fams = $individual->getFams(); // self family, leave it now, note would be included in family |
|
88 | - $famc = $individual->getFamc(); // parent family , leave it now, note and pedi would be included in family |
|
87 | + $fams = $individual->getFams(); // self family, leave it now, note would be included in family |
|
88 | + $famc = $individual->getFamc(); // parent family , leave it now, note and pedi would be included in family |
|
89 | 89 | |
90 | 90 | // added to database |
91 | 91 | // string value |
@@ -74,8 +74,8 @@ |
||
74 | 74 | } |
75 | 75 | |
76 | 76 | // array value |
77 | - $fams = $individual->getFams(); // self family, leave it now, note would be included in family |
|
78 | - $famc = $individual->getFamc(); // parent family , leave it now, note and pedi would be included in family |
|
77 | + $fams = $individual->getFams(); // self family, leave it now, note would be included in family |
|
78 | + $famc = $individual->getFamc(); // parent family , leave it now, note and pedi would be included in family |
|
79 | 79 | |
80 | 80 | // added to database |
81 | 81 | // string value |
@@ -13,7 +13,7 @@ |
||
13 | 13 | GedcomImporter::class, |
14 | 14 | ]); |
15 | 15 | |
16 | - $this->app->bind('FamilyTree365/laravel-gedcom:parser', function () { |
|
16 | + $this->app->bind('FamilyTree365/laravel-gedcom:parser', function() { |
|
17 | 17 | return new GedcomParser(); |
18 | 18 | }); |
19 | 19 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | public function definition() |
23 | 23 | { |
24 | 24 | return [ |
25 | - 'group' => $this->faker->word(), 'gid' => $this->faker->randomElement('1', '2'), 'subm' => $this->faker->word(), , 'created_at', 'updated_at', |
|
25 | + 'group' => $this->faker->word(), 'gid' => $this->faker->randomElement('1', '2'), 'subm' => $this->faker->word(),, 'created_at', 'updated_at', |
|
26 | 26 | ]; |
27 | 27 | } |
28 | 28 | } |