Passed
Pull Request — 1.7 (#4191)
by
unknown
07:32
created
app/Filter.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,9 @@
 block discarded – undo
262 262
                 )
263 263
             );
264 264
 
265
-            if (is_array($tmp)) return $tmp[$variable] ?: array();
265
+            if (is_array($tmp)) {
266
+                return $tmp[$variable] ?: array();
267
+            }
266 268
         }
267 269
     }
268 270
 
Please login to merge, or discard this patch.
app/Individual.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1155,7 +1155,9 @@
 block discarded – undo
1155 1155
         ////////////////////////////////////////////////////////////////////////////
1156 1156
 
1157 1157
         $sublevel = 1;
1158
-        if ($gedcom) $sublevel += (int) $gedcom[0];
1158
+        if ($gedcom) {
1159
+            $sublevel += (int) $gedcom[0];
1160
+        }
1159 1161
         $NPFX     = preg_match("/\n{$sublevel} NPFX (.+)/", $gedcom, $match) ? $match[1] : '';
1160 1162
         $GIVN     = preg_match("/\n{$sublevel} GIVN (.+)/", $gedcom, $match) ? $match[1] : '';
1161 1163
         $SURN     = preg_match("/\n{$sublevel} SURN (.+)/", $gedcom, $match) ? $match[1] : '';
Please login to merge, or discard this patch.