Skip to content

Commit

Permalink
Fix renamed countries causing all of them being marked removed
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed May 13, 2023
1 parent 58e7e9e commit 89f4dca
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dev/DataSource/Country/CountryAlpha2Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace PrinsFrank\Standards\Dev\DataSource\Country;

use PrinsFrank\Standards\Country\CountryAlpha2;
use PrinsFrank\Standards\Country\CountryName;
use PrinsFrank\Standards\Dev\DataSource\HtmlDataSource;
use Symfony\Component\Panther\Client;
use Symfony\Component\Panther\DomCrawler\Crawler;
Expand Down Expand Up @@ -48,7 +49,7 @@ public static function getSpecFQN(): string

public static function getKeyEnumFQN(): string
{
return self::getSpecFQN();
return CountryName::class;
}

public static function afterPageLoad(Client $client, Crawler $crawler): void
Expand Down
3 changes: 2 additions & 1 deletion dev/DataSource/Country/CountryAlpha3Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace PrinsFrank\Standards\Dev\DataSource\Country;

use PrinsFrank\Standards\Country\CountryAlpha3;
use PrinsFrank\Standards\Country\CountryName;
use PrinsFrank\Standards\Dev\DataSource\HtmlDataSource;
use Symfony\Component\Panther\Client;
use Symfony\Component\Panther\DomCrawler\Crawler;
Expand Down Expand Up @@ -48,7 +49,7 @@ public static function getSpecFQN(): string

public static function getKeyEnumFQN(): string
{
return self::getSpecFQN();
return CountryName::class;
}

public static function afterPageLoad(Client $client, Crawler $crawler): void
Expand Down
3 changes: 2 additions & 1 deletion dev/DataSource/Country/CountryNumericSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace PrinsFrank\Standards\Dev\DataSource\Country;

use PrinsFrank\Standards\Country\CountryName;
use PrinsFrank\Standards\Country\CountryNumeric;
use PrinsFrank\Standards\Dev\DataSource\HtmlDataSource;
use Symfony\Component\Panther\Client;
Expand Down Expand Up @@ -48,7 +49,7 @@ public static function getSpecFQN(): string

public static function getKeyEnumFQN(): string
{
return self::getSpecFQN();
return CountryName::class;
}

public static function afterPageLoad(Client $client, Crawler $crawler): void
Expand Down

0 comments on commit 89f4dca

Please sign in to comment.