@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $husband_key = $parentData ? array_search($husb, array_column($parentData, 'gid')) : null; |
58 | 58 | //$husband_key = array_search($husb, array_column($parentData, 'gid')); |
59 | 59 | $husband_uid = $parentData[$husband_key]['uid'] ?? null; |
60 | - if(Person::where('uid', $husband_uid)->first() != null) { |
|
60 | + if (Person::where('uid', $husband_uid)->first() != null) { |
|
61 | 61 | $husband_id = Person::where('uid', $husband_uid)->first()->id; |
62 | 62 | } else { |
63 | 63 | $husband_id = null; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | $wife_key = $parentData ? array_search($wife, array_column($parentData, 'gid')) : null; |
67 | 67 | $wife_uid = $parentData[$wife_key]['uid'] ?? null; |
68 | - if(Person::where('uid', $wife_uid)->first() != null) { |
|
68 | + if (Person::where('uid', $wife_uid)->first() != null) { |
|
69 | 69 | $wife_id = Person::where('uid', $wife_uid)->first()->id; |
70 | 70 | } else { |
71 | 71 | $wife_id = null; |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | $_group = 'fam'; |
73 | - if($familie == null) { |
|
73 | + if ($familie == null) { |
|
74 | 74 | $_gid = 0; |
75 | 75 | } else { |
76 | 76 | $_gid = $familie->id; |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('people', function (Blueprint $table) { |
|
16 | + Schema::table('people', function(Blueprint $table) { |
|
17 | 17 | $table->string('chan')->nullable()->after('deleted_at'); |
18 | 18 | }); |
19 | 19 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public function down() |
27 | 27 | { |
28 | - Schema::table('people', function (Blueprint $table) { |
|
28 | + Schema::table('people', function(Blueprint $table) { |
|
29 | 29 | $table->dropColumn('chan'); |
30 | 30 | }); |
31 | 31 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('people', function (Blueprint $table) { |
|
16 | + Schema::table('people', function(Blueprint $table) { |
|
17 | 17 | $table->string('burial_day')->nullable()->after('death_year'); |
18 | 18 | $table->smallInteger('burial_year')->nullable()->after('burial_day'); |
19 | 19 | }); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function down() |
28 | 28 | { |
29 | - Schema::table('people', function (Blueprint $table) { |
|
29 | + Schema::table('people', function(Blueprint $table) { |
|
30 | 30 | $table->dropColumn(['burial_day', 'burial_year']); |
31 | 31 | }); |
32 | 32 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::table('people', function (Blueprint $table) { |
|
16 | + Schema::table('people', function(Blueprint $table) { |
|
17 | 17 | $table->string('titl')->nullable(); |
18 | 18 | $table->string('chr')->nullable(); |
19 | 19 | }); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | public function down() |
28 | 28 | { |
29 | - Schema::table('people', function (Blueprint $table) { |
|
29 | + Schema::table('people', function(Blueprint $table) { |
|
30 | 30 | $table->dropColumn(['titl', 'chr']); |
31 | 31 | }); |
32 | 32 | } |