Passed
Push — master ( 2d132c...284d4e )
by Curtis
25:03 queued 22:10
created
src/migrations/2021_08_26_221746_set_unique_column_uid_to_people_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/migrations/2021_08_25_173444_add_column_chan_to_people_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/migrations/2021_08_26_203720_remove_column_chan_to_people_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Utils/FamilyData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,12 +54,12 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.