@@ -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 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | $husband_key = $parentData ? array_search($husb, array_column($parentData, 'gid')) : null; |
58 | 58 | $husband_uid = $parentData[$husband_key]['uid'] ?? null; |
59 | - if(Person::where('uid', $husband_uid)->first() != null) { |
|
59 | + if (Person::where('uid', $husband_uid)->first() != null) { |
|
60 | 60 | $husband_id = Person::where('uid', $husband_uid)->first()->id; |
61 | 61 | } else { |
62 | 62 | $husband_id = null; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | |
65 | 65 | $wife_key = $parentData ? array_search($wife, array_column($parentData, 'gid')) : null; |
66 | 66 | $wife_uid = $parentData[$wife_key]['uid'] ?? null; |
67 | - if(Person::where('uid', $wife_uid)->first() != null) { |
|
67 | + if (Person::where('uid', $wife_uid)->first() != null) { |
|
68 | 68 | $wife_id = Person::where('uid', $wife_uid)->first()->id; |
69 | 69 | } else { |
70 | 70 | $wife_id = null; |