Skip to content

Commit

Permalink
Fix codestyle for LanguageSubTagMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed Sep 2, 2024
1 parent 3ac2111 commit 47d54f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/DataSource/Mapping/LanguageSubTagMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public static function toDataSet(Client $client, Crawler $crawler): array
{
$dataSet = [];
foreach (explode('%%', $client->getPageSource()) as $i => $item) {
if($i === 0) {
if ($i === 0) {
continue;
}

if(preg_match_all('/(?P<key>[A-Za-z-]+): (?P<value>.+)/', $item, $matches, PREG_SET_ORDER) <= 0) {
if (preg_match_all('/(?P<key>[A-Za-z-]+): (?P<value>.+)/', $item, $matches, PREG_SET_ORDER) <= 0) {
throw new InvalidArgumentException('Invalid record encountered');
}

Expand Down

2 comments on commit 47d54f3

@szepeviktor
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PrinsFrank
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@szepeviktor Thanks, fixed!

Please sign in to comment.