|
4 | 4 |
|
5 | 5 | use FamilyTree365\LaravelGedcom\Models\Family; |
6 | 6 | use FamilyTree365\LaravelGedcom\Models\Person; |
7 | | -use Gedcom\Gedcom; |
8 | | -use Gedcom\Record\Fam; |
9 | | -use Gedcom\Record\Fam\Even; |
10 | | -use Gedcom\Record\Indi\Even as Personal; |
11 | | -use Gedcom\Record\Fam\Slgs; |
12 | | -use Gedcom\Record\Head; |
13 | | -use Gedcom\Record\Head\Sour; |
14 | | -use Gedcom\Record\Indi; |
15 | | -use Gedcom\Record\Indi\Fams; |
16 | | -use Gedcom\Record\Indi\Name; |
17 | | -use Gedcom\Record\NoteRef; |
18 | | -use Gedcom\Record\ObjeRef; |
19 | | -use Gedcom\Record\SourRef; |
20 | | -use Gedcom\Record\Subm; |
21 | | -use Gedcom\Writer; |
| 7 | +use PhpGedcom\Gedcom; |
| 8 | +use PhpGedcom\Record\Fam; |
| 9 | +use PhpGedcom\Record\Fam\Even; |
| 10 | +use PhpGedcom\Record\Fam\Slgs; |
| 11 | +use PhpGedcom\Record\Head; |
| 12 | +use PhpGedcom\Record\Head\Sour; |
| 13 | +use PhpGedcom\Record\Indi; |
| 14 | +use PhpGedcom\Record\Indi\Even as Personal; |
| 15 | +use PhpGedcom\Record\Indi\Fams; |
| 16 | +use PhpGedcom\Record\Indi\Name; |
| 17 | +use PhpGedcom\Record\NoteRef; |
| 18 | +use PhpGedcom\Record\ObjeRef; |
| 19 | +use PhpGedcom\Record\SourRef; |
| 20 | +use PhpGedcom\Record\Subm; |
| 21 | +use PhpGedcom\Writer; |
22 | 22 |
|
23 | 23 | class GedcomGenerator |
24 | 24 | { |
@@ -315,15 +315,15 @@ protected function setIndi($p_id) |
315 | 315 | $indi->setSex($sex); |
316 | 316 |
|
317 | 317 | $place = PersonEvent::query()->find($p_id); |
318 | | - $_plac = new Personal; |
319 | | - if(!empty($place->type)){ |
| 318 | + $_plac = new Personal(); |
| 319 | + if (!empty($place->type)) { |
320 | 320 | $_plac->setType($place->type); |
321 | 321 | } |
322 | | - if(!empty($place->date)){ |
323 | | - $date = \FamilyTree365\LaravelGedcom\Utils\Importer\Date::read("", $place->date); |
| 322 | + if (!empty($place->date)) { |
| 323 | + $date = \FamilyTree365\LaravelGedcom\Utils\Importer\Date::read('', $place->date); |
324 | 324 | $_plac->setDate($date); |
325 | 325 | } |
326 | | - if(!empty($place->type) && !empty($place->date)){ |
| 326 | + if (!empty($place->type) && !empty($place->date)) { |
327 | 327 | $indi->getAllEven($_plac); |
328 | 328 | } |
329 | 329 |
|
@@ -379,17 +379,17 @@ protected function setFam($family_id) |
379 | 379 | $even = new Even(); |
380 | 380 | $_type = null; // string |
381 | 381 | $_date = null; // string |
382 | | - $_plac = null; // \Gedcom\Record\Indi\Even\Plac |
| 382 | + $_plac = null; // \PhpGedcom\Record\Indi\Even\Plac |
383 | 383 | $_caus = null; // string |
384 | 384 | $_age = null; // string |
385 | | - $_addr = null; // \Gedcom\Record\Addr |
386 | | - $_phon = []; // \Gedcom\Record\Phon |
| 385 | + $_addr = null; // \PhpGedcom\Record\Addr |
| 386 | + $_phon = []; // \PhpGedcom\Record\Phon |
387 | 387 | $_agnc = null; // string |
388 | | - $_husb = null; // \Gedcom\Record\Fam\Even\Husb |
389 | | - $_wife = null; // \Gedcom\Record\Fam\Even\Wife |
390 | | - $_obje = []; // \Gedcom\Writer\ObjeRef |
391 | | - $_sour = []; // \Gedcom\Writer\SourRef |
392 | | - $_note = []; // \Gedcom\Writer\NoteRef |
| 388 | + $_husb = null; // \PhpGedcom\Record\Fam\Even\Husb |
| 389 | + $_wife = null; // \PhpGedcom\Record\Fam\Even\Wife |
| 390 | + $_obje = []; // \PhpGedcom\Writer\ObjeRef |
| 391 | + $_sour = []; // \PhpGedcom\Writer\SourRef |
| 392 | + $_note = []; // \PhpGedcom\Writer\NoteRef |
393 | 393 | $even->setType($_type); |
394 | 394 | $even->setDate($_date); |
395 | 395 | $even->setPlac($_plac); |
|
0 commit comments