Passed
Branch master (6a7148)
by Curtis
01:48
created
library/PhpGedcom/Parser/Indi/Name/Fone.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
         if(isset($record[2])){
33 33
           $fone = new \PhpGedcom\Record\Indi\Name\Fone();
34 34
           $fone->setFone(trim($record[2]));
35
-        }
36
-        else{
35
+        } else{
37 36
            return null;
38 37
         }
39 38
 
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Asso.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
         if(isset($record[2])){
33 33
           $asso = new \PhpGedcom\Record\Indi\Asso();
34 34
           $asso->setIndi($parser->normalizeIdentifier($record[2]));
35
-        }
36
-        else{
35
+        } else{
37 36
            $parser->skipToNextLevel($depth);
38 37
            return null;
39 38
         }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Adop.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,14 +23,16 @@
 block discarded – undo
23 23
     public static function parseAdop($parser, $even)
24 24
     {
25 25
         $record = $parser->getCurrentLineRecord();
26
-        if(isset($record[1]))
27
-        $even->setAdop(trim($record[2]));
26
+        if(isset($record[1])) {
27
+                $even->setAdop(trim($record[2]));
28
+        }
28 29
     }
29 30
 
30 31
     public static function parseFamc($parser, $even)
31 32
     {
32 33
         $record = $parser->getCurrentLineRecord();
33
-        if(isset($record[1]))
34
-        $even->setFamc(trim($record[2]));
34
+        if(isset($record[1])) {
35
+                $even->setFamc(trim($record[2]));
36
+        }
35 37
     }
36 38
 }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Name.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
         if(isset($record[2])){
33 33
           $name = new \PhpGedcom\Record\Indi\Name();
34 34
           $name->setName(trim($record[2]));
35
-        }
36
-        else{
35
+        } else{
37 36
            $parser->skipToNextLevel($depth);
38 37
            return null;
39 38
         }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Birt.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@
 block discarded – undo
23 23
     public static function parseFamc($parser, $even)
24 24
     {
25 25
         $record = $parser->getCurrentLineRecord();
26
-        if(isset($record[2]))
27
-          $even->setFamc(trim($record[2]));
26
+        if(isset($record[2])) {
27
+                  $even->setFamc(trim($record[2]));
28
+        }
28 29
     }
29 30
 }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Indi/Lds.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
         if(isset($record[1])){
33 33
           $className = '\\PhpGedcom\\Record\\Indi\\' . ucfirst(strtolower(trim($record[1])));
34 34
           $lds = new $className();
35
-        }
36
-        else{
35
+        } else{
37 36
            $parser->skipToNextLevel($depth);
38 37
            return null;
39 38
         }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/ObjeRef/File.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 		$depth = (int) $record[0];
33 33
         if(isset($record[2])) {
34 34
             $file->setFile($record[2]);
35
-        }else {
35
+        } else {
36 36
             return null;
37 37
         }
38 38
         $parser->forward();
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Note.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[1])){
33 33
           $identifier = $parser->normalizeIdentifier($record[1]);
34
-        }
35
-        else{
34
+        } else{
36 35
            $parser->skipToNextLevel($depth);
37 36
            return null;
38 37
         }
Please login to merge, or discard this patch.
library/PhpGedcom/Parser/Plac.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,8 +31,7 @@
 block discarded – undo
31 31
         $depth = (int)$record[0];
32 32
         if(isset($record[2])){
33 33
           $_plac = trim($record[2]);
34
-        }
35
-        else{
34
+        } else{
36 35
            $parser->skipToNextLevel($depth);
37 36
            return null;
38 37
         }
Please login to merge, or discard this patch.