@@ -30,12 +30,12 @@ |
||
30 | 30 | $record = $parser->getCurrentLineRecord(); |
31 | 31 | $depth = (int)$record[0]; |
32 | 32 | if(isset($record[2])){ |
33 | - $source = new \PhpGedcom\Record\Head\Sour(); |
|
34 | - $source->setSour(trim($record[2])); |
|
33 | + $source = new \PhpGedcom\Record\Head\Sour(); |
|
34 | + $source->setSour(trim($record[2])); |
|
35 | 35 | } |
36 | 36 | else{ |
37 | - $parser->skipToNextLevel($depth); |
|
38 | - return null; |
|
37 | + $parser->skipToNextLevel($depth); |
|
38 | + return null; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | $parser->forward(); |
@@ -30,12 +30,12 @@ |
||
30 | 30 | $record = $parser->getCurrentLineRecord(); |
31 | 31 | $depth = (int)$record[0]; |
32 | 32 | if(isset($record[2])){ |
33 | - $data = new \PhpGedcom\Record\Head\Sour\Data(); |
|
34 | - $data->setData(trim($record[2])); |
|
33 | + $data = new \PhpGedcom\Record\Head\Sour\Data(); |
|
34 | + $data->setData(trim($record[2])); |
|
35 | 35 | } |
36 | 36 | else{ |
37 | - $parser->skipToNextLevel($depth); |
|
38 | - return null; |
|
37 | + $parser->skipToNextLevel($depth); |
|
38 | + return null; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | $parser->forward(); |
@@ -30,12 +30,12 @@ |
||
30 | 30 | $record = $parser->getCurrentLineRecord(); |
31 | 31 | $depth = (int)$record[0]; |
32 | 32 | if(isset($record[2])){ |
33 | - $corp = new \PhpGedcom\Record\Head\Sour\Corp(); |
|
34 | - $corp->setCorp(trim($record[2])); |
|
33 | + $corp = new \PhpGedcom\Record\Head\Sour\Corp(); |
|
34 | + $corp->setCorp(trim($record[2])); |
|
35 | 35 | } |
36 | 36 | else{ |
37 | - $parser->skipToNextLevel($depth); |
|
38 | - return null; |
|
37 | + $parser->skipToNextLevel($depth); |
|
38 | + return null; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 |
@@ -30,12 +30,12 @@ |
||
30 | 30 | $record = $parser->getCurrentLineRecord(); |
31 | 31 | $depth = (int)$record[0]; |
32 | 32 | if(isset($record[2])){ |
33 | - $char = new \PhpGedcom\Record\Head\Char(); |
|
34 | - $char->setChar(trim($record[2])); |
|
33 | + $char = new \PhpGedcom\Record\Head\Char(); |
|
34 | + $char->setChar(trim($record[2])); |
|
35 | 35 | } |
36 | 36 | else{ |
37 | - $parser->skipToNextLevel($depth); |
|
38 | - return null; |
|
37 | + $parser->skipToNextLevel($depth); |
|
38 | + return null; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 |
@@ -30,12 +30,12 @@ |
||
30 | 30 | $record = $parser->getCurrentLineRecord(); |
31 | 31 | $depth = (int)$record[0]; |
32 | 32 | if(isset($record[2])){ |
33 | - $date = new \PhpGedcom\Record\Head\Date(); |
|
34 | - $date->setDate(trim($record[2])); |
|
33 | + $date = new \PhpGedcom\Record\Head\Date(); |
|
34 | + $date->setDate(trim($record[2])); |
|
35 | 35 | } |
36 | 36 | else{ |
37 | - $parser->skipToNextLevel($depth); |
|
38 | - return null; |
|
37 | + $parser->skipToNextLevel($depth); |
|
38 | + return null; |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | $parser->forward(); |
@@ -30,11 +30,11 @@ |
||
30 | 30 | $record = $parser->getCurrentLineRecord(); |
31 | 31 | $depth = (int)$record[0]; |
32 | 32 | if(isset($record[2])){ |
33 | - $identifier = $parser->normalizeIdentifier($record[2]); |
|
33 | + $identifier = $parser->normalizeIdentifier($record[2]); |
|
34 | 34 | } |
35 | 35 | else{ |
36 | - $parser->skipToNextLevel($depth); |
|
37 | - return null; |
|
36 | + $parser->skipToNextLevel($depth); |
|
37 | + return null; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | $caln = new \PhpGedcom\Record\Caln(); |
@@ -30,11 +30,11 @@ |
||
30 | 30 | $record = $parser->getCurrentLineRecord(); |
31 | 31 | $depth = (int) $record[0]; |
32 | 32 | if(isset($record[1])){ |
33 | - $identifier = $parser->normalizeIdentifier($record[1]); |
|
33 | + $identifier = $parser->normalizeIdentifier($record[1]); |
|
34 | 34 | } |
35 | 35 | else{ |
36 | - $parser->skipToNextLevel($depth); |
|
37 | - return null; |
|
36 | + $parser->skipToNextLevel($depth); |
|
37 | + return null; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | $obje = new \PhpGedcom\Record\Obje(); |
@@ -20,23 +20,23 @@ |
||
20 | 20 | */ |
21 | 21 | class Date extends \PhpGedcom\Parser\Component { |
22 | 22 | |
23 | - /** |
|
24 | - * |
|
25 | - * |
|
26 | - */ |
|
27 | - public static function parse(\PhpGedcom\Parser $parser) { |
|
28 | - $record = $parser->getCurrentLineRecord(); |
|
29 | - $depth = (int) $record[0]; |
|
30 | - if (isset($record[1])) { |
|
31 | - $dat = new \PhpGedcom\Record\Date(); |
|
32 | - if (!empty($record[2])) { |
|
33 | - $dat->setDate($record[2]); |
|
34 | - } |
|
35 | - } else { |
|
36 | - $parser->skipToNextLevel($depth); |
|
37 | - return null; |
|
38 | - } |
|
23 | + /** |
|
24 | + * |
|
25 | + * |
|
26 | + */ |
|
27 | + public static function parse(\PhpGedcom\Parser $parser) { |
|
28 | + $record = $parser->getCurrentLineRecord(); |
|
29 | + $depth = (int) $record[0]; |
|
30 | + if (isset($record[1])) { |
|
31 | + $dat = new \PhpGedcom\Record\Date(); |
|
32 | + if (!empty($record[2])) { |
|
33 | + $dat->setDate($record[2]); |
|
34 | + } |
|
35 | + } else { |
|
36 | + $parser->skipToNextLevel($depth); |
|
37 | + return null; |
|
38 | + } |
|
39 | 39 | |
40 | - return $dat; |
|
41 | - } |
|
40 | + return $dat; |
|
41 | + } |
|
42 | 42 | } |
43 | 43 | \ No newline at end of file |
@@ -32,11 +32,11 @@ |
||
32 | 32 | $record = $parser->getCurrentLineRecord(); |
33 | 33 | $depth = (int)$record[0]; |
34 | 34 | if(isset($record[1])){ |
35 | - $identifier = $parser->normalizeIdentifier($record[1]); |
|
35 | + $identifier = $parser->normalizeIdentifier($record[1]); |
|
36 | 36 | } |
37 | 37 | else{ |
38 | - $parser->skipToNextLevel($depth); |
|
39 | - return null; |
|
38 | + $parser->skipToNextLevel($depth); |
|
39 | + return null; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | $head = new \PhpGedcom\Record\Head(); |