Skip to content

Commit

Permalink
Rename class to avoid ambiguity
Browse files Browse the repository at this point in the history
  • Loading branch information
fisharebest committed Mar 12, 2021
1 parent 22c135f commit 9028837
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/Elements/Gedcom.php → app/Elements/GedcomElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
/**
* HEAD:GEDC is an empty element with children; VERS and FORM.
*/
class Gedcom extends EmptyElement
class GedcomElement extends EmptyElement
{
}
4 changes: 2 additions & 2 deletions app/Factories/ElementFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
use Fisharebest\Webtrees\Elements\FileName;
use Fisharebest\Webtrees\Elements\FirstCommunion;
use Fisharebest\Webtrees\Elements\Form;
use Fisharebest\Webtrees\Elements\Gedcom;
use Fisharebest\Webtrees\Elements\GedcomElement;
use Fisharebest\Webtrees\Elements\GenerationsOfAncestors;
use Fisharebest\Webtrees\Elements\GenerationsOfDescendants;
use Fisharebest\Webtrees\Elements\GovIdentifier;
Expand Down Expand Up @@ -348,7 +348,7 @@ private function elements(): array
'HEAD:DATE:TIME' => new TimeValue(I18N::translate('Time')),
'HEAD:DEST' => new ReceivingSystemName(I18N::translate('Destination')),
'HEAD:FILE' => new FileName(I18N::translate('Filename')),
'HEAD:GEDC' => new Gedcom(I18N::translate('GEDCOM')),
'HEAD:GEDC' => new GedcomElement(I18N::translate('GEDCOM')),
'HEAD:GEDC:FORM' => new Form(I18N::translate('Format')),
'HEAD:GEDC:VERS' => new VersionNumber(I18N::translate('Version')),
'HEAD:LANG' => new LanguageId(I18N::translate('Language')),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
* Test harness for the class Gedcom
*
* @covers \Fisharebest\Webtrees\Elements\AbstractElement
* @covers \Fisharebest\Webtrees\Elements\Gedcom
* @covers \Fisharebest\Webtrees\Elements\GedcomElement
*/
class GedcomTest extends AbstractElementTest
class GedcomElementTest extends AbstractElementTest
{
/**
* Standard tests for all elements.
Expand All @@ -34,6 +34,6 @@ public static function setupBeforeClass(): void
{
parent::setUpBeforeClass();

self::$element = new Gedcom('label');
self::$element = new GedcomElement('label');
}
}

0 comments on commit 9028837

Please sign in to comment.