Passed
Push — master ( d3aad6...895937 )
by Curtis
02:53
created
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.
src/Utils/FamilyData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.