@@ -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) { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $rin = $note->getRin(); |
21 | 21 | |
22 | 22 | // store note |
23 | - $key = ['group'=>$group, 'gid'=>$group_id, 'note'=> utf8_encode($_note) ]; |
|
23 | + $key = ['group'=>$group, 'gid'=>$group_id, 'note'=> utf8_encode($_note)]; |
|
24 | 24 | $data = ['group'=>$group, 'gid'=>$group_id, 'note'=> utf8_encode($_note), 'rin'=>$rin]; |
25 | 25 | $record = MNote::on($conn)->updateOrCreate($key, $data); |
26 | 26 | |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | return $_gid; |
52 | 52 | } |
53 | - catch(Throwable $e) |
|
53 | + catch (Throwable $e) |
|
54 | 54 | { |
55 | 55 | report($e); |
56 | 56 | } |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | public static function read($conn, $events, $person, $obje_ids = []) |
18 | 18 | { |
19 | 19 | |
20 | - if(empty($person)) return; |
|
20 | + if (empty($person)) return; |
|
21 | 21 | |
22 | 22 | $eventData = []; |
23 | 23 | foreach ($events as $event) { |
@@ -170,8 +170,8 @@ discard block |
||
170 | 170 | 'age' => $age, // |
171 | 171 | 'agnc' => $agnc, // |
172 | 172 | 'adop' => $adop, // |
173 | - 'adop_famc' => $adop_famc, // |
|
174 | - 'birt_famc' => $birt_famc, // |
|
173 | + 'adop_famc' => $adop_famc, // |
|
174 | + 'birt_famc' => $birt_famc, // |
|
175 | 175 | ]; |
176 | 176 | |
177 | 177 | $eventData[] = $data; |
@@ -368,7 +368,7 @@ discard block |
||
368 | 368 | } |
369 | 369 | } |
370 | 370 | } |
371 | - catch(Throwable $e) |
|
371 | + catch (Throwable $e) |
|
372 | 372 | { |
373 | 373 | report($e); |
374 | 374 | } |
@@ -154,7 +154,7 @@ |
||
154 | 154 | } |
155 | 155 | } |
156 | 156 | } |
157 | - catch(Throwable $e) |
|
157 | + catch (Throwable $e) |
|
158 | 158 | { |
159 | 159 | report($e); |
160 | 160 | } |
@@ -154,7 +154,7 @@ |
||
154 | 154 | } |
155 | 155 | } |
156 | 156 | } |
157 | - catch(Throwable $e) |
|
157 | + catch (Throwable $e) |
|
158 | 158 | { |
159 | 159 | report($e); |
160 | 160 | } |
@@ -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) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | $filename = $this->argument('filename').".GED"; |
49 | 49 | |
50 | - $file_path = $dir . '/' . $filename; |
|
50 | + $file_path = $dir.'/'.$filename; |
|
51 | 51 | |
52 | 52 | if (!file_exists($dir)) { |
53 | 53 | Storage::makeDirectory($dir); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $people = Person::all(); |
70 | 70 | $submissions = $query->get(); |
71 | 71 | |
72 | - $data =array ( |
|
72 | + $data = array( |
|
73 | 73 | 'submissions' => $submissions, |
74 | 74 | 'people' => $people, |
75 | 75 | ); |