Skip to content

Commit 9960148

Browse files
Update PSR4.
1 parent 3aa2ca6 commit 9960148

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Parser/Indi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public static function parse(\Gedcom\Parser $parser)
112112
case 'ENDL':
113113
case 'SLGC':
114114
$className = ucfirst(strtolower($recordType));
115-
$class = 'GedcomParserIndiz'.$className;
115+
$class = 'GedcomParserIndi'.$className;
116116

117117
$lds = $class::parse($parser);
118118
$indi->{'add'.$recordType}[] = $lds;

src/Parser/Indi/Attr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function parse(\Gedcom\Parser $parser)
2121
$record = $parser->getCurrentLineRecord();
2222
$depth = (int) $record[0];
2323
if (isset($record[1])) {
24-
$className = 'GedcomRecordzIndiz'.ucfirst(strtolower(trim($record[1])));
24+
$className = 'GedcomRecordIndi'.ucfirst(strtolower(trim($record[1])));
2525
$attr = new $className();
2626

2727
$attr->setType(trim($record[1]));

src/Parser/Indi/Even.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function parse(\Gedcom\Parser $parser)
3131
$even = null;
3232

3333
if (strtoupper(trim($record[1])) != 'EVEN') {
34-
$className = 'GedcomRecordzIndiz'.ucfirst(strtolower(trim($record[1])));
34+
$className = 'GedcomRecordIndi'.ucfirst(strtolower(trim($record[1])));
3535
$even = new $className();
3636
} else {
3737
$even = new \Gedcom\Record\Indi\Even();
@@ -102,7 +102,7 @@ public static function parse(\Gedcom\Parser $parser)
102102
}
103103
break;
104104
case 'CHAN':
105-
$change = Chan::parse($parser);
105+
$change = \Gedcom\Parser\Chan::parse($parser);
106106
$even->setChan($change);
107107
break;
108108
default:

src/Parser/Indi/Lds.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function parse(\Gedcom\Parser $parser)
2121
$record = $parser->getCurrentLineRecord();
2222
$depth = (int) $record[0];
2323
if (isset($record[1])) {
24-
$className = 'GedcomRecordzIndiz'.ucfirst(strtolower(trim($record[1])));
24+
$className = 'GedcomRecordIndi'.ucfirst(strtolower(trim($record[1])));
2525
$lds = new $className();
2626
} else {
2727
$parser->skipToNextLevel($depth);

0 commit comments

Comments
 (0)