@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | if (isset($date) || isset($place)) { |
80 | 80 | $place = isset($place) ? $place : 'No place'; |
81 | 81 | Event::create([ |
82 | - 'event_type' => 'App\Individual', |
|
83 | - 'event_date' => $date, |
|
84 | - 'event_id' => 1, |
|
85 | - 'name' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
86 | - 'description' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
87 | - 'event_type_id' => 1, |
|
82 | + 'event_type' => 'App\Individual', |
|
83 | + 'event_date' => $date, |
|
84 | + 'event_id' => 1, |
|
85 | + 'name' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
86 | + 'description' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
87 | + 'event_type_id' => 1, |
|
88 | 88 | ]); |
89 | 89 | } |
90 | 90 | } |
@@ -100,9 +100,9 @@ discard block |
||
100 | 100 | if (isset($date) || isset($place)) { |
101 | 101 | $place = isset($place) ? $place : 'No place'; |
102 | 102 | Note::create([ |
103 | - 'name' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
104 | - 'date' => mb_convert_encoding($date, 'UTF-8', 'UTF-8'), |
|
105 | - 'description' => mb_convert_encoding($note, 'UTF-8', 'UTF-8'), |
|
103 | + 'name' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
104 | + 'date' => mb_convert_encoding($date, 'UTF-8', 'UTF-8'), |
|
105 | + 'description' => mb_convert_encoding($note, 'UTF-8', 'UTF-8'), |
|
106 | 106 | ]); |
107 | 107 | } |
108 | 108 | } |
@@ -111,8 +111,8 @@ discard block |
||
111 | 111 | $file = $mediafile->getFile(); |
112 | 112 | if (isset($title) || isset($file)) { |
113 | 113 | Note::create([ |
114 | - 'name' => mb_convert_encoding($title, 'UTF-8', 'UTF-8'), |
|
115 | - 'description' => mb_convert_encoding($file, 'UTF-8', 'UTF-8'), |
|
114 | + 'name' => mb_convert_encoding($title, 'UTF-8', 'UTF-8'), |
|
115 | + 'description' => mb_convert_encoding($file, 'UTF-8', 'UTF-8'), |
|
116 | 116 | ]); |
117 | 117 | } |
118 | 118 | } |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | 'last_name' => $surn, |
122 | 122 | 'gender' => $sex, |
123 | 123 | 'is_active' => false, |
124 | - ]); |
|
124 | + ]); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | private function get_Family($family) |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | 'mother_id' => rand(1, 100), |
140 | 140 | 'description' => $g_id.' family', |
141 | 141 | 'type_id' => 1, |
142 | - ]); //father and mother id should be gedcom(string) type, not integer |
|
142 | + ]); //father and mother id should be gedcom(string) type, not integer |
|
143 | 143 | |
144 | 144 | foreach ($children as $child) { |
145 | 145 | if (isset($this->persons_id[$child])) { |
@@ -153,12 +153,12 @@ discard block |
||
153 | 153 | if (isset($date) || isset($place)) { |
154 | 154 | $place = isset($place) ? $place : 'No place'; |
155 | 155 | Event::create([ |
156 | - 'event_type' => 'App\Family', |
|
157 | - 'date' => mb_convert_encoding($date, 'UTF-8', 'UTF-8'), |
|
158 | - 'event_id' => 1, |
|
159 | - 'name' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
160 | - 'description' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
161 | - 'event_type_id' => 1, |
|
156 | + 'event_type' => 'App\Family', |
|
157 | + 'date' => mb_convert_encoding($date, 'UTF-8', 'UTF-8'), |
|
158 | + 'event_id' => 1, |
|
159 | + 'name' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
160 | + 'description' => mb_convert_encoding($place, 'UTF-8', 'UTF-8'), |
|
161 | + 'event_type_id' => 1, |
|
162 | 162 | ]); |
163 | 163 | } |
164 | 164 | } |