@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | return; |
| 125 | 125 | } |
| 126 | 126 | // do self |
| 127 | - if (! array_key_exists($start_id, $this->persons)) { |
|
| 127 | + if (!array_key_exists($start_id, $this->persons)) { |
|
| 128 | 128 | // this is not added |
| 129 | 129 | $_families = Family::where('husband_id', $start_id)->orwhere('wife_id', $start_id)->select('id')->get(); |
| 130 | 130 | $_union_ids = []; |
@@ -141,10 +141,10 @@ discard block |
||
| 141 | 141 | |
| 142 | 142 | // get self's parents data |
| 143 | 143 | $p_family_id = $person->child_in_family_id; |
| 144 | - if (! empty($p_family_id)) { |
|
| 144 | + if (!empty($p_family_id)) { |
|
| 145 | 145 | // add parent family link |
| 146 | 146 | // $this->links[] = ['u'.$p_family_id, $start_id] ; |
| 147 | - array_unshift($this->links, ['u'.$p_family_id, $start_id]); |
|
| 147 | + array_unshift($this->links, ['u'.$p_family_id, $start_id]); |
|
| 148 | 148 | $p_family = Family::find($p_family_id); |
| 149 | 149 | if (isset($p_family->husband_id)) { |
| 150 | 150 | $p_fatherid = $p_family->husband_id; |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $father = Person::find($family->husband_id); |
| 164 | 164 | $mother = Person::find($family->wife_id); |
| 165 | 165 | if (isset($father->id)) { |
| 166 | - if (! array_key_exists($father->id, $this->persons)) { |
|
| 166 | + if (!array_key_exists($father->id, $this->persons)) { |
|
| 167 | 167 | // this is not added |
| 168 | 168 | $_families = Family::where('husband_id', $father->id)->orwhere('wife_id', $father->id)->select('id')->get(); |
| 169 | 169 | $_union_ids = []; |
@@ -180,10 +180,10 @@ discard block |
||
| 180 | 180 | array_unshift($this->links, [$father->id, 'u'.$family_id]); |
| 181 | 181 | // get husband's parents data |
| 182 | 182 | $p_family_id = $father->child_in_family_id; |
| 183 | - if (! empty($p_family_id)) { |
|
| 183 | + if (!empty($p_family_id)) { |
|
| 184 | 184 | // add parent family link |
| 185 | 185 | // $this->links[] = ['u'.$p_family_id, $father->id] ; |
| 186 | - array_unshift($this->links, ['u'.$p_family_id, $father->id]); |
|
| 186 | + array_unshift($this->links, ['u'.$p_family_id, $father->id]); |
|
| 187 | 187 | $p_family = Family::find($p_family_id); |
| 188 | 188 | if (isset($p_family->husband_id)) { |
| 189 | 189 | $p_fatherid = $p_family->husband_id; |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | } |
| 198 | 198 | } |
| 199 | 199 | if (isset($mother->id)) { |
| 200 | - if (! array_key_exists($mother->id, $this->persons)) { |
|
| 200 | + if (!array_key_exists($mother->id, $this->persons)) { |
|
| 201 | 201 | // this is not added |
| 202 | 202 | $_families = Family::where('husband_id', $mother->id)->orwhere('wife_id', $mother->id)->select('id')->get(); |
| 203 | 203 | $_union_ids = []; |
@@ -213,10 +213,10 @@ discard block |
||
| 213 | 213 | array_unshift($this->links, [$mother->id, 'u'.$family_id]); |
| 214 | 214 | // get wifee's parents data |
| 215 | 215 | $p_family_id = $mother->child_in_family_id; |
| 216 | - if (! empty($p_family_id)) { |
|
| 216 | + if (!empty($p_family_id)) { |
|
| 217 | 217 | // add parent family link |
| 218 | 218 | // $this->links[] = ['u'.$p_family_id, $father->id] ; |
| 219 | - array_unshift($this->links, ['u'.$p_family_id, $mother->id]); |
|
| 219 | + array_unshift($this->links, ['u'.$p_family_id, $mother->id]); |
|
| 220 | 220 | |
| 221 | 221 | $p_family = Family::find($p_family_id); |
| 222 | 222 | if (isset($p_family->husband_id)) { |