Skip to content

Commit

Permalink
Rename defaultCountry setting to country
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzi committed Dec 28, 2020
1 parent 52ba575 commit b361953
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/FritzBox/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function convertPhonenumber($number)

$numberUtil = PhoneNumberUtil::getInstance();
try {
$countryCode = $this->config['defaultCountry'];
$countryCode = $this->config['country'];
$parsedNumber = $numberUtil->parse($number, $countryCode);
return $numberUtil->formatOutOfCountryCallingNumber($parsedNumber, $countryCode);
} catch (NumberParseException $exception) {
Expand Down
2 changes: 1 addition & 1 deletion tests/ConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ private function defaultConfig(): array
'CELL' => 'mobile',
'FAX' => 'fax_work'
],
'defaultCountry' => 'DE',
'country' => 'DE',
'realName' => [],
],
];
Expand Down
2 changes: 1 addition & 1 deletion tests/RestorerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ private function defaultConfig(): array
'CELL' => 'mobile',
'FAX' => 'fax_work',
],
'defaultCountry' => 'DE'
'country' => 'DE'
],
];
}
Expand Down

0 comments on commit b361953

Please sign in to comment.