@@ -32,8 +32,7 @@ |
||
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 |
@@ -32,8 +32,7 @@ |
||
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 | } |
@@ -23,14 +23,16 @@ |
||
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 | } |
@@ -32,8 +32,7 @@ |
||
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 | } |
@@ -23,7 +23,8 @@ |
||
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 | } |
@@ -32,8 +32,7 @@ |
||
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 | } |
@@ -32,7 +32,7 @@ |
||
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(); |
@@ -31,8 +31,7 @@ |
||
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 | } |
@@ -31,8 +31,7 @@ |
||
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 | } |