@@ -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->unique('uid'); |
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->dropUnique('uid'); |
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->dateTime('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->dropColumn('chan'); |
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->dateTime('chan')->nullable()->after('deleted_at'); |
30 | 30 | }); |
31 | 31 | } |
@@ -54,12 +54,12 @@ |
||
54 | 54 | |
55 | 55 | $chan = $family->getChan(); |
56 | 56 | |
57 | - $husband_key = $parentData? array_search($husb, array_column($parentData, 'gid')) : null; |
|
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 | 60 | $husband_id = Person::where('uid', $husband_uid)->first()->id ?? null; |
61 | 61 | |
62 | - $wife_key = $parentData? array_search($wife, array_column($parentData, 'gid')): null; |
|
62 | + $wife_key = $parentData ? array_search($wife, array_column($parentData, 'gid')) : null; |
|
63 | 63 | $wife_uid = $parentData[$wife_key]['uid'] ?? null; |
64 | 64 | $wife_id = Person::where('uid', $wife_uid)->first()->id ?? null; |
65 | 65 |