From b361953925bb9d488baf0bf413a29886b86ec989 Mon Sep 17 00:00:00 2001 From: Christian Kraus Date: Mon, 28 Dec 2020 14:10:16 +0100 Subject: [PATCH] Rename `defaultCountry` setting to `country` --- src/FritzBox/Converter.php | 2 +- tests/ConverterTest.php | 2 +- tests/RestorerTest.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/FritzBox/Converter.php b/src/FritzBox/Converter.php index 76eff627..051f39c7 100644 --- a/src/FritzBox/Converter.php +++ b/src/FritzBox/Converter.php @@ -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) { diff --git a/tests/ConverterTest.php b/tests/ConverterTest.php index 2121c0d3..b1fa3357 100644 --- a/tests/ConverterTest.php +++ b/tests/ConverterTest.php @@ -28,7 +28,7 @@ private function defaultConfig(): array 'CELL' => 'mobile', 'FAX' => 'fax_work' ], - 'defaultCountry' => 'DE', + 'country' => 'DE', 'realName' => [], ], ]; diff --git a/tests/RestorerTest.php b/tests/RestorerTest.php index 5011b23e..1c377605 100644 --- a/tests/RestorerTest.php +++ b/tests/RestorerTest.php @@ -23,7 +23,7 @@ private function defaultConfig(): array 'CELL' => 'mobile', 'FAX' => 'fax_work', ], - 'defaultCountry' => 'DE' + 'country' => 'DE' ], ]; }