Passed
Pull Request — master (#61)
by
unknown
10:46
created
src/Utils/FamilyData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Utils/otherFamRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
2021_08_26_203800_add_microsecond_in_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->string('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.
2021_08_25_155050_add_column_burialday_and_burial_year_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->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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
migrations/2021_08_27_192146_add_column_titl_and_chr_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->string('titl')->nullable();
18 18
             $table->string('chr')->nullable();
19 19
         });
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
     }
Please login to merge, or discard this patch.