From 61f5930108a68f21458332178a8e56d048bdea2d Mon Sep 17 00:00:00 2001 From: Brian Faust Date: Mon, 2 Sep 2024 12:28:44 +0300 Subject: [PATCH 01/10] Support for 7-digit postal codes in Egypt Then new Egypt Postal code system depends on assigning 7 digit postal code number to every block of buildings, which assure better accuracy of identifying the postal code. https://epostalmap.com/en/ --- src/Formatter/EGFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formatter/EGFormatter.php b/src/Formatter/EGFormatter.php index ecbf988..ffa9bd6 100644 --- a/src/Formatter/EGFormatter.php +++ b/src/Formatter/EGFormatter.php @@ -21,7 +21,7 @@ class EGFormatter implements CountryPostcodeFormatter */ public function format(string $postcode) : ?string { - if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { + if (preg_match('/^\d{5}(\d{2})?$/', $postcode) !== 1) { return null; } From 5d432125716d98cd9f352183c2e9094c00c4ed6f Mon Sep 17 00:00:00 2001 From: Brian Faust Date: Sun, 15 Sep 2024 13:16:20 +0300 Subject: [PATCH 02/10] Add reference to UPU specification --- src/Formatter/EGFormatter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Formatter/EGFormatter.php b/src/Formatter/EGFormatter.php index ffa9bd6..afecae8 100644 --- a/src/Formatter/EGFormatter.php +++ b/src/Formatter/EGFormatter.php @@ -9,10 +9,11 @@ /** * Validates and formats postcodes in Egypt. * - * Postcodes consist of 5 digits, without separator. + * Postcodes consist of 5 or 7 digits, without separator. * * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/List_of_postal_codes_in_Egypt + * @see https://www.upu.int/UPU/media/upu/PostalEntitiesFiles/addressingUnit/egyEn.pdf */ class EGFormatter implements CountryPostcodeFormatter { From ef8ab8fc15bb1c26b6ef59c4c65cc73397b03e67 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Sun, 15 Sep 2024 23:13:51 +0200 Subject: [PATCH 03/10] Add test for 7-digit EG postcodes --- tests/Formatter/EGFormatterTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/Formatter/EGFormatterTest.php b/tests/Formatter/EGFormatterTest.php index bef7002..8fdb4ce 100644 --- a/tests/Formatter/EGFormatterTest.php +++ b/tests/Formatter/EGFormatterTest.php @@ -35,6 +35,8 @@ public function providerFormat() : array ['1234', null], ['12345', '12345'], ['123456', null], + ['1234567', '1234567'], + ['12345678', null], ['A', null], ['AB', null], From df15506844692d27cb62312aa922e29ccdf46687 Mon Sep 17 00:00:00 2001 From: Andreas Weswaldi <37552851+weswaldix@users.noreply.github.com> Date: Fri, 20 Sep 2024 00:35:19 +0200 Subject: [PATCH 04/10] Fix: Validate Austrian post codes to exclude invalid values starting with 0 (#15) Previously, postal codes such as '0000' or '0999' were considered valid, but in reality, Austrian postal codes always start with digits from 1 to 9. This update corrects the validation to ensure compliance with the Austrian postal code system (see: https://en.wikipedia.org/wiki/Postal_codes_in_Austria#System). --- src/Formatter/ATFormatter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Formatter/ATFormatter.php b/src/Formatter/ATFormatter.php index d010f47..80c199a 100644 --- a/src/Formatter/ATFormatter.php +++ b/src/Formatter/ATFormatter.php @@ -9,7 +9,7 @@ /** * Validates and formats postcodes in Austria. * - * Postcodes consist of 4 digits, without separator. + * Postcodes consist of 4 digits, without separator. The first digit must be 1-9. * * @see https://en.wikipedia.org/wiki/List_of_postal_codes * @see https://en.wikipedia.org/wiki/Postal_codes_in_Austria @@ -21,7 +21,7 @@ class ATFormatter implements CountryPostcodeFormatter */ public function format(string $postcode) : ?string { - if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { + if (preg_match('/^[1-9][0-9]{3}$/', $postcode) !== 1) { return null; } From 0f6f266fa4cfe9e314bab12bb6cd1612dba279c2 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Fri, 20 Sep 2024 00:43:43 +0200 Subject: [PATCH 05/10] Add test for leading zero in AT formatter --- tests/Formatter/ATFormatterTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Formatter/ATFormatterTest.php b/tests/Formatter/ATFormatterTest.php index fca5613..d75d562 100644 --- a/tests/Formatter/ATFormatterTest.php +++ b/tests/Formatter/ATFormatterTest.php @@ -32,6 +32,7 @@ public function providerFormat() : array ['1', null], ['12', null], ['123', null], + ['0123', null], ['1234', '1234'], ['12345', null], ['123456', null], From 8e6dea0f15f20cbbf4394e77b4e2e1826813b7d3 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Fri, 20 Sep 2024 01:05:59 +0200 Subject: [PATCH 06/10] Remove inheritdoc --- src/Formatter/ADFormatter.php | 3 --- src/Formatter/AFFormatter.php | 3 --- src/Formatter/AIFormatter.php | 3 --- src/Formatter/ALFormatter.php | 3 --- src/Formatter/AMFormatter.php | 3 --- src/Formatter/AQFormatter.php | 3 --- src/Formatter/ARFormatter.php | 3 --- src/Formatter/ASFormatter.php | 3 --- src/Formatter/ATFormatter.php | 3 --- src/Formatter/AUFormatter.php | 3 --- src/Formatter/AXFormatter.php | 3 --- src/Formatter/AZFormatter.php | 3 --- src/Formatter/BAFormatter.php | 3 --- src/Formatter/BBFormatter.php | 3 --- src/Formatter/BDFormatter.php | 3 --- src/Formatter/BEFormatter.php | 3 --- src/Formatter/BGFormatter.php | 3 --- src/Formatter/BHFormatter.php | 3 --- src/Formatter/BLFormatter.php | 3 --- src/Formatter/BMFormatter.php | 3 --- src/Formatter/BNFormatter.php | 3 --- src/Formatter/BRFormatter.php | 3 --- src/Formatter/BTFormatter.php | 3 --- src/Formatter/BYFormatter.php | 3 --- src/Formatter/CAFormatter.php | 3 --- src/Formatter/CCFormatter.php | 3 --- src/Formatter/CHFormatter.php | 3 --- src/Formatter/CLFormatter.php | 3 --- src/Formatter/CNFormatter.php | 3 --- src/Formatter/COFormatter.php | 4 ---- src/Formatter/CRFormatter.php | 3 --- src/Formatter/CUFormatter.php | 3 --- src/Formatter/CVFormatter.php | 3 --- src/Formatter/CXFormatter.php | 3 --- src/Formatter/CYFormatter.php | 3 --- src/Formatter/CZFormatter.php | 3 --- src/Formatter/DEFormatter.php | 3 --- src/Formatter/DKFormatter.php | 3 --- src/Formatter/DOFormatter.php | 3 --- src/Formatter/DZFormatter.php | 3 --- src/Formatter/ECFormatter.php | 3 --- src/Formatter/EEFormatter.php | 3 --- src/Formatter/EGFormatter.php | 3 --- src/Formatter/ESFormatter.php | 3 --- src/Formatter/ETFormatter.php | 3 --- src/Formatter/FIFormatter.php | 3 --- src/Formatter/FKFormatter.php | 3 --- src/Formatter/FMFormatter.php | 3 --- src/Formatter/FOFormatter.php | 3 --- src/Formatter/FRFormatter.php | 3 --- src/Formatter/GBFormatter.php | 3 --- src/Formatter/GEFormatter.php | 3 --- src/Formatter/GFFormatter.php | 3 --- src/Formatter/GGFormatter.php | 3 --- src/Formatter/GIFormatter.php | 3 --- src/Formatter/GLFormatter.php | 3 --- src/Formatter/GNFormatter.php | 3 --- src/Formatter/GPFormatter.php | 3 --- src/Formatter/GRFormatter.php | 3 --- src/Formatter/GSFormatter.php | 3 --- src/Formatter/GTFormatter.php | 3 --- src/Formatter/GUFormatter.php | 3 --- src/Formatter/GWFormatter.php | 3 --- src/Formatter/HNFormatter.php | 3 --- src/Formatter/HRFormatter.php | 3 --- src/Formatter/HTFormatter.php | 3 --- src/Formatter/HUFormatter.php | 3 --- src/Formatter/ICFormatter.php | 3 --- src/Formatter/IDFormatter.php | 3 --- src/Formatter/IEFormatter.php | 3 --- src/Formatter/ILFormatter.php | 3 --- src/Formatter/IMFormatter.php | 3 --- src/Formatter/INFormatter.php | 3 --- src/Formatter/IOFormatter.php | 3 --- src/Formatter/IQFormatter.php | 3 --- src/Formatter/IRFormatter.php | 3 --- src/Formatter/ISFormatter.php | 3 --- src/Formatter/ITFormatter.php | 3 --- src/Formatter/JEFormatter.php | 3 --- src/Formatter/JOFormatter.php | 3 --- src/Formatter/JPFormatter.php | 3 --- src/Formatter/KEFormatter.php | 3 --- src/Formatter/KGFormatter.php | 3 --- src/Formatter/KHFormatter.php | 3 --- src/Formatter/KRFormatter.php | 3 --- src/Formatter/KWFormatter.php | 3 --- src/Formatter/KYFormatter.php | 3 --- src/Formatter/KZFormatter.php | 3 --- src/Formatter/LAFormatter.php | 3 --- src/Formatter/LBFormatter.php | 3 --- src/Formatter/LCFormatter.php | 3 --- src/Formatter/LIFormatter.php | 3 --- src/Formatter/LKFormatter.php | 3 --- src/Formatter/LRFormatter.php | 3 --- src/Formatter/LSFormatter.php | 3 --- src/Formatter/LTFormatter.php | 3 --- src/Formatter/LUFormatter.php | 3 --- src/Formatter/LVFormatter.php | 3 --- src/Formatter/MAFormatter.php | 3 --- src/Formatter/MCFormatter.php | 3 --- src/Formatter/MDFormatter.php | 3 --- src/Formatter/MEFormatter.php | 3 --- src/Formatter/MFFormatter.php | 3 --- src/Formatter/MGFormatter.php | 3 --- src/Formatter/MHFormatter.php | 3 --- src/Formatter/MKFormatter.php | 3 --- src/Formatter/MMFormatter.php | 3 --- src/Formatter/MNFormatter.php | 3 --- src/Formatter/MPFormatter.php | 3 --- src/Formatter/MQFormatter.php | 3 --- src/Formatter/MSFormatter.php | 3 --- src/Formatter/MTFormatter.php | 3 --- src/Formatter/MUFormatter.php | 3 --- src/Formatter/MVFormatter.php | 3 --- src/Formatter/MXFormatter.php | 3 --- src/Formatter/MYFormatter.php | 3 --- src/Formatter/MZFormatter.php | 3 --- src/Formatter/NCFormatter.php | 3 --- src/Formatter/NEFormatter.php | 3 --- src/Formatter/NFFormatter.php | 3 --- src/Formatter/NGFormatter.php | 3 --- src/Formatter/NIFormatter.php | 3 --- src/Formatter/NLFormatter.php | 3 --- src/Formatter/NOFormatter.php | 3 --- src/Formatter/NPFormatter.php | 3 --- src/Formatter/NZFormatter.php | 3 --- src/Formatter/OMFormatter.php | 3 --- src/Formatter/PAFormatter.php | 3 --- src/Formatter/PEFormatter.php | 3 --- src/Formatter/PFFormatter.php | 3 --- src/Formatter/PGFormatter.php | 3 --- src/Formatter/PHFormatter.php | 3 --- src/Formatter/PKFormatter.php | 3 --- src/Formatter/PLFormatter.php | 3 --- src/Formatter/PMFormatter.php | 3 --- src/Formatter/PNFormatter.php | 3 --- src/Formatter/PRFormatter.php | 3 --- src/Formatter/PSFormatter.php | 3 --- src/Formatter/PTFormatter.php | 3 --- src/Formatter/PWFormatter.php | 3 --- src/Formatter/PYFormatter.php | 3 --- src/Formatter/REFormatter.php | 3 --- src/Formatter/ROFormatter.php | 3 --- src/Formatter/RSFormatter.php | 3 --- src/Formatter/RUFormatter.php | 3 --- src/Formatter/SAFormatter.php | 3 --- src/Formatter/SDFormatter.php | 3 --- src/Formatter/SEFormatter.php | 3 --- src/Formatter/SGFormatter.php | 3 --- src/Formatter/SHFormatter.php | 3 --- src/Formatter/SIFormatter.php | 3 --- src/Formatter/SJFormatter.php | 3 --- src/Formatter/SKFormatter.php | 3 --- src/Formatter/SMFormatter.php | 3 --- src/Formatter/SNFormatter.php | 3 --- src/Formatter/SVFormatter.php | 3 --- src/Formatter/SZFormatter.php | 3 --- src/Formatter/TCFormatter.php | 3 --- src/Formatter/TFFormatter.php | 3 --- src/Formatter/THFormatter.php | 3 --- src/Formatter/TJFormatter.php | 3 --- src/Formatter/TMFormatter.php | 3 --- src/Formatter/TNFormatter.php | 3 --- src/Formatter/TRFormatter.php | 3 --- src/Formatter/TTFormatter.php | 3 --- src/Formatter/TWFormatter.php | 3 --- src/Formatter/TZFormatter.php | 3 --- src/Formatter/UAFormatter.php | 3 --- src/Formatter/USFormatter.php | 3 --- src/Formatter/UYFormatter.php | 3 --- src/Formatter/UZFormatter.php | 3 --- src/Formatter/VAFormatter.php | 3 --- src/Formatter/VCFormatter.php | 3 --- src/Formatter/VEFormatter.php | 3 --- src/Formatter/VGFormatter.php | 3 --- src/Formatter/VIFormatter.php | 3 --- src/Formatter/VNFormatter.php | 3 --- src/Formatter/WFFormatter.php | 3 --- src/Formatter/WSFormatter.php | 3 --- src/Formatter/YTFormatter.php | 3 --- src/Formatter/ZAFormatter.php | 3 --- src/Formatter/ZMFormatter.php | 3 --- tests/Formatter/ADFormatterTest.php | 6 ------ tests/Formatter/AFFormatterTest.php | 6 ------ tests/Formatter/AIFormatterTest.php | 6 ------ tests/Formatter/ALFormatterTest.php | 6 ------ tests/Formatter/AMFormatterTest.php | 6 ------ tests/Formatter/AQFormatterTest.php | 6 ------ tests/Formatter/ARFormatterTest.php | 6 ------ tests/Formatter/ASFormatterTest.php | 6 ------ tests/Formatter/ATFormatterTest.php | 6 ------ tests/Formatter/AUFormatterTest.php | 6 ------ tests/Formatter/AXFormatterTest.php | 6 ------ tests/Formatter/AZFormatterTest.php | 6 ------ tests/Formatter/BAFormatterTest.php | 6 ------ tests/Formatter/BBFormatterTest.php | 6 ------ tests/Formatter/BDFormatterTest.php | 6 ------ tests/Formatter/BEFormatterTest.php | 6 ------ tests/Formatter/BGFormatterTest.php | 6 ------ tests/Formatter/BHFormatterTest.php | 6 ------ tests/Formatter/BLFormatterTest.php | 6 ------ tests/Formatter/BMFormatterTest.php | 6 ------ tests/Formatter/BNFormatterTest.php | 6 ------ tests/Formatter/BRFormatterTest.php | 6 ------ tests/Formatter/BTFormatterTest.php | 6 ------ tests/Formatter/BYFormatterTest.php | 6 ------ tests/Formatter/CAFormatterTest.php | 6 ------ tests/Formatter/CCFormatterTest.php | 6 ------ tests/Formatter/CHFormatterTest.php | 6 ------ tests/Formatter/CLFormatterTest.php | 6 ------ tests/Formatter/CNFormatterTest.php | 6 ------ tests/Formatter/COFormatterTest.php | 6 ------ tests/Formatter/CRFormatterTest.php | 6 ------ tests/Formatter/CUFormatterTest.php | 6 ------ tests/Formatter/CVFormatterTest.php | 6 ------ tests/Formatter/CXFormatterTest.php | 6 ------ tests/Formatter/CYFormatterTest.php | 6 ------ tests/Formatter/CZFormatterTest.php | 6 ------ tests/Formatter/DEFormatterTest.php | 6 ------ tests/Formatter/DKFormatterTest.php | 6 ------ tests/Formatter/DOFormatterTest.php | 6 ------ tests/Formatter/DZFormatterTest.php | 6 ------ tests/Formatter/ECFormatterTest.php | 6 ------ tests/Formatter/EEFormatterTest.php | 6 ------ tests/Formatter/EGFormatterTest.php | 6 ------ tests/Formatter/ESFormatterTest.php | 6 ------ tests/Formatter/ETFormatterTest.php | 6 ------ tests/Formatter/FIFormatterTest.php | 6 ------ tests/Formatter/FKFormatterTest.php | 6 ------ tests/Formatter/FMFormatterTest.php | 6 ------ tests/Formatter/FOFormatterTest.php | 6 ------ tests/Formatter/FRFormatterTest.php | 6 ------ tests/Formatter/GBFormatterTest.php | 6 ------ tests/Formatter/GEFormatterTest.php | 6 ------ tests/Formatter/GFFormatterTest.php | 6 ------ tests/Formatter/GGFormatterTest.php | 6 ------ tests/Formatter/GIFormatterTest.php | 6 ------ tests/Formatter/GLFormatterTest.php | 6 ------ tests/Formatter/GNFormatterTest.php | 6 ------ tests/Formatter/GPFormatterTest.php | 6 ------ tests/Formatter/GRFormatterTest.php | 6 ------ tests/Formatter/GSFormatterTest.php | 6 ------ tests/Formatter/GTFormatterTest.php | 6 ------ tests/Formatter/GUFormatterTest.php | 6 ------ tests/Formatter/GWFormatterTest.php | 6 ------ tests/Formatter/HNFormatterTest.php | 6 ------ tests/Formatter/HRFormatterTest.php | 6 ------ tests/Formatter/HTFormatterTest.php | 6 ------ tests/Formatter/HUFormatterTest.php | 6 ------ tests/Formatter/ICFormatterTest.php | 6 ------ tests/Formatter/IDFormatterTest.php | 6 ------ tests/Formatter/IEFormatterTest.php | 6 ------ tests/Formatter/ILFormatterTest.php | 6 ------ tests/Formatter/IMFormatterTest.php | 6 ------ tests/Formatter/INFormatterTest.php | 6 ------ tests/Formatter/IOFormatterTest.php | 6 ------ tests/Formatter/IQFormatterTest.php | 6 ------ tests/Formatter/IRFormatterTest.php | 6 ------ tests/Formatter/ISFormatterTest.php | 6 ------ tests/Formatter/ITFormatterTest.php | 6 ------ tests/Formatter/JEFormatterTest.php | 6 ------ tests/Formatter/JOFormatterTest.php | 6 ------ tests/Formatter/JPFormatterTest.php | 6 ------ tests/Formatter/KEFormatterTest.php | 6 ------ tests/Formatter/KGFormatterTest.php | 6 ------ tests/Formatter/KHFormatterTest.php | 6 ------ tests/Formatter/KRFormatterTest.php | 6 ------ tests/Formatter/KWFormatterTest.php | 6 ------ tests/Formatter/KYFormatterTest.php | 6 ------ tests/Formatter/KZFormatterTest.php | 6 ------ tests/Formatter/LAFormatterTest.php | 6 ------ tests/Formatter/LBFormatterTest.php | 6 ------ tests/Formatter/LCFormatterTest.php | 6 ------ tests/Formatter/LIFormatterTest.php | 6 ------ tests/Formatter/LKFormatterTest.php | 6 ------ tests/Formatter/LRFormatterTest.php | 6 ------ tests/Formatter/LSFormatterTest.php | 6 ------ tests/Formatter/LTFormatterTest.php | 6 ------ tests/Formatter/LUFormatterTest.php | 6 ------ tests/Formatter/LVFormatterTest.php | 6 ------ tests/Formatter/MAFormatterTest.php | 6 ------ tests/Formatter/MCFormatterTest.php | 6 ------ tests/Formatter/MDFormatterTest.php | 6 ------ tests/Formatter/MEFormatterTest.php | 6 ------ tests/Formatter/MFFormatterTest.php | 6 ------ tests/Formatter/MGFormatterTest.php | 6 ------ tests/Formatter/MHFormatterTest.php | 6 ------ tests/Formatter/MKFormatterTest.php | 6 ------ tests/Formatter/MMFormatterTest.php | 6 ------ tests/Formatter/MNFormatterTest.php | 6 ------ tests/Formatter/MPFormatterTest.php | 6 ------ tests/Formatter/MQFormatterTest.php | 6 ------ tests/Formatter/MSFormatterTest.php | 6 ------ tests/Formatter/MTFormatterTest.php | 6 ------ tests/Formatter/MUFormatterTest.php | 6 ------ tests/Formatter/MVFormatterTest.php | 6 ------ tests/Formatter/MXFormatterTest.php | 6 ------ tests/Formatter/MYFormatterTest.php | 6 ------ tests/Formatter/MZFormatterTest.php | 6 ------ tests/Formatter/NCFormatterTest.php | 6 ------ tests/Formatter/NEFormatterTest.php | 6 ------ tests/Formatter/NFFormatterTest.php | 6 ------ tests/Formatter/NGFormatterTest.php | 6 ------ tests/Formatter/NIFormatterTest.php | 6 ------ tests/Formatter/NLFormatterTest.php | 6 ------ tests/Formatter/NOFormatterTest.php | 6 ------ tests/Formatter/NPFormatterTest.php | 6 ------ tests/Formatter/NZFormatterTest.php | 6 ------ tests/Formatter/OMFormatterTest.php | 6 ------ tests/Formatter/PAFormatterTest.php | 6 ------ tests/Formatter/PEFormatterTest.php | 6 ------ tests/Formatter/PFFormatterTest.php | 6 ------ tests/Formatter/PGFormatterTest.php | 6 ------ tests/Formatter/PHFormatterTest.php | 6 ------ tests/Formatter/PKFormatterTest.php | 6 ------ tests/Formatter/PLFormatterTest.php | 6 ------ tests/Formatter/PMFormatterTest.php | 6 ------ tests/Formatter/PNFormatterTest.php | 6 ------ tests/Formatter/PRFormatterTest.php | 6 ------ tests/Formatter/PSFormatterTest.php | 6 ------ tests/Formatter/PTFormatterTest.php | 6 ------ tests/Formatter/PWFormatterTest.php | 6 ------ tests/Formatter/PYFormatterTest.php | 6 ------ tests/Formatter/REFormatterTest.php | 6 ------ tests/Formatter/ROFormatterTest.php | 6 ------ tests/Formatter/RSFormatterTest.php | 6 ------ tests/Formatter/RUFormatterTest.php | 6 ------ tests/Formatter/SAFormatterTest.php | 6 ------ tests/Formatter/SDFormatterTest.php | 6 ------ tests/Formatter/SEFormatterTest.php | 6 ------ tests/Formatter/SGFormatterTest.php | 6 ------ tests/Formatter/SHFormatterTest.php | 6 ------ tests/Formatter/SIFormatterTest.php | 6 ------ tests/Formatter/SJFormatterTest.php | 6 ------ tests/Formatter/SKFormatterTest.php | 6 ------ tests/Formatter/SMFormatterTest.php | 6 ------ tests/Formatter/SNFormatterTest.php | 6 ------ tests/Formatter/SVFormatterTest.php | 6 ------ tests/Formatter/SZFormatterTest.php | 6 ------ tests/Formatter/TCFormatterTest.php | 6 ------ tests/Formatter/TFFormatterTest.php | 6 ------ tests/Formatter/THFormatterTest.php | 6 ------ tests/Formatter/TJFormatterTest.php | 6 ------ tests/Formatter/TMFormatterTest.php | 6 ------ tests/Formatter/TNFormatterTest.php | 6 ------ tests/Formatter/TRFormatterTest.php | 6 ------ tests/Formatter/TTFormatterTest.php | 6 ------ tests/Formatter/TWFormatterTest.php | 6 ------ tests/Formatter/TZFormatterTest.php | 6 ------ tests/Formatter/UAFormatterTest.php | 6 ------ tests/Formatter/USFormatterTest.php | 6 ------ tests/Formatter/UYFormatterTest.php | 6 ------ tests/Formatter/UZFormatterTest.php | 6 ------ tests/Formatter/VAFormatterTest.php | 6 ------ tests/Formatter/VCFormatterTest.php | 6 ------ tests/Formatter/VEFormatterTest.php | 6 ------ tests/Formatter/VGFormatterTest.php | 6 ------ tests/Formatter/VIFormatterTest.php | 6 ------ tests/Formatter/VNFormatterTest.php | 6 ------ tests/Formatter/WFFormatterTest.php | 6 ------ tests/Formatter/WSFormatterTest.php | 6 ------ tests/Formatter/YTFormatterTest.php | 6 ------ tests/Formatter/ZAFormatterTest.php | 6 ------ tests/Formatter/ZMFormatterTest.php | 6 ------ 364 files changed, 1639 deletions(-) diff --git a/src/Formatter/ADFormatter.php b/src/Formatter/ADFormatter.php index 0e0bfaf..1ba04ca 100644 --- a/src/Formatter/ADFormatter.php +++ b/src/Formatter/ADFormatter.php @@ -17,9 +17,6 @@ */ class ADFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'AD') { diff --git a/src/Formatter/AFFormatter.php b/src/Formatter/AFFormatter.php index e3aeeb0..9881860 100644 --- a/src/Formatter/AFFormatter.php +++ b/src/Formatter/AFFormatter.php @@ -20,9 +20,6 @@ */ class AFFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/AIFormatter.php b/src/Formatter/AIFormatter.php index 1d8818d..0d094f4 100644 --- a/src/Formatter/AIFormatter.php +++ b/src/Formatter/AIFormatter.php @@ -16,9 +16,6 @@ */ class AIFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === '2640' || $postcode === 'AI2640') { diff --git a/src/Formatter/ALFormatter.php b/src/Formatter/ALFormatter.php index b3964f1..43d3304 100644 --- a/src/Formatter/ALFormatter.php +++ b/src/Formatter/ALFormatter.php @@ -16,9 +16,6 @@ */ class ALFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/AMFormatter.php b/src/Formatter/AMFormatter.php index 285ec6d..2605e92 100644 --- a/src/Formatter/AMFormatter.php +++ b/src/Formatter/AMFormatter.php @@ -16,9 +16,6 @@ */ class AMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/AQFormatter.php b/src/Formatter/AQFormatter.php index 0efa06c..5104f83 100644 --- a/src/Formatter/AQFormatter.php +++ b/src/Formatter/AQFormatter.php @@ -15,9 +15,6 @@ */ class AQFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'BIQQ1ZZ') { diff --git a/src/Formatter/ARFormatter.php b/src/Formatter/ARFormatter.php index 17567f2..7edffb7 100644 --- a/src/Formatter/ARFormatter.php +++ b/src/Formatter/ARFormatter.php @@ -16,9 +16,6 @@ */ class ARFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^(([0-9]{4})|([A-Z][0-9]{4}[A-Z]{3}))$/', $postcode) !== 1) { diff --git a/src/Formatter/ASFormatter.php b/src/Formatter/ASFormatter.php index 138b35e..5f182f5 100644 --- a/src/Formatter/ASFormatter.php +++ b/src/Formatter/ASFormatter.php @@ -17,9 +17,6 @@ */ class ASFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { $length = strlen($postcode); diff --git a/src/Formatter/ATFormatter.php b/src/Formatter/ATFormatter.php index 80c199a..1ab422c 100644 --- a/src/Formatter/ATFormatter.php +++ b/src/Formatter/ATFormatter.php @@ -16,9 +16,6 @@ */ class ATFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[1-9][0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/AUFormatter.php b/src/Formatter/AUFormatter.php index 11291ee..bde4eaf 100644 --- a/src/Formatter/AUFormatter.php +++ b/src/Formatter/AUFormatter.php @@ -16,9 +16,6 @@ */ class AUFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/AXFormatter.php b/src/Formatter/AXFormatter.php index fc723c0..043a9b4 100644 --- a/src/Formatter/AXFormatter.php +++ b/src/Formatter/AXFormatter.php @@ -17,9 +17,6 @@ */ class AXFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { $length = strlen($postcode); diff --git a/src/Formatter/AZFormatter.php b/src/Formatter/AZFormatter.php index f65f7db..2ef7076 100644 --- a/src/Formatter/AZFormatter.php +++ b/src/Formatter/AZFormatter.php @@ -17,9 +17,6 @@ */ class AZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'AZ') { diff --git a/src/Formatter/BAFormatter.php b/src/Formatter/BAFormatter.php index f67a43c..0a9fd9d 100644 --- a/src/Formatter/BAFormatter.php +++ b/src/Formatter/BAFormatter.php @@ -15,9 +15,6 @@ */ class BAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/BBFormatter.php b/src/Formatter/BBFormatter.php index e7b2fbc..0192967 100644 --- a/src/Formatter/BBFormatter.php +++ b/src/Formatter/BBFormatter.php @@ -17,9 +17,6 @@ */ class BBFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'BB') { diff --git a/src/Formatter/BDFormatter.php b/src/Formatter/BDFormatter.php index cee4633..c0f419f 100644 --- a/src/Formatter/BDFormatter.php +++ b/src/Formatter/BDFormatter.php @@ -16,9 +16,6 @@ */ class BDFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/BEFormatter.php b/src/Formatter/BEFormatter.php index d7323d1..df200e4 100644 --- a/src/Formatter/BEFormatter.php +++ b/src/Formatter/BEFormatter.php @@ -16,9 +16,6 @@ */ class BEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/BGFormatter.php b/src/Formatter/BGFormatter.php index a87fbe5..747501b 100644 --- a/src/Formatter/BGFormatter.php +++ b/src/Formatter/BGFormatter.php @@ -16,9 +16,6 @@ */ class BGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/BHFormatter.php b/src/Formatter/BHFormatter.php index e7b8db7..d4331b4 100644 --- a/src/Formatter/BHFormatter.php +++ b/src/Formatter/BHFormatter.php @@ -16,9 +16,6 @@ */ class BHFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^(1?[0-9])([0-9]{2})$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/BLFormatter.php b/src/Formatter/BLFormatter.php index f0cff1e..1c7c600 100644 --- a/src/Formatter/BLFormatter.php +++ b/src/Formatter/BLFormatter.php @@ -15,9 +15,6 @@ */ class BLFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === '97133') { diff --git a/src/Formatter/BMFormatter.php b/src/Formatter/BMFormatter.php index 200d684..e38243f 100644 --- a/src/Formatter/BMFormatter.php +++ b/src/Formatter/BMFormatter.php @@ -16,9 +16,6 @@ */ class BMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^([A-Z]{2})([A-Z]{2}|[0-9]{2})$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/BNFormatter.php b/src/Formatter/BNFormatter.php index 5dc4892..d049752 100644 --- a/src/Formatter/BNFormatter.php +++ b/src/Formatter/BNFormatter.php @@ -16,9 +16,6 @@ */ class BNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[A-Z]{2}[0-9]{4}$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/BRFormatter.php b/src/Formatter/BRFormatter.php index e25922e..4135ef0 100644 --- a/src/Formatter/BRFormatter.php +++ b/src/Formatter/BRFormatter.php @@ -17,9 +17,6 @@ */ class BRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{8}$/', $postcode) !== 1) { diff --git a/src/Formatter/BTFormatter.php b/src/Formatter/BTFormatter.php index 41f153e..118c425 100644 --- a/src/Formatter/BTFormatter.php +++ b/src/Formatter/BTFormatter.php @@ -15,9 +15,6 @@ */ class BTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/BYFormatter.php b/src/Formatter/BYFormatter.php index 1cedb5e..9cd283b 100644 --- a/src/Formatter/BYFormatter.php +++ b/src/Formatter/BYFormatter.php @@ -15,9 +15,6 @@ */ class BYFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/CAFormatter.php b/src/Formatter/CAFormatter.php index 48c99bb..a3b0919 100644 --- a/src/Formatter/CAFormatter.php +++ b/src/Formatter/CAFormatter.php @@ -18,9 +18,6 @@ */ class CAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^([ABCEGHJ-NPRSTV-Z][0-9]){3}$/', $postcode) !== 1) { diff --git a/src/Formatter/CCFormatter.php b/src/Formatter/CCFormatter.php index fb6ba06..56f318a 100644 --- a/src/Formatter/CCFormatter.php +++ b/src/Formatter/CCFormatter.php @@ -15,9 +15,6 @@ */ class CCFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/CHFormatter.php b/src/Formatter/CHFormatter.php index 618a72d..6f135f4 100644 --- a/src/Formatter/CHFormatter.php +++ b/src/Formatter/CHFormatter.php @@ -16,9 +16,6 @@ */ class CHFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/CLFormatter.php b/src/Formatter/CLFormatter.php index 325ee96..8c2f551 100644 --- a/src/Formatter/CLFormatter.php +++ b/src/Formatter/CLFormatter.php @@ -17,9 +17,6 @@ */ class CLFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{7}$/', $postcode) !== 1) { diff --git a/src/Formatter/CNFormatter.php b/src/Formatter/CNFormatter.php index 57f7be8..6c61081 100644 --- a/src/Formatter/CNFormatter.php +++ b/src/Formatter/CNFormatter.php @@ -17,9 +17,6 @@ */ class CNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/COFormatter.php b/src/Formatter/COFormatter.php index 689a76a..f848be6 100644 --- a/src/Formatter/COFormatter.php +++ b/src/Formatter/COFormatter.php @@ -29,16 +29,12 @@ class COFormatter implements CountryPostcodeFormatter '99' ]; - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^\d{2}(?!0000)\d{4}$/', $postcode) !== 1) { return null; } - $department = substr($postcode, 0, 2); if (!in_array($department, self::DEPARTMENTS, true)) { diff --git a/src/Formatter/CRFormatter.php b/src/Formatter/CRFormatter.php index d10f4c1..84e0490 100644 --- a/src/Formatter/CRFormatter.php +++ b/src/Formatter/CRFormatter.php @@ -17,9 +17,6 @@ */ class CRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/CUFormatter.php b/src/Formatter/CUFormatter.php index c310d3c..5bb3884 100644 --- a/src/Formatter/CUFormatter.php +++ b/src/Formatter/CUFormatter.php @@ -15,9 +15,6 @@ */ class CUFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/CVFormatter.php b/src/Formatter/CVFormatter.php index 68f7249..a0400ed 100644 --- a/src/Formatter/CVFormatter.php +++ b/src/Formatter/CVFormatter.php @@ -15,9 +15,6 @@ */ class CVFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/CXFormatter.php b/src/Formatter/CXFormatter.php index 04f263b..1bd6c06 100644 --- a/src/Formatter/CXFormatter.php +++ b/src/Formatter/CXFormatter.php @@ -15,9 +15,6 @@ */ class CXFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/CYFormatter.php b/src/Formatter/CYFormatter.php index 805471c..b54436a 100644 --- a/src/Formatter/CYFormatter.php +++ b/src/Formatter/CYFormatter.php @@ -18,9 +18,6 @@ */ class CYFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/CZFormatter.php b/src/Formatter/CZFormatter.php index 794bd68..69495cc 100644 --- a/src/Formatter/CZFormatter.php +++ b/src/Formatter/CZFormatter.php @@ -21,9 +21,6 @@ */ class CZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/DEFormatter.php b/src/Formatter/DEFormatter.php index 33ad1bd..42c40f0 100644 --- a/src/Formatter/DEFormatter.php +++ b/src/Formatter/DEFormatter.php @@ -16,9 +16,6 @@ */ class DEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/DKFormatter.php b/src/Formatter/DKFormatter.php index 26745d2..f3c000a 100644 --- a/src/Formatter/DKFormatter.php +++ b/src/Formatter/DKFormatter.php @@ -16,9 +16,6 @@ */ class DKFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/DOFormatter.php b/src/Formatter/DOFormatter.php index 30c38f2..f978824 100644 --- a/src/Formatter/DOFormatter.php +++ b/src/Formatter/DOFormatter.php @@ -15,9 +15,6 @@ */ class DOFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/DZFormatter.php b/src/Formatter/DZFormatter.php index 4ff0795..1c0e2b9 100644 --- a/src/Formatter/DZFormatter.php +++ b/src/Formatter/DZFormatter.php @@ -16,9 +16,6 @@ */ class DZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/ECFormatter.php b/src/Formatter/ECFormatter.php index 6c7252d..e3010f9 100644 --- a/src/Formatter/ECFormatter.php +++ b/src/Formatter/ECFormatter.php @@ -16,9 +16,6 @@ */ class ECFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/EEFormatter.php b/src/Formatter/EEFormatter.php index d65623c..a11decd 100644 --- a/src/Formatter/EEFormatter.php +++ b/src/Formatter/EEFormatter.php @@ -15,9 +15,6 @@ */ class EEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/EGFormatter.php b/src/Formatter/EGFormatter.php index afecae8..89f8c7b 100644 --- a/src/Formatter/EGFormatter.php +++ b/src/Formatter/EGFormatter.php @@ -17,9 +17,6 @@ */ class EGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^\d{5}(\d{2})?$/', $postcode) !== 1) { diff --git a/src/Formatter/ESFormatter.php b/src/Formatter/ESFormatter.php index 3d4f078..2aaf79c 100644 --- a/src/Formatter/ESFormatter.php +++ b/src/Formatter/ESFormatter.php @@ -16,9 +16,6 @@ */ class ESFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/ETFormatter.php b/src/Formatter/ETFormatter.php index a39124b..6ded4ab 100644 --- a/src/Formatter/ETFormatter.php +++ b/src/Formatter/ETFormatter.php @@ -16,9 +16,6 @@ */ class ETFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/FIFormatter.php b/src/Formatter/FIFormatter.php index 6012ded..6bbaecd 100644 --- a/src/Formatter/FIFormatter.php +++ b/src/Formatter/FIFormatter.php @@ -16,9 +16,6 @@ */ class FIFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/FKFormatter.php b/src/Formatter/FKFormatter.php index 5c1f056..d845ee3 100644 --- a/src/Formatter/FKFormatter.php +++ b/src/Formatter/FKFormatter.php @@ -15,9 +15,6 @@ */ class FKFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'FIQQ1ZZ') { diff --git a/src/Formatter/FMFormatter.php b/src/Formatter/FMFormatter.php index 30d94ae..fcf9508 100644 --- a/src/Formatter/FMFormatter.php +++ b/src/Formatter/FMFormatter.php @@ -15,9 +15,6 @@ */ class FMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/FOFormatter.php b/src/Formatter/FOFormatter.php index 9b8bc95..0ab69af 100644 --- a/src/Formatter/FOFormatter.php +++ b/src/Formatter/FOFormatter.php @@ -15,9 +15,6 @@ */ class FOFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/FRFormatter.php b/src/Formatter/FRFormatter.php index f35db3e..36f8313 100644 --- a/src/Formatter/FRFormatter.php +++ b/src/Formatter/FRFormatter.php @@ -15,9 +15,6 @@ */ class FRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/GBFormatter.php b/src/Formatter/GBFormatter.php index 17e3182..148a446 100644 --- a/src/Formatter/GBFormatter.php +++ b/src/Formatter/GBFormatter.php @@ -53,9 +53,6 @@ class GBFormatter implements CountryPostcodeFormatter */ private $patterns = null; - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { // special case diff --git a/src/Formatter/GEFormatter.php b/src/Formatter/GEFormatter.php index 7bdd5c5..5c7c34b 100644 --- a/src/Formatter/GEFormatter.php +++ b/src/Formatter/GEFormatter.php @@ -15,9 +15,6 @@ */ class GEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/GFFormatter.php b/src/Formatter/GFFormatter.php index c2cadb6..c9cf269 100644 --- a/src/Formatter/GFFormatter.php +++ b/src/Formatter/GFFormatter.php @@ -15,9 +15,6 @@ */ class GFFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/GGFormatter.php b/src/Formatter/GGFormatter.php index 22825ed..acb8573 100644 --- a/src/Formatter/GGFormatter.php +++ b/src/Formatter/GGFormatter.php @@ -22,9 +22,6 @@ */ class GGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^(GY[0-9]{1,2})([0-9][A-Z][A-Z])$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/GIFormatter.php b/src/Formatter/GIFormatter.php index 56aa7d4..ccebf7b 100644 --- a/src/Formatter/GIFormatter.php +++ b/src/Formatter/GIFormatter.php @@ -16,9 +16,6 @@ */ class GIFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'GX111AA') { diff --git a/src/Formatter/GLFormatter.php b/src/Formatter/GLFormatter.php index 23fb0e4..d97a6e5 100644 --- a/src/Formatter/GLFormatter.php +++ b/src/Formatter/GLFormatter.php @@ -15,9 +15,6 @@ */ class GLFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/GNFormatter.php b/src/Formatter/GNFormatter.php index 9f2a5cd..c7edd63 100644 --- a/src/Formatter/GNFormatter.php +++ b/src/Formatter/GNFormatter.php @@ -15,9 +15,6 @@ */ class GNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/GPFormatter.php b/src/Formatter/GPFormatter.php index c5ad4cd..a9e6872 100644 --- a/src/Formatter/GPFormatter.php +++ b/src/Formatter/GPFormatter.php @@ -15,9 +15,6 @@ */ class GPFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^971[0-9]{2}$/', $postcode) !== 1) { diff --git a/src/Formatter/GRFormatter.php b/src/Formatter/GRFormatter.php index 8104faf..7a88497 100644 --- a/src/Formatter/GRFormatter.php +++ b/src/Formatter/GRFormatter.php @@ -16,9 +16,6 @@ */ class GRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/GSFormatter.php b/src/Formatter/GSFormatter.php index 6f2c4fc..c5b0a73 100644 --- a/src/Formatter/GSFormatter.php +++ b/src/Formatter/GSFormatter.php @@ -15,9 +15,6 @@ */ class GSFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'SIQQ1ZZ') { diff --git a/src/Formatter/GTFormatter.php b/src/Formatter/GTFormatter.php index 577fc9e..0e9b3bb 100644 --- a/src/Formatter/GTFormatter.php +++ b/src/Formatter/GTFormatter.php @@ -16,9 +16,6 @@ */ class GTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/GUFormatter.php b/src/Formatter/GUFormatter.php index 2d9d684..5c4d24f 100644 --- a/src/Formatter/GUFormatter.php +++ b/src/Formatter/GUFormatter.php @@ -15,9 +15,6 @@ */ class GUFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/GWFormatter.php b/src/Formatter/GWFormatter.php index b1f8e14..ba0b3cd 100644 --- a/src/Formatter/GWFormatter.php +++ b/src/Formatter/GWFormatter.php @@ -15,9 +15,6 @@ */ class GWFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/HNFormatter.php b/src/Formatter/HNFormatter.php index 3715862..2a668f7 100644 --- a/src/Formatter/HNFormatter.php +++ b/src/Formatter/HNFormatter.php @@ -15,9 +15,6 @@ */ class HNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/HRFormatter.php b/src/Formatter/HRFormatter.php index e95fe42..bfc605b 100644 --- a/src/Formatter/HRFormatter.php +++ b/src/Formatter/HRFormatter.php @@ -16,9 +16,6 @@ */ class HRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/HTFormatter.php b/src/Formatter/HTFormatter.php index a0ab04e..cab5d2f 100644 --- a/src/Formatter/HTFormatter.php +++ b/src/Formatter/HTFormatter.php @@ -15,9 +15,6 @@ */ class HTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/HUFormatter.php b/src/Formatter/HUFormatter.php index ff38e25..160c963 100644 --- a/src/Formatter/HUFormatter.php +++ b/src/Formatter/HUFormatter.php @@ -16,9 +16,6 @@ */ class HUFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/ICFormatter.php b/src/Formatter/ICFormatter.php index d8fddab..23f0e39 100644 --- a/src/Formatter/ICFormatter.php +++ b/src/Formatter/ICFormatter.php @@ -18,9 +18,6 @@ */ class ICFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^(35|38)[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/IDFormatter.php b/src/Formatter/IDFormatter.php index b843171..20f9620 100644 --- a/src/Formatter/IDFormatter.php +++ b/src/Formatter/IDFormatter.php @@ -16,9 +16,6 @@ */ class IDFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/IEFormatter.php b/src/Formatter/IEFormatter.php index 4a65865..3d5ae8e 100644 --- a/src/Formatter/IEFormatter.php +++ b/src/Formatter/IEFormatter.php @@ -52,9 +52,6 @@ class IEFormatter implements CountryPostcodeFormatter . '([ACDEFHKNPRTVWXY0-9]{4})' . '$/'; - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match(self::PATTERN, $postcode, $matches) !== 1) { diff --git a/src/Formatter/ILFormatter.php b/src/Formatter/ILFormatter.php index c7759c5..deef5c1 100644 --- a/src/Formatter/ILFormatter.php +++ b/src/Formatter/ILFormatter.php @@ -17,9 +17,6 @@ */ class ILFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{7}$/', $postcode) !== 1) { diff --git a/src/Formatter/IMFormatter.php b/src/Formatter/IMFormatter.php index a29632b..50a6426 100644 --- a/src/Formatter/IMFormatter.php +++ b/src/Formatter/IMFormatter.php @@ -30,9 +30,6 @@ class IMFormatter implements CountryPostcodeFormatter . '([0-9][A-Z][A-Z])' . '$/'; - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match(self::PATTERN, $postcode, $matches) !== 1) { diff --git a/src/Formatter/INFormatter.php b/src/Formatter/INFormatter.php index 6e36e62..069f66d 100644 --- a/src/Formatter/INFormatter.php +++ b/src/Formatter/INFormatter.php @@ -16,9 +16,6 @@ */ class INFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/IOFormatter.php b/src/Formatter/IOFormatter.php index d4d0d60..c8d6ae0 100644 --- a/src/Formatter/IOFormatter.php +++ b/src/Formatter/IOFormatter.php @@ -15,9 +15,6 @@ */ class IOFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'BBND1ZZ') { diff --git a/src/Formatter/IQFormatter.php b/src/Formatter/IQFormatter.php index cbf1c8e..ac6684e 100644 --- a/src/Formatter/IQFormatter.php +++ b/src/Formatter/IQFormatter.php @@ -16,9 +16,6 @@ */ class IQFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/IRFormatter.php b/src/Formatter/IRFormatter.php index 71b64be..48a64f0 100644 --- a/src/Formatter/IRFormatter.php +++ b/src/Formatter/IRFormatter.php @@ -15,9 +15,6 @@ */ class IRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{10}$/', $postcode) !== 1) { diff --git a/src/Formatter/ISFormatter.php b/src/Formatter/ISFormatter.php index 4f0f2a8..9ba20ee 100644 --- a/src/Formatter/ISFormatter.php +++ b/src/Formatter/ISFormatter.php @@ -16,9 +16,6 @@ */ class ISFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/ITFormatter.php b/src/Formatter/ITFormatter.php index de62f57..02baf99 100644 --- a/src/Formatter/ITFormatter.php +++ b/src/Formatter/ITFormatter.php @@ -16,9 +16,6 @@ */ class ITFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/JEFormatter.php b/src/Formatter/JEFormatter.php index 488477c..1ea1a57 100644 --- a/src/Formatter/JEFormatter.php +++ b/src/Formatter/JEFormatter.php @@ -30,9 +30,6 @@ class JEFormatter implements CountryPostcodeFormatter . '([0-9][A-Z][A-Z])' . '$/'; - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match(self::PATTERN, $postcode, $matches) !== 1) { diff --git a/src/Formatter/JOFormatter.php b/src/Formatter/JOFormatter.php index f88aa54..4150573 100644 --- a/src/Formatter/JOFormatter.php +++ b/src/Formatter/JOFormatter.php @@ -16,9 +16,6 @@ */ class JOFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/JPFormatter.php b/src/Formatter/JPFormatter.php index 4c3203a..0b48210 100644 --- a/src/Formatter/JPFormatter.php +++ b/src/Formatter/JPFormatter.php @@ -16,9 +16,6 @@ */ class JPFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{7}$/', $postcode) !== 1) { diff --git a/src/Formatter/KEFormatter.php b/src/Formatter/KEFormatter.php index f7dd87d..4f7174f 100644 --- a/src/Formatter/KEFormatter.php +++ b/src/Formatter/KEFormatter.php @@ -15,9 +15,6 @@ */ class KEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/KGFormatter.php b/src/Formatter/KGFormatter.php index 7fc6779..d9c669e 100644 --- a/src/Formatter/KGFormatter.php +++ b/src/Formatter/KGFormatter.php @@ -15,9 +15,6 @@ */ class KGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/KHFormatter.php b/src/Formatter/KHFormatter.php index 0ca5c1d..d9f0a94 100644 --- a/src/Formatter/KHFormatter.php +++ b/src/Formatter/KHFormatter.php @@ -15,9 +15,6 @@ */ class KHFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/KRFormatter.php b/src/Formatter/KRFormatter.php index 5c457a4..8e3b648 100644 --- a/src/Formatter/KRFormatter.php +++ b/src/Formatter/KRFormatter.php @@ -16,9 +16,6 @@ */ class KRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/KWFormatter.php b/src/Formatter/KWFormatter.php index 61ca8cb..701c14e 100644 --- a/src/Formatter/KWFormatter.php +++ b/src/Formatter/KWFormatter.php @@ -15,9 +15,6 @@ */ class KWFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/KYFormatter.php b/src/Formatter/KYFormatter.php index 454bb2f..93246ad 100644 --- a/src/Formatter/KYFormatter.php +++ b/src/Formatter/KYFormatter.php @@ -16,9 +16,6 @@ */ class KYFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) !== 'KY') { diff --git a/src/Formatter/KZFormatter.php b/src/Formatter/KZFormatter.php index dfefe5d..71733ad 100644 --- a/src/Formatter/KZFormatter.php +++ b/src/Formatter/KZFormatter.php @@ -15,9 +15,6 @@ */ class KZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/LAFormatter.php b/src/Formatter/LAFormatter.php index 5fa6180..b5963b8 100644 --- a/src/Formatter/LAFormatter.php +++ b/src/Formatter/LAFormatter.php @@ -15,9 +15,6 @@ */ class LAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/LBFormatter.php b/src/Formatter/LBFormatter.php index e2512cf..53d75d9 100644 --- a/src/Formatter/LBFormatter.php +++ b/src/Formatter/LBFormatter.php @@ -15,9 +15,6 @@ */ class LBFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{8}$/', $postcode) !== 1) { diff --git a/src/Formatter/LCFormatter.php b/src/Formatter/LCFormatter.php index eed8301..a46c4d6 100644 --- a/src/Formatter/LCFormatter.php +++ b/src/Formatter/LCFormatter.php @@ -15,9 +15,6 @@ */ class LCFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^(LC[0-9]{2})([0-9]{3})$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/LIFormatter.php b/src/Formatter/LIFormatter.php index bb76622..a136b13 100644 --- a/src/Formatter/LIFormatter.php +++ b/src/Formatter/LIFormatter.php @@ -16,9 +16,6 @@ */ class LIFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/LKFormatter.php b/src/Formatter/LKFormatter.php index 340f738..f2d57e2 100644 --- a/src/Formatter/LKFormatter.php +++ b/src/Formatter/LKFormatter.php @@ -16,9 +16,6 @@ */ class LKFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/LRFormatter.php b/src/Formatter/LRFormatter.php index d4309b1..989f6b6 100644 --- a/src/Formatter/LRFormatter.php +++ b/src/Formatter/LRFormatter.php @@ -15,9 +15,6 @@ */ class LRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/LSFormatter.php b/src/Formatter/LSFormatter.php index 08e68b4..85efc7f 100644 --- a/src/Formatter/LSFormatter.php +++ b/src/Formatter/LSFormatter.php @@ -15,9 +15,6 @@ */ class LSFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/LTFormatter.php b/src/Formatter/LTFormatter.php index 0f4ed2a..1b3ce96 100644 --- a/src/Formatter/LTFormatter.php +++ b/src/Formatter/LTFormatter.php @@ -20,9 +20,6 @@ */ class LTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { $length = strlen($postcode); diff --git a/src/Formatter/LUFormatter.php b/src/Formatter/LUFormatter.php index 9b1429d..bdea984 100644 --- a/src/Formatter/LUFormatter.php +++ b/src/Formatter/LUFormatter.php @@ -16,9 +16,6 @@ */ class LUFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/LVFormatter.php b/src/Formatter/LVFormatter.php index d5bd3d2..8cd7d6c 100644 --- a/src/Formatter/LVFormatter.php +++ b/src/Formatter/LVFormatter.php @@ -19,9 +19,6 @@ */ class LVFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'LV') { diff --git a/src/Formatter/MAFormatter.php b/src/Formatter/MAFormatter.php index 2789834..3cd188d 100644 --- a/src/Formatter/MAFormatter.php +++ b/src/Formatter/MAFormatter.php @@ -16,9 +16,6 @@ */ class MAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MCFormatter.php b/src/Formatter/MCFormatter.php index 21943c3..43150b0 100644 --- a/src/Formatter/MCFormatter.php +++ b/src/Formatter/MCFormatter.php @@ -20,9 +20,6 @@ */ class MCFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MDFormatter.php b/src/Formatter/MDFormatter.php index 5edacbe..af46884 100644 --- a/src/Formatter/MDFormatter.php +++ b/src/Formatter/MDFormatter.php @@ -18,9 +18,6 @@ */ class MDFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'MD') { diff --git a/src/Formatter/MEFormatter.php b/src/Formatter/MEFormatter.php index 55428be..0dc9d4f 100644 --- a/src/Formatter/MEFormatter.php +++ b/src/Formatter/MEFormatter.php @@ -16,9 +16,6 @@ */ class MEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MFFormatter.php b/src/Formatter/MFFormatter.php index 2251a5c..7c86a72 100644 --- a/src/Formatter/MFFormatter.php +++ b/src/Formatter/MFFormatter.php @@ -15,9 +15,6 @@ */ class MFFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === '97150') { diff --git a/src/Formatter/MGFormatter.php b/src/Formatter/MGFormatter.php index 768f723..410f1a7 100644 --- a/src/Formatter/MGFormatter.php +++ b/src/Formatter/MGFormatter.php @@ -15,9 +15,6 @@ */ class MGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/MHFormatter.php b/src/Formatter/MHFormatter.php index b57f4e5..bedd590 100644 --- a/src/Formatter/MHFormatter.php +++ b/src/Formatter/MHFormatter.php @@ -15,9 +15,6 @@ */ class MHFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/MKFormatter.php b/src/Formatter/MKFormatter.php index 06c064e..595d201 100644 --- a/src/Formatter/MKFormatter.php +++ b/src/Formatter/MKFormatter.php @@ -16,9 +16,6 @@ */ class MKFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/MMFormatter.php b/src/Formatter/MMFormatter.php index 68dda8d..fd96f19 100644 --- a/src/Formatter/MMFormatter.php +++ b/src/Formatter/MMFormatter.php @@ -16,9 +16,6 @@ */ class MMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MNFormatter.php b/src/Formatter/MNFormatter.php index a9cbf08..6c3513f 100644 --- a/src/Formatter/MNFormatter.php +++ b/src/Formatter/MNFormatter.php @@ -15,9 +15,6 @@ */ class MNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MPFormatter.php b/src/Formatter/MPFormatter.php index 7013761..4802f2e 100644 --- a/src/Formatter/MPFormatter.php +++ b/src/Formatter/MPFormatter.php @@ -16,9 +16,6 @@ */ class MPFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/MQFormatter.php b/src/Formatter/MQFormatter.php index 0d0c77c..3ff5239 100644 --- a/src/Formatter/MQFormatter.php +++ b/src/Formatter/MQFormatter.php @@ -16,9 +16,6 @@ */ class MQFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MSFormatter.php b/src/Formatter/MSFormatter.php index 3c1704d..28a66e9 100644 --- a/src/Formatter/MSFormatter.php +++ b/src/Formatter/MSFormatter.php @@ -17,9 +17,6 @@ */ class MSFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 3) === 'MSR') { diff --git a/src/Formatter/MTFormatter.php b/src/Formatter/MTFormatter.php index cb14dbf..c3bf36a 100644 --- a/src/Formatter/MTFormatter.php +++ b/src/Formatter/MTFormatter.php @@ -16,9 +16,6 @@ */ class MTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^([A-Z]{3})([0-9]{4})$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/MUFormatter.php b/src/Formatter/MUFormatter.php index 03308a0..6f31900 100644 --- a/src/Formatter/MUFormatter.php +++ b/src/Formatter/MUFormatter.php @@ -16,9 +16,6 @@ */ class MUFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MVFormatter.php b/src/Formatter/MVFormatter.php index 900d770..8680bcd 100644 --- a/src/Formatter/MVFormatter.php +++ b/src/Formatter/MVFormatter.php @@ -15,9 +15,6 @@ */ class MVFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MXFormatter.php b/src/Formatter/MXFormatter.php index 03d684d..c81b1a7 100644 --- a/src/Formatter/MXFormatter.php +++ b/src/Formatter/MXFormatter.php @@ -16,9 +16,6 @@ */ class MXFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MYFormatter.php b/src/Formatter/MYFormatter.php index aaa3872..d42ff57 100644 --- a/src/Formatter/MYFormatter.php +++ b/src/Formatter/MYFormatter.php @@ -16,9 +16,6 @@ */ class MYFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/MZFormatter.php b/src/Formatter/MZFormatter.php index 3f15ebc..1029bd3 100644 --- a/src/Formatter/MZFormatter.php +++ b/src/Formatter/MZFormatter.php @@ -15,9 +15,6 @@ */ class MZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/NCFormatter.php b/src/Formatter/NCFormatter.php index 4c131f1..1558be2 100644 --- a/src/Formatter/NCFormatter.php +++ b/src/Formatter/NCFormatter.php @@ -15,9 +15,6 @@ */ class NCFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/NEFormatter.php b/src/Formatter/NEFormatter.php index a9ac82d..8861499 100644 --- a/src/Formatter/NEFormatter.php +++ b/src/Formatter/NEFormatter.php @@ -15,9 +15,6 @@ */ class NEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/NFFormatter.php b/src/Formatter/NFFormatter.php index 662a319..e829fe1 100644 --- a/src/Formatter/NFFormatter.php +++ b/src/Formatter/NFFormatter.php @@ -16,9 +16,6 @@ */ class NFFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/NGFormatter.php b/src/Formatter/NGFormatter.php index 8d69dee..b2dbdaa 100644 --- a/src/Formatter/NGFormatter.php +++ b/src/Formatter/NGFormatter.php @@ -16,9 +16,6 @@ */ class NGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/NIFormatter.php b/src/Formatter/NIFormatter.php index f216bd9..8316b73 100644 --- a/src/Formatter/NIFormatter.php +++ b/src/Formatter/NIFormatter.php @@ -16,9 +16,6 @@ */ class NIFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/NLFormatter.php b/src/Formatter/NLFormatter.php index 3f52c15..62837fe 100644 --- a/src/Formatter/NLFormatter.php +++ b/src/Formatter/NLFormatter.php @@ -17,9 +17,6 @@ */ class NLFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^([0-9]{4})([A-Z]{2})$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/NOFormatter.php b/src/Formatter/NOFormatter.php index edd92b0..4cc3fe6 100644 --- a/src/Formatter/NOFormatter.php +++ b/src/Formatter/NOFormatter.php @@ -16,9 +16,6 @@ */ class NOFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/NPFormatter.php b/src/Formatter/NPFormatter.php index 11ed54a..7e00915 100644 --- a/src/Formatter/NPFormatter.php +++ b/src/Formatter/NPFormatter.php @@ -16,9 +16,6 @@ */ class NPFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/NZFormatter.php b/src/Formatter/NZFormatter.php index 13275b9..a2f81f1 100644 --- a/src/Formatter/NZFormatter.php +++ b/src/Formatter/NZFormatter.php @@ -16,9 +16,6 @@ */ class NZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/OMFormatter.php b/src/Formatter/OMFormatter.php index 9403041..4870410 100644 --- a/src/Formatter/OMFormatter.php +++ b/src/Formatter/OMFormatter.php @@ -16,9 +16,6 @@ */ class OMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/PAFormatter.php b/src/Formatter/PAFormatter.php index e76323d..ee56978 100644 --- a/src/Formatter/PAFormatter.php +++ b/src/Formatter/PAFormatter.php @@ -16,9 +16,6 @@ */ class PAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/PEFormatter.php b/src/Formatter/PEFormatter.php index 892b417..2e82607 100644 --- a/src/Formatter/PEFormatter.php +++ b/src/Formatter/PEFormatter.php @@ -16,9 +16,6 @@ */ class PEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/PFFormatter.php b/src/Formatter/PFFormatter.php index 1d1b484..8eb40f8 100644 --- a/src/Formatter/PFFormatter.php +++ b/src/Formatter/PFFormatter.php @@ -15,9 +15,6 @@ */ class PFFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/PGFormatter.php b/src/Formatter/PGFormatter.php index ba91159..a12d917 100644 --- a/src/Formatter/PGFormatter.php +++ b/src/Formatter/PGFormatter.php @@ -15,9 +15,6 @@ */ class PGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/PHFormatter.php b/src/Formatter/PHFormatter.php index bbe36c3..5ee1cb8 100644 --- a/src/Formatter/PHFormatter.php +++ b/src/Formatter/PHFormatter.php @@ -16,9 +16,6 @@ */ class PHFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/PKFormatter.php b/src/Formatter/PKFormatter.php index 432e1c6..a56f835 100644 --- a/src/Formatter/PKFormatter.php +++ b/src/Formatter/PKFormatter.php @@ -16,9 +16,6 @@ */ class PKFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/PLFormatter.php b/src/Formatter/PLFormatter.php index d5e91e8..720ee70 100644 --- a/src/Formatter/PLFormatter.php +++ b/src/Formatter/PLFormatter.php @@ -20,9 +20,6 @@ */ class PLFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/PMFormatter.php b/src/Formatter/PMFormatter.php index 289a4b0..27d56e2 100644 --- a/src/Formatter/PMFormatter.php +++ b/src/Formatter/PMFormatter.php @@ -15,9 +15,6 @@ */ class PMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === '97500') { diff --git a/src/Formatter/PNFormatter.php b/src/Formatter/PNFormatter.php index b3634c7..2b08a09 100644 --- a/src/Formatter/PNFormatter.php +++ b/src/Formatter/PNFormatter.php @@ -15,9 +15,6 @@ */ class PNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'PCRN1ZZ') { diff --git a/src/Formatter/PRFormatter.php b/src/Formatter/PRFormatter.php index f4d3cae..8edc2fa 100644 --- a/src/Formatter/PRFormatter.php +++ b/src/Formatter/PRFormatter.php @@ -16,9 +16,6 @@ */ class PRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/PSFormatter.php b/src/Formatter/PSFormatter.php index 788cab8..8fd65be 100644 --- a/src/Formatter/PSFormatter.php +++ b/src/Formatter/PSFormatter.php @@ -16,9 +16,6 @@ */ class PSFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{3}$/', $postcode) !== 1) { diff --git a/src/Formatter/PTFormatter.php b/src/Formatter/PTFormatter.php index 3e4a37b..336ea8e 100644 --- a/src/Formatter/PTFormatter.php +++ b/src/Formatter/PTFormatter.php @@ -16,9 +16,6 @@ */ class PTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{7}$/', $postcode) !== 1) { diff --git a/src/Formatter/PWFormatter.php b/src/Formatter/PWFormatter.php index 8a4afb3..8516b7a 100644 --- a/src/Formatter/PWFormatter.php +++ b/src/Formatter/PWFormatter.php @@ -15,9 +15,6 @@ */ class PWFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/PYFormatter.php b/src/Formatter/PYFormatter.php index cd1cbed..09eba85 100644 --- a/src/Formatter/PYFormatter.php +++ b/src/Formatter/PYFormatter.php @@ -16,9 +16,6 @@ */ class PYFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/REFormatter.php b/src/Formatter/REFormatter.php index 5720839..47177a6 100644 --- a/src/Formatter/REFormatter.php +++ b/src/Formatter/REFormatter.php @@ -16,9 +16,6 @@ */ class REFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/ROFormatter.php b/src/Formatter/ROFormatter.php index a05b809..55eec0a 100644 --- a/src/Formatter/ROFormatter.php +++ b/src/Formatter/ROFormatter.php @@ -16,9 +16,6 @@ */ class ROFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/RSFormatter.php b/src/Formatter/RSFormatter.php index 08f5c92..c75df42 100644 --- a/src/Formatter/RSFormatter.php +++ b/src/Formatter/RSFormatter.php @@ -16,9 +16,6 @@ */ class RSFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/RUFormatter.php b/src/Formatter/RUFormatter.php index 647bb6e..f1778b2 100644 --- a/src/Formatter/RUFormatter.php +++ b/src/Formatter/RUFormatter.php @@ -16,9 +16,6 @@ */ class RUFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/SAFormatter.php b/src/Formatter/SAFormatter.php index 0987c60..6a266a7 100644 --- a/src/Formatter/SAFormatter.php +++ b/src/Formatter/SAFormatter.php @@ -15,9 +15,6 @@ */ class SAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/SDFormatter.php b/src/Formatter/SDFormatter.php index 80f0290..88a86c9 100644 --- a/src/Formatter/SDFormatter.php +++ b/src/Formatter/SDFormatter.php @@ -15,9 +15,6 @@ */ class SDFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/SEFormatter.php b/src/Formatter/SEFormatter.php index 50ba9a1..3d87daf 100644 --- a/src/Formatter/SEFormatter.php +++ b/src/Formatter/SEFormatter.php @@ -17,9 +17,6 @@ */ class SEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/SGFormatter.php b/src/Formatter/SGFormatter.php index d9fb4ee..4fadc7b 100644 --- a/src/Formatter/SGFormatter.php +++ b/src/Formatter/SGFormatter.php @@ -16,9 +16,6 @@ */ class SGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/SHFormatter.php b/src/Formatter/SHFormatter.php index 664947d..6d4edc3 100644 --- a/src/Formatter/SHFormatter.php +++ b/src/Formatter/SHFormatter.php @@ -17,9 +17,6 @@ */ class SHFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'STHL1ZZ') { diff --git a/src/Formatter/SIFormatter.php b/src/Formatter/SIFormatter.php index c867e17..32c58af 100644 --- a/src/Formatter/SIFormatter.php +++ b/src/Formatter/SIFormatter.php @@ -16,9 +16,6 @@ */ class SIFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/SJFormatter.php b/src/Formatter/SJFormatter.php index f8a0564..fb7e871 100644 --- a/src/Formatter/SJFormatter.php +++ b/src/Formatter/SJFormatter.php @@ -16,9 +16,6 @@ */ class SJFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/SKFormatter.php b/src/Formatter/SKFormatter.php index 6d29fe7..db14cae 100644 --- a/src/Formatter/SKFormatter.php +++ b/src/Formatter/SKFormatter.php @@ -19,9 +19,6 @@ */ class SKFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/SMFormatter.php b/src/Formatter/SMFormatter.php index 39632f2..90e0a25 100644 --- a/src/Formatter/SMFormatter.php +++ b/src/Formatter/SMFormatter.php @@ -15,9 +15,6 @@ */ class SMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/SNFormatter.php b/src/Formatter/SNFormatter.php index f477a15..0fb9164 100644 --- a/src/Formatter/SNFormatter.php +++ b/src/Formatter/SNFormatter.php @@ -15,9 +15,6 @@ */ class SNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/SVFormatter.php b/src/Formatter/SVFormatter.php index 9099435..41dc8a3 100644 --- a/src/Formatter/SVFormatter.php +++ b/src/Formatter/SVFormatter.php @@ -15,9 +15,6 @@ */ class SVFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/SZFormatter.php b/src/Formatter/SZFormatter.php index cefac3a..186e529 100644 --- a/src/Formatter/SZFormatter.php +++ b/src/Formatter/SZFormatter.php @@ -15,9 +15,6 @@ */ class SZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[A-Z][0-9]{3}$/', $postcode, $matches) !== 1) { diff --git a/src/Formatter/TCFormatter.php b/src/Formatter/TCFormatter.php index 8ea7948..8292c22 100644 --- a/src/Formatter/TCFormatter.php +++ b/src/Formatter/TCFormatter.php @@ -15,9 +15,6 @@ */ class TCFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === 'TKCA1ZZ') { diff --git a/src/Formatter/TFFormatter.php b/src/Formatter/TFFormatter.php index 8a59b72..ec1cda6 100644 --- a/src/Formatter/TFFormatter.php +++ b/src/Formatter/TFFormatter.php @@ -15,9 +15,6 @@ */ class TFFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/THFormatter.php b/src/Formatter/THFormatter.php index 232c3e2..bec14ff 100644 --- a/src/Formatter/THFormatter.php +++ b/src/Formatter/THFormatter.php @@ -16,9 +16,6 @@ */ class THFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/TJFormatter.php b/src/Formatter/TJFormatter.php index d7ee1ad..11a8053 100644 --- a/src/Formatter/TJFormatter.php +++ b/src/Formatter/TJFormatter.php @@ -15,9 +15,6 @@ */ class TJFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/TMFormatter.php b/src/Formatter/TMFormatter.php index ddfebd9..df8b496 100644 --- a/src/Formatter/TMFormatter.php +++ b/src/Formatter/TMFormatter.php @@ -15,9 +15,6 @@ */ class TMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/TNFormatter.php b/src/Formatter/TNFormatter.php index a49b31e..b77c9b0 100644 --- a/src/Formatter/TNFormatter.php +++ b/src/Formatter/TNFormatter.php @@ -16,9 +16,6 @@ */ class TNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/TRFormatter.php b/src/Formatter/TRFormatter.php index 447826f..1ded15e 100644 --- a/src/Formatter/TRFormatter.php +++ b/src/Formatter/TRFormatter.php @@ -16,9 +16,6 @@ */ class TRFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/TTFormatter.php b/src/Formatter/TTFormatter.php index 6ce7987..31e458b 100644 --- a/src/Formatter/TTFormatter.php +++ b/src/Formatter/TTFormatter.php @@ -16,9 +16,6 @@ */ class TTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/TWFormatter.php b/src/Formatter/TWFormatter.php index cef5c7f..3fb2728 100644 --- a/src/Formatter/TWFormatter.php +++ b/src/Formatter/TWFormatter.php @@ -18,9 +18,6 @@ */ class TWFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/TZFormatter.php b/src/Formatter/TZFormatter.php index 591efae..fdff22e 100644 --- a/src/Formatter/TZFormatter.php +++ b/src/Formatter/TZFormatter.php @@ -15,9 +15,6 @@ */ class TZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/UAFormatter.php b/src/Formatter/UAFormatter.php index 4a53d00..6766ba2 100644 --- a/src/Formatter/UAFormatter.php +++ b/src/Formatter/UAFormatter.php @@ -16,9 +16,6 @@ */ class UAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/USFormatter.php b/src/Formatter/USFormatter.php index 0ac38bb..4f28d52 100644 --- a/src/Formatter/USFormatter.php +++ b/src/Formatter/USFormatter.php @@ -18,9 +18,6 @@ */ class USFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/UYFormatter.php b/src/Formatter/UYFormatter.php index 5ef17d2..c59f0d1 100644 --- a/src/Formatter/UYFormatter.php +++ b/src/Formatter/UYFormatter.php @@ -15,9 +15,6 @@ */ class UYFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/UZFormatter.php b/src/Formatter/UZFormatter.php index 314fc44..d622aec 100644 --- a/src/Formatter/UZFormatter.php +++ b/src/Formatter/UZFormatter.php @@ -15,9 +15,6 @@ */ class UZFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/VAFormatter.php b/src/Formatter/VAFormatter.php index 3a5041f..fdd054c 100644 --- a/src/Formatter/VAFormatter.php +++ b/src/Formatter/VAFormatter.php @@ -15,9 +15,6 @@ */ class VAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if ($postcode === '00120') { diff --git a/src/Formatter/VCFormatter.php b/src/Formatter/VCFormatter.php index 916c54e..030f6d3 100644 --- a/src/Formatter/VCFormatter.php +++ b/src/Formatter/VCFormatter.php @@ -16,9 +16,6 @@ */ class VCFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'VC') { diff --git a/src/Formatter/VEFormatter.php b/src/Formatter/VEFormatter.php index 2512146..9970d81 100644 --- a/src/Formatter/VEFormatter.php +++ b/src/Formatter/VEFormatter.php @@ -15,9 +15,6 @@ */ class VEFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/VGFormatter.php b/src/Formatter/VGFormatter.php index 7631c2c..25c2574 100644 --- a/src/Formatter/VGFormatter.php +++ b/src/Formatter/VGFormatter.php @@ -16,9 +16,6 @@ */ class VGFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'VG') { diff --git a/src/Formatter/VIFormatter.php b/src/Formatter/VIFormatter.php index 4437199..d9d016b 100644 --- a/src/Formatter/VIFormatter.php +++ b/src/Formatter/VIFormatter.php @@ -15,9 +15,6 @@ */ class VIFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]+$/', $postcode) !== 1) { diff --git a/src/Formatter/VNFormatter.php b/src/Formatter/VNFormatter.php index 6e4446b..2f26374 100644 --- a/src/Formatter/VNFormatter.php +++ b/src/Formatter/VNFormatter.php @@ -16,9 +16,6 @@ */ class VNFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{6}$/', $postcode) !== 1) { diff --git a/src/Formatter/WFFormatter.php b/src/Formatter/WFFormatter.php index 5fb2881..958f37a 100644 --- a/src/Formatter/WFFormatter.php +++ b/src/Formatter/WFFormatter.php @@ -16,9 +16,6 @@ */ class WFFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/WSFormatter.php b/src/Formatter/WSFormatter.php index 68e7d6d..10df421 100644 --- a/src/Formatter/WSFormatter.php +++ b/src/Formatter/WSFormatter.php @@ -16,9 +16,6 @@ */ class WSFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (substr($postcode, 0, 2) === 'WS') { diff --git a/src/Formatter/YTFormatter.php b/src/Formatter/YTFormatter.php index 86a754b..98c0e23 100644 --- a/src/Formatter/YTFormatter.php +++ b/src/Formatter/YTFormatter.php @@ -16,9 +16,6 @@ */ class YTFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/src/Formatter/ZAFormatter.php b/src/Formatter/ZAFormatter.php index 50374d6..22b061d 100644 --- a/src/Formatter/ZAFormatter.php +++ b/src/Formatter/ZAFormatter.php @@ -16,9 +16,6 @@ */ class ZAFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { diff --git a/src/Formatter/ZMFormatter.php b/src/Formatter/ZMFormatter.php index 0cbf660..bccf00c 100644 --- a/src/Formatter/ZMFormatter.php +++ b/src/Formatter/ZMFormatter.php @@ -15,9 +15,6 @@ */ class ZMFormatter implements CountryPostcodeFormatter { - /** - * {@inheritdoc} - */ public function format(string $postcode) : ?string { if (preg_match('/^[0-9]{5}$/', $postcode) !== 1) { diff --git a/tests/Formatter/ADFormatterTest.php b/tests/Formatter/ADFormatterTest.php index 4caf740..6d9e7e4 100644 --- a/tests/Formatter/ADFormatterTest.php +++ b/tests/Formatter/ADFormatterTest.php @@ -13,17 +13,11 @@ */ class ADFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ADFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/AFFormatterTest.php b/tests/Formatter/AFFormatterTest.php index fc688af..13cdc3c 100644 --- a/tests/Formatter/AFFormatterTest.php +++ b/tests/Formatter/AFFormatterTest.php @@ -13,17 +13,11 @@ */ class AFFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new AFFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/AIFormatterTest.php b/tests/Formatter/AIFormatterTest.php index ecfa561..6f5ce81 100644 --- a/tests/Formatter/AIFormatterTest.php +++ b/tests/Formatter/AIFormatterTest.php @@ -13,17 +13,11 @@ */ class AIFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new AIFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ALFormatterTest.php b/tests/Formatter/ALFormatterTest.php index c09ed12..75168a2 100644 --- a/tests/Formatter/ALFormatterTest.php +++ b/tests/Formatter/ALFormatterTest.php @@ -13,17 +13,11 @@ */ class ALFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ALFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/AMFormatterTest.php b/tests/Formatter/AMFormatterTest.php index a7885e7..74a90ad 100644 --- a/tests/Formatter/AMFormatterTest.php +++ b/tests/Formatter/AMFormatterTest.php @@ -13,17 +13,11 @@ */ class AMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new AMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/AQFormatterTest.php b/tests/Formatter/AQFormatterTest.php index 612bab5..5ea4ef8 100644 --- a/tests/Formatter/AQFormatterTest.php +++ b/tests/Formatter/AQFormatterTest.php @@ -13,17 +13,11 @@ */ class AQFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new AQFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ARFormatterTest.php b/tests/Formatter/ARFormatterTest.php index 4194520..3d45dc6 100644 --- a/tests/Formatter/ARFormatterTest.php +++ b/tests/Formatter/ARFormatterTest.php @@ -13,17 +13,11 @@ */ class ARFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ARFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ASFormatterTest.php b/tests/Formatter/ASFormatterTest.php index c005541..536a4a4 100644 --- a/tests/Formatter/ASFormatterTest.php +++ b/tests/Formatter/ASFormatterTest.php @@ -13,17 +13,11 @@ */ class ASFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ASFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ATFormatterTest.php b/tests/Formatter/ATFormatterTest.php index d75d562..a510d1c 100644 --- a/tests/Formatter/ATFormatterTest.php +++ b/tests/Formatter/ATFormatterTest.php @@ -13,17 +13,11 @@ */ class ATFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ATFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/AUFormatterTest.php b/tests/Formatter/AUFormatterTest.php index 5861c77..03dd0ce 100644 --- a/tests/Formatter/AUFormatterTest.php +++ b/tests/Formatter/AUFormatterTest.php @@ -13,17 +13,11 @@ */ class AUFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new AUFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/AXFormatterTest.php b/tests/Formatter/AXFormatterTest.php index 5ca76f8..0f3c40a 100644 --- a/tests/Formatter/AXFormatterTest.php +++ b/tests/Formatter/AXFormatterTest.php @@ -13,17 +13,11 @@ */ class AXFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new AXFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/AZFormatterTest.php b/tests/Formatter/AZFormatterTest.php index b71dd4f..d4572d4 100644 --- a/tests/Formatter/AZFormatterTest.php +++ b/tests/Formatter/AZFormatterTest.php @@ -13,17 +13,11 @@ */ class AZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new AZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BAFormatterTest.php b/tests/Formatter/BAFormatterTest.php index 131447e..7cf4d68 100644 --- a/tests/Formatter/BAFormatterTest.php +++ b/tests/Formatter/BAFormatterTest.php @@ -13,17 +13,11 @@ */ class BAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BBFormatterTest.php b/tests/Formatter/BBFormatterTest.php index 2237c42..ed1ea82 100644 --- a/tests/Formatter/BBFormatterTest.php +++ b/tests/Formatter/BBFormatterTest.php @@ -13,17 +13,11 @@ */ class BBFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BBFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BDFormatterTest.php b/tests/Formatter/BDFormatterTest.php index 8a2e167..19c7c5b 100644 --- a/tests/Formatter/BDFormatterTest.php +++ b/tests/Formatter/BDFormatterTest.php @@ -13,17 +13,11 @@ */ class BDFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BDFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BEFormatterTest.php b/tests/Formatter/BEFormatterTest.php index 9c62dee..74510e1 100644 --- a/tests/Formatter/BEFormatterTest.php +++ b/tests/Formatter/BEFormatterTest.php @@ -13,17 +13,11 @@ */ class BEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BGFormatterTest.php b/tests/Formatter/BGFormatterTest.php index 438911a..6b5036d 100644 --- a/tests/Formatter/BGFormatterTest.php +++ b/tests/Formatter/BGFormatterTest.php @@ -13,17 +13,11 @@ */ class BGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BHFormatterTest.php b/tests/Formatter/BHFormatterTest.php index 2b0cf7c..84d8554 100644 --- a/tests/Formatter/BHFormatterTest.php +++ b/tests/Formatter/BHFormatterTest.php @@ -13,17 +13,11 @@ */ class BHFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BHFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BLFormatterTest.php b/tests/Formatter/BLFormatterTest.php index 2062c80..e6511b8 100644 --- a/tests/Formatter/BLFormatterTest.php +++ b/tests/Formatter/BLFormatterTest.php @@ -13,17 +13,11 @@ */ class BLFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BLFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BMFormatterTest.php b/tests/Formatter/BMFormatterTest.php index 18d7580..35b16e6 100644 --- a/tests/Formatter/BMFormatterTest.php +++ b/tests/Formatter/BMFormatterTest.php @@ -13,17 +13,11 @@ */ class BMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BNFormatterTest.php b/tests/Formatter/BNFormatterTest.php index ead12f4..c8658e6 100644 --- a/tests/Formatter/BNFormatterTest.php +++ b/tests/Formatter/BNFormatterTest.php @@ -13,17 +13,11 @@ */ class BNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BRFormatterTest.php b/tests/Formatter/BRFormatterTest.php index 0216e00..2a901df 100644 --- a/tests/Formatter/BRFormatterTest.php +++ b/tests/Formatter/BRFormatterTest.php @@ -13,17 +13,11 @@ */ class BRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BTFormatterTest.php b/tests/Formatter/BTFormatterTest.php index 6dc17c0..1ac4736 100644 --- a/tests/Formatter/BTFormatterTest.php +++ b/tests/Formatter/BTFormatterTest.php @@ -13,17 +13,11 @@ */ class BTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/BYFormatterTest.php b/tests/Formatter/BYFormatterTest.php index f715a7f..bed54f1 100644 --- a/tests/Formatter/BYFormatterTest.php +++ b/tests/Formatter/BYFormatterTest.php @@ -13,17 +13,11 @@ */ class BYFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new BYFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CAFormatterTest.php b/tests/Formatter/CAFormatterTest.php index 05cc576..985a464 100644 --- a/tests/Formatter/CAFormatterTest.php +++ b/tests/Formatter/CAFormatterTest.php @@ -13,17 +13,11 @@ */ class CAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CCFormatterTest.php b/tests/Formatter/CCFormatterTest.php index 51dee62..a6eff1f 100644 --- a/tests/Formatter/CCFormatterTest.php +++ b/tests/Formatter/CCFormatterTest.php @@ -13,17 +13,11 @@ */ class CCFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CCFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CHFormatterTest.php b/tests/Formatter/CHFormatterTest.php index b5c57ca..6a50b19 100644 --- a/tests/Formatter/CHFormatterTest.php +++ b/tests/Formatter/CHFormatterTest.php @@ -13,17 +13,11 @@ */ class CHFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CHFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CLFormatterTest.php b/tests/Formatter/CLFormatterTest.php index 4ce72e7..618be24 100644 --- a/tests/Formatter/CLFormatterTest.php +++ b/tests/Formatter/CLFormatterTest.php @@ -13,17 +13,11 @@ */ class CLFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CLFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CNFormatterTest.php b/tests/Formatter/CNFormatterTest.php index 59aff4d..4b7fa11 100644 --- a/tests/Formatter/CNFormatterTest.php +++ b/tests/Formatter/CNFormatterTest.php @@ -13,17 +13,11 @@ */ class CNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/COFormatterTest.php b/tests/Formatter/COFormatterTest.php index 136f4dc..3ccb7a0 100644 --- a/tests/Formatter/COFormatterTest.php +++ b/tests/Formatter/COFormatterTest.php @@ -13,17 +13,11 @@ */ class COFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new COFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CRFormatterTest.php b/tests/Formatter/CRFormatterTest.php index 487cf74..53e56ed 100644 --- a/tests/Formatter/CRFormatterTest.php +++ b/tests/Formatter/CRFormatterTest.php @@ -13,17 +13,11 @@ */ class CRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CUFormatterTest.php b/tests/Formatter/CUFormatterTest.php index efa3f49..a2538b3 100644 --- a/tests/Formatter/CUFormatterTest.php +++ b/tests/Formatter/CUFormatterTest.php @@ -13,17 +13,11 @@ */ class CUFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CUFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CVFormatterTest.php b/tests/Formatter/CVFormatterTest.php index a7d8331..a253a95 100644 --- a/tests/Formatter/CVFormatterTest.php +++ b/tests/Formatter/CVFormatterTest.php @@ -13,17 +13,11 @@ */ class CVFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CVFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CXFormatterTest.php b/tests/Formatter/CXFormatterTest.php index 3f631ca..61054c6 100644 --- a/tests/Formatter/CXFormatterTest.php +++ b/tests/Formatter/CXFormatterTest.php @@ -13,17 +13,11 @@ */ class CXFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CXFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CYFormatterTest.php b/tests/Formatter/CYFormatterTest.php index 7dfbd12..d55b9b4 100644 --- a/tests/Formatter/CYFormatterTest.php +++ b/tests/Formatter/CYFormatterTest.php @@ -13,17 +13,11 @@ */ class CYFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CYFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/CZFormatterTest.php b/tests/Formatter/CZFormatterTest.php index fc09544..e61553d 100644 --- a/tests/Formatter/CZFormatterTest.php +++ b/tests/Formatter/CZFormatterTest.php @@ -13,17 +13,11 @@ */ class CZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new CZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/DEFormatterTest.php b/tests/Formatter/DEFormatterTest.php index d72f99d..5338dda 100644 --- a/tests/Formatter/DEFormatterTest.php +++ b/tests/Formatter/DEFormatterTest.php @@ -13,17 +13,11 @@ */ class DEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new DEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/DKFormatterTest.php b/tests/Formatter/DKFormatterTest.php index 6bcbc41..7f922bf 100644 --- a/tests/Formatter/DKFormatterTest.php +++ b/tests/Formatter/DKFormatterTest.php @@ -13,17 +13,11 @@ */ class DKFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new DKFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/DOFormatterTest.php b/tests/Formatter/DOFormatterTest.php index 589ad09..eacaf75 100644 --- a/tests/Formatter/DOFormatterTest.php +++ b/tests/Formatter/DOFormatterTest.php @@ -13,17 +13,11 @@ */ class DOFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new DOFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/DZFormatterTest.php b/tests/Formatter/DZFormatterTest.php index be24337..aebe81c 100644 --- a/tests/Formatter/DZFormatterTest.php +++ b/tests/Formatter/DZFormatterTest.php @@ -13,17 +13,11 @@ */ class DZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new DZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ECFormatterTest.php b/tests/Formatter/ECFormatterTest.php index 071a480..432821e 100644 --- a/tests/Formatter/ECFormatterTest.php +++ b/tests/Formatter/ECFormatterTest.php @@ -13,17 +13,11 @@ */ class ECFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ECFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/EEFormatterTest.php b/tests/Formatter/EEFormatterTest.php index 7165eeb..508c8bd 100644 --- a/tests/Formatter/EEFormatterTest.php +++ b/tests/Formatter/EEFormatterTest.php @@ -13,17 +13,11 @@ */ class EEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new EEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/EGFormatterTest.php b/tests/Formatter/EGFormatterTest.php index 8fdb4ce..3bab205 100644 --- a/tests/Formatter/EGFormatterTest.php +++ b/tests/Formatter/EGFormatterTest.php @@ -13,17 +13,11 @@ */ class EGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new EGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ESFormatterTest.php b/tests/Formatter/ESFormatterTest.php index be0307a..84daf21 100644 --- a/tests/Formatter/ESFormatterTest.php +++ b/tests/Formatter/ESFormatterTest.php @@ -13,17 +13,11 @@ */ class ESFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ESFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ETFormatterTest.php b/tests/Formatter/ETFormatterTest.php index 877a0e7..ea8d8c1 100644 --- a/tests/Formatter/ETFormatterTest.php +++ b/tests/Formatter/ETFormatterTest.php @@ -13,17 +13,11 @@ */ class ETFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ETFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/FIFormatterTest.php b/tests/Formatter/FIFormatterTest.php index 6129fad..339ba61 100644 --- a/tests/Formatter/FIFormatterTest.php +++ b/tests/Formatter/FIFormatterTest.php @@ -13,17 +13,11 @@ */ class FIFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new FIFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/FKFormatterTest.php b/tests/Formatter/FKFormatterTest.php index 2803db9..6aa0a35 100644 --- a/tests/Formatter/FKFormatterTest.php +++ b/tests/Formatter/FKFormatterTest.php @@ -13,17 +13,11 @@ */ class FKFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new FKFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/FMFormatterTest.php b/tests/Formatter/FMFormatterTest.php index 3ddeb10..aa003a6 100644 --- a/tests/Formatter/FMFormatterTest.php +++ b/tests/Formatter/FMFormatterTest.php @@ -13,17 +13,11 @@ */ class FMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new FMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/FOFormatterTest.php b/tests/Formatter/FOFormatterTest.php index 7ce8b87..b650c88 100644 --- a/tests/Formatter/FOFormatterTest.php +++ b/tests/Formatter/FOFormatterTest.php @@ -13,17 +13,11 @@ */ class FOFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new FOFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/FRFormatterTest.php b/tests/Formatter/FRFormatterTest.php index 1d633f2..dbbeb1c 100644 --- a/tests/Formatter/FRFormatterTest.php +++ b/tests/Formatter/FRFormatterTest.php @@ -13,17 +13,11 @@ */ class FRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new FRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GBFormatterTest.php b/tests/Formatter/GBFormatterTest.php index 986e3c7..6531955 100644 --- a/tests/Formatter/GBFormatterTest.php +++ b/tests/Formatter/GBFormatterTest.php @@ -13,17 +13,11 @@ */ class GBFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GBFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GEFormatterTest.php b/tests/Formatter/GEFormatterTest.php index 56bc7e0..776b1cc 100644 --- a/tests/Formatter/GEFormatterTest.php +++ b/tests/Formatter/GEFormatterTest.php @@ -13,17 +13,11 @@ */ class GEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GFFormatterTest.php b/tests/Formatter/GFFormatterTest.php index 6a0fbb8..b9ef18e 100644 --- a/tests/Formatter/GFFormatterTest.php +++ b/tests/Formatter/GFFormatterTest.php @@ -13,17 +13,11 @@ */ class GFFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GFFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GGFormatterTest.php b/tests/Formatter/GGFormatterTest.php index 73eaf86..eb6634e 100644 --- a/tests/Formatter/GGFormatterTest.php +++ b/tests/Formatter/GGFormatterTest.php @@ -13,17 +13,11 @@ */ class GGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GIFormatterTest.php b/tests/Formatter/GIFormatterTest.php index ce1975c..13d08e9 100644 --- a/tests/Formatter/GIFormatterTest.php +++ b/tests/Formatter/GIFormatterTest.php @@ -13,17 +13,11 @@ */ class GIFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GIFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GLFormatterTest.php b/tests/Formatter/GLFormatterTest.php index 2d8724c..e6265b7 100644 --- a/tests/Formatter/GLFormatterTest.php +++ b/tests/Formatter/GLFormatterTest.php @@ -13,17 +13,11 @@ */ class GLFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GLFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GNFormatterTest.php b/tests/Formatter/GNFormatterTest.php index 66d213b..e6e6d63 100644 --- a/tests/Formatter/GNFormatterTest.php +++ b/tests/Formatter/GNFormatterTest.php @@ -13,17 +13,11 @@ */ class GNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GPFormatterTest.php b/tests/Formatter/GPFormatterTest.php index c696281..e125221 100644 --- a/tests/Formatter/GPFormatterTest.php +++ b/tests/Formatter/GPFormatterTest.php @@ -13,17 +13,11 @@ */ class GPFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GPFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GRFormatterTest.php b/tests/Formatter/GRFormatterTest.php index 45ccde6..6321483 100644 --- a/tests/Formatter/GRFormatterTest.php +++ b/tests/Formatter/GRFormatterTest.php @@ -13,17 +13,11 @@ */ class GRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GSFormatterTest.php b/tests/Formatter/GSFormatterTest.php index 3897d6b..cc10e97 100644 --- a/tests/Formatter/GSFormatterTest.php +++ b/tests/Formatter/GSFormatterTest.php @@ -13,17 +13,11 @@ */ class GSFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GSFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GTFormatterTest.php b/tests/Formatter/GTFormatterTest.php index eff0b70..2c53566 100644 --- a/tests/Formatter/GTFormatterTest.php +++ b/tests/Formatter/GTFormatterTest.php @@ -13,17 +13,11 @@ */ class GTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GUFormatterTest.php b/tests/Formatter/GUFormatterTest.php index 6c7c1b5..4f0a2ce 100644 --- a/tests/Formatter/GUFormatterTest.php +++ b/tests/Formatter/GUFormatterTest.php @@ -13,17 +13,11 @@ */ class GUFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GUFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/GWFormatterTest.php b/tests/Formatter/GWFormatterTest.php index 5905a07..2596717 100644 --- a/tests/Formatter/GWFormatterTest.php +++ b/tests/Formatter/GWFormatterTest.php @@ -13,17 +13,11 @@ */ class GWFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new GWFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/HNFormatterTest.php b/tests/Formatter/HNFormatterTest.php index 7f3661b..947652e 100644 --- a/tests/Formatter/HNFormatterTest.php +++ b/tests/Formatter/HNFormatterTest.php @@ -13,17 +13,11 @@ */ class HNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new HNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/HRFormatterTest.php b/tests/Formatter/HRFormatterTest.php index 53ac2dd..a7e4391 100644 --- a/tests/Formatter/HRFormatterTest.php +++ b/tests/Formatter/HRFormatterTest.php @@ -13,17 +13,11 @@ */ class HRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new HRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/HTFormatterTest.php b/tests/Formatter/HTFormatterTest.php index 23dd17d..879044e 100644 --- a/tests/Formatter/HTFormatterTest.php +++ b/tests/Formatter/HTFormatterTest.php @@ -13,17 +13,11 @@ */ class HTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new HTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/HUFormatterTest.php b/tests/Formatter/HUFormatterTest.php index b943cf7..91c41bc 100644 --- a/tests/Formatter/HUFormatterTest.php +++ b/tests/Formatter/HUFormatterTest.php @@ -13,17 +13,11 @@ */ class HUFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new HUFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ICFormatterTest.php b/tests/Formatter/ICFormatterTest.php index 9ea8498..657bc2f 100644 --- a/tests/Formatter/ICFormatterTest.php +++ b/tests/Formatter/ICFormatterTest.php @@ -13,17 +13,11 @@ */ class ICFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ICFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/IDFormatterTest.php b/tests/Formatter/IDFormatterTest.php index 7d8be2a..fb8d10b 100644 --- a/tests/Formatter/IDFormatterTest.php +++ b/tests/Formatter/IDFormatterTest.php @@ -13,17 +13,11 @@ */ class IDFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new IDFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/IEFormatterTest.php b/tests/Formatter/IEFormatterTest.php index c2f6f20..2bc09d3 100644 --- a/tests/Formatter/IEFormatterTest.php +++ b/tests/Formatter/IEFormatterTest.php @@ -13,17 +13,11 @@ */ class IEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new IEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ILFormatterTest.php b/tests/Formatter/ILFormatterTest.php index 62df865..3de1ece 100644 --- a/tests/Formatter/ILFormatterTest.php +++ b/tests/Formatter/ILFormatterTest.php @@ -13,17 +13,11 @@ */ class ILFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ILFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/IMFormatterTest.php b/tests/Formatter/IMFormatterTest.php index ca340c2..65c5d2b 100644 --- a/tests/Formatter/IMFormatterTest.php +++ b/tests/Formatter/IMFormatterTest.php @@ -13,17 +13,11 @@ */ class IMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new IMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/INFormatterTest.php b/tests/Formatter/INFormatterTest.php index 6d62b38..f7ccd0d 100644 --- a/tests/Formatter/INFormatterTest.php +++ b/tests/Formatter/INFormatterTest.php @@ -13,17 +13,11 @@ */ class INFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new INFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/IOFormatterTest.php b/tests/Formatter/IOFormatterTest.php index 28607b9..e0a06d2 100644 --- a/tests/Formatter/IOFormatterTest.php +++ b/tests/Formatter/IOFormatterTest.php @@ -13,17 +13,11 @@ */ class IOFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new IOFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/IQFormatterTest.php b/tests/Formatter/IQFormatterTest.php index d0f1978..2033fe7 100644 --- a/tests/Formatter/IQFormatterTest.php +++ b/tests/Formatter/IQFormatterTest.php @@ -13,17 +13,11 @@ */ class IQFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new IQFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/IRFormatterTest.php b/tests/Formatter/IRFormatterTest.php index b7adbb6..fcbcb65 100644 --- a/tests/Formatter/IRFormatterTest.php +++ b/tests/Formatter/IRFormatterTest.php @@ -13,17 +13,11 @@ */ class IRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new IRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ISFormatterTest.php b/tests/Formatter/ISFormatterTest.php index 2fbb265..f53b5d5 100644 --- a/tests/Formatter/ISFormatterTest.php +++ b/tests/Formatter/ISFormatterTest.php @@ -13,17 +13,11 @@ */ class ISFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ISFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ITFormatterTest.php b/tests/Formatter/ITFormatterTest.php index 380f21f..6806c53 100644 --- a/tests/Formatter/ITFormatterTest.php +++ b/tests/Formatter/ITFormatterTest.php @@ -13,17 +13,11 @@ */ class ITFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ITFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/JEFormatterTest.php b/tests/Formatter/JEFormatterTest.php index 6632844..9feda4d 100644 --- a/tests/Formatter/JEFormatterTest.php +++ b/tests/Formatter/JEFormatterTest.php @@ -13,17 +13,11 @@ */ class JEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new JEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/JOFormatterTest.php b/tests/Formatter/JOFormatterTest.php index b99a477..7ae3a5d 100644 --- a/tests/Formatter/JOFormatterTest.php +++ b/tests/Formatter/JOFormatterTest.php @@ -13,17 +13,11 @@ */ class JOFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new JOFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/JPFormatterTest.php b/tests/Formatter/JPFormatterTest.php index f5f4a55..6e38459 100644 --- a/tests/Formatter/JPFormatterTest.php +++ b/tests/Formatter/JPFormatterTest.php @@ -13,17 +13,11 @@ */ class JPFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new JPFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/KEFormatterTest.php b/tests/Formatter/KEFormatterTest.php index ce30dab..2fa7290 100644 --- a/tests/Formatter/KEFormatterTest.php +++ b/tests/Formatter/KEFormatterTest.php @@ -13,17 +13,11 @@ */ class KEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new KEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/KGFormatterTest.php b/tests/Formatter/KGFormatterTest.php index f3ee72b..22eb3cf 100644 --- a/tests/Formatter/KGFormatterTest.php +++ b/tests/Formatter/KGFormatterTest.php @@ -13,17 +13,11 @@ */ class KGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new KGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/KHFormatterTest.php b/tests/Formatter/KHFormatterTest.php index a623103..cca3c94 100644 --- a/tests/Formatter/KHFormatterTest.php +++ b/tests/Formatter/KHFormatterTest.php @@ -13,17 +13,11 @@ */ class KHFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new KHFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/KRFormatterTest.php b/tests/Formatter/KRFormatterTest.php index f7e4ed5..01d0811 100644 --- a/tests/Formatter/KRFormatterTest.php +++ b/tests/Formatter/KRFormatterTest.php @@ -13,17 +13,11 @@ */ class KRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new KRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/KWFormatterTest.php b/tests/Formatter/KWFormatterTest.php index 82ad016..a53fca9 100644 --- a/tests/Formatter/KWFormatterTest.php +++ b/tests/Formatter/KWFormatterTest.php @@ -13,17 +13,11 @@ */ class KWFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new KWFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/KYFormatterTest.php b/tests/Formatter/KYFormatterTest.php index a48524c..f642f8c 100644 --- a/tests/Formatter/KYFormatterTest.php +++ b/tests/Formatter/KYFormatterTest.php @@ -13,17 +13,11 @@ */ class KYFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new KYFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/KZFormatterTest.php b/tests/Formatter/KZFormatterTest.php index cb79a60..8eaa1f4 100644 --- a/tests/Formatter/KZFormatterTest.php +++ b/tests/Formatter/KZFormatterTest.php @@ -13,17 +13,11 @@ */ class KZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new KZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LAFormatterTest.php b/tests/Formatter/LAFormatterTest.php index c359974..11fc5c2 100644 --- a/tests/Formatter/LAFormatterTest.php +++ b/tests/Formatter/LAFormatterTest.php @@ -13,17 +13,11 @@ */ class LAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LBFormatterTest.php b/tests/Formatter/LBFormatterTest.php index 3211fc3..bf3ec55 100644 --- a/tests/Formatter/LBFormatterTest.php +++ b/tests/Formatter/LBFormatterTest.php @@ -13,17 +13,11 @@ */ class LBFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LBFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LCFormatterTest.php b/tests/Formatter/LCFormatterTest.php index 7fe8296..a37442f 100644 --- a/tests/Formatter/LCFormatterTest.php +++ b/tests/Formatter/LCFormatterTest.php @@ -13,17 +13,11 @@ */ class LCFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LCFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LIFormatterTest.php b/tests/Formatter/LIFormatterTest.php index 8146894..0437caa 100644 --- a/tests/Formatter/LIFormatterTest.php +++ b/tests/Formatter/LIFormatterTest.php @@ -13,17 +13,11 @@ */ class LIFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LIFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LKFormatterTest.php b/tests/Formatter/LKFormatterTest.php index f815fbf..3461755 100644 --- a/tests/Formatter/LKFormatterTest.php +++ b/tests/Formatter/LKFormatterTest.php @@ -13,17 +13,11 @@ */ class LKFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LKFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LRFormatterTest.php b/tests/Formatter/LRFormatterTest.php index 30d504b..dccc29e 100644 --- a/tests/Formatter/LRFormatterTest.php +++ b/tests/Formatter/LRFormatterTest.php @@ -13,17 +13,11 @@ */ class LRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LSFormatterTest.php b/tests/Formatter/LSFormatterTest.php index 22fde13..6108764 100644 --- a/tests/Formatter/LSFormatterTest.php +++ b/tests/Formatter/LSFormatterTest.php @@ -13,17 +13,11 @@ */ class LSFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LSFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LTFormatterTest.php b/tests/Formatter/LTFormatterTest.php index 318870e..5931f0f 100644 --- a/tests/Formatter/LTFormatterTest.php +++ b/tests/Formatter/LTFormatterTest.php @@ -13,17 +13,11 @@ */ class LTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LUFormatterTest.php b/tests/Formatter/LUFormatterTest.php index 2f26ef7..1137f92 100644 --- a/tests/Formatter/LUFormatterTest.php +++ b/tests/Formatter/LUFormatterTest.php @@ -13,17 +13,11 @@ */ class LUFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LUFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/LVFormatterTest.php b/tests/Formatter/LVFormatterTest.php index 0b092df..1df007b 100644 --- a/tests/Formatter/LVFormatterTest.php +++ b/tests/Formatter/LVFormatterTest.php @@ -13,17 +13,11 @@ */ class LVFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new LVFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MAFormatterTest.php b/tests/Formatter/MAFormatterTest.php index fe5f931..c1f7bfd 100644 --- a/tests/Formatter/MAFormatterTest.php +++ b/tests/Formatter/MAFormatterTest.php @@ -13,17 +13,11 @@ */ class MAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MCFormatterTest.php b/tests/Formatter/MCFormatterTest.php index ba6cfd9..300b304 100644 --- a/tests/Formatter/MCFormatterTest.php +++ b/tests/Formatter/MCFormatterTest.php @@ -13,17 +13,11 @@ */ class MCFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MCFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MDFormatterTest.php b/tests/Formatter/MDFormatterTest.php index 366d00e..675e1dd 100644 --- a/tests/Formatter/MDFormatterTest.php +++ b/tests/Formatter/MDFormatterTest.php @@ -13,17 +13,11 @@ */ class MDFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MDFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MEFormatterTest.php b/tests/Formatter/MEFormatterTest.php index 8793636..b64e35f 100644 --- a/tests/Formatter/MEFormatterTest.php +++ b/tests/Formatter/MEFormatterTest.php @@ -13,17 +13,11 @@ */ class MEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MFFormatterTest.php b/tests/Formatter/MFFormatterTest.php index 2e46923..04e6f74 100644 --- a/tests/Formatter/MFFormatterTest.php +++ b/tests/Formatter/MFFormatterTest.php @@ -13,17 +13,11 @@ */ class MFFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MFFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MGFormatterTest.php b/tests/Formatter/MGFormatterTest.php index c57e13c..31fbcb0 100644 --- a/tests/Formatter/MGFormatterTest.php +++ b/tests/Formatter/MGFormatterTest.php @@ -13,17 +13,11 @@ */ class MGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MHFormatterTest.php b/tests/Formatter/MHFormatterTest.php index 9dfd1e0..9da5ea6 100644 --- a/tests/Formatter/MHFormatterTest.php +++ b/tests/Formatter/MHFormatterTest.php @@ -13,17 +13,11 @@ */ class MHFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MHFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MKFormatterTest.php b/tests/Formatter/MKFormatterTest.php index 8f09e14..411feef 100644 --- a/tests/Formatter/MKFormatterTest.php +++ b/tests/Formatter/MKFormatterTest.php @@ -13,17 +13,11 @@ */ class MKFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MKFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MMFormatterTest.php b/tests/Formatter/MMFormatterTest.php index 2c7d9a8..7021666 100644 --- a/tests/Formatter/MMFormatterTest.php +++ b/tests/Formatter/MMFormatterTest.php @@ -13,17 +13,11 @@ */ class MMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MNFormatterTest.php b/tests/Formatter/MNFormatterTest.php index a2e7592..05aa698 100644 --- a/tests/Formatter/MNFormatterTest.php +++ b/tests/Formatter/MNFormatterTest.php @@ -13,17 +13,11 @@ */ class MNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MPFormatterTest.php b/tests/Formatter/MPFormatterTest.php index 4382f89..f876128 100644 --- a/tests/Formatter/MPFormatterTest.php +++ b/tests/Formatter/MPFormatterTest.php @@ -13,17 +13,11 @@ */ class MPFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MPFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MQFormatterTest.php b/tests/Formatter/MQFormatterTest.php index ed931d1..c174c17 100644 --- a/tests/Formatter/MQFormatterTest.php +++ b/tests/Formatter/MQFormatterTest.php @@ -13,17 +13,11 @@ */ class MQFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MQFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MSFormatterTest.php b/tests/Formatter/MSFormatterTest.php index 7762987..34babb4 100644 --- a/tests/Formatter/MSFormatterTest.php +++ b/tests/Formatter/MSFormatterTest.php @@ -13,17 +13,11 @@ */ class MSFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MSFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MTFormatterTest.php b/tests/Formatter/MTFormatterTest.php index b9dfbd5..95cf8c9 100644 --- a/tests/Formatter/MTFormatterTest.php +++ b/tests/Formatter/MTFormatterTest.php @@ -13,17 +13,11 @@ */ class MTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MUFormatterTest.php b/tests/Formatter/MUFormatterTest.php index c5de3c5..45a0498 100644 --- a/tests/Formatter/MUFormatterTest.php +++ b/tests/Formatter/MUFormatterTest.php @@ -13,17 +13,11 @@ */ class MUFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MUFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MVFormatterTest.php b/tests/Formatter/MVFormatterTest.php index 825d744..7db0053 100644 --- a/tests/Formatter/MVFormatterTest.php +++ b/tests/Formatter/MVFormatterTest.php @@ -13,17 +13,11 @@ */ class MVFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MVFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MXFormatterTest.php b/tests/Formatter/MXFormatterTest.php index ab604d6..784e9bd 100644 --- a/tests/Formatter/MXFormatterTest.php +++ b/tests/Formatter/MXFormatterTest.php @@ -13,17 +13,11 @@ */ class MXFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MXFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MYFormatterTest.php b/tests/Formatter/MYFormatterTest.php index 8ab0e28..60d1649 100644 --- a/tests/Formatter/MYFormatterTest.php +++ b/tests/Formatter/MYFormatterTest.php @@ -13,17 +13,11 @@ */ class MYFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MYFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/MZFormatterTest.php b/tests/Formatter/MZFormatterTest.php index c368f9d..d90f231 100644 --- a/tests/Formatter/MZFormatterTest.php +++ b/tests/Formatter/MZFormatterTest.php @@ -13,17 +13,11 @@ */ class MZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new MZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NCFormatterTest.php b/tests/Formatter/NCFormatterTest.php index 0f4f233..7d8ff4e 100644 --- a/tests/Formatter/NCFormatterTest.php +++ b/tests/Formatter/NCFormatterTest.php @@ -13,17 +13,11 @@ */ class NCFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NCFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NEFormatterTest.php b/tests/Formatter/NEFormatterTest.php index dbbbe8b..3338d52 100644 --- a/tests/Formatter/NEFormatterTest.php +++ b/tests/Formatter/NEFormatterTest.php @@ -13,17 +13,11 @@ */ class NEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NFFormatterTest.php b/tests/Formatter/NFFormatterTest.php index 165a808..cdd3510 100644 --- a/tests/Formatter/NFFormatterTest.php +++ b/tests/Formatter/NFFormatterTest.php @@ -13,17 +13,11 @@ */ class NFFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NFFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NGFormatterTest.php b/tests/Formatter/NGFormatterTest.php index 601be07..47bb225 100644 --- a/tests/Formatter/NGFormatterTest.php +++ b/tests/Formatter/NGFormatterTest.php @@ -13,17 +13,11 @@ */ class NGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NIFormatterTest.php b/tests/Formatter/NIFormatterTest.php index b890926..e141704 100644 --- a/tests/Formatter/NIFormatterTest.php +++ b/tests/Formatter/NIFormatterTest.php @@ -13,17 +13,11 @@ */ class NIFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NIFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NLFormatterTest.php b/tests/Formatter/NLFormatterTest.php index 8e674c4..ad52725 100644 --- a/tests/Formatter/NLFormatterTest.php +++ b/tests/Formatter/NLFormatterTest.php @@ -13,17 +13,11 @@ */ class NLFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NLFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NOFormatterTest.php b/tests/Formatter/NOFormatterTest.php index a9932f8..4edf629 100644 --- a/tests/Formatter/NOFormatterTest.php +++ b/tests/Formatter/NOFormatterTest.php @@ -13,17 +13,11 @@ */ class NOFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NOFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NPFormatterTest.php b/tests/Formatter/NPFormatterTest.php index 8a47e3a..d92477f 100644 --- a/tests/Formatter/NPFormatterTest.php +++ b/tests/Formatter/NPFormatterTest.php @@ -13,17 +13,11 @@ */ class NPFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NPFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/NZFormatterTest.php b/tests/Formatter/NZFormatterTest.php index 98c0e75..ef4c887 100644 --- a/tests/Formatter/NZFormatterTest.php +++ b/tests/Formatter/NZFormatterTest.php @@ -13,17 +13,11 @@ */ class NZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new NZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/OMFormatterTest.php b/tests/Formatter/OMFormatterTest.php index ed833a4..fae522c 100644 --- a/tests/Formatter/OMFormatterTest.php +++ b/tests/Formatter/OMFormatterTest.php @@ -13,17 +13,11 @@ */ class OMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new OMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PAFormatterTest.php b/tests/Formatter/PAFormatterTest.php index 549690d..8d2c4c2 100644 --- a/tests/Formatter/PAFormatterTest.php +++ b/tests/Formatter/PAFormatterTest.php @@ -13,17 +13,11 @@ */ class PAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PEFormatterTest.php b/tests/Formatter/PEFormatterTest.php index 498f381..354cbc9 100644 --- a/tests/Formatter/PEFormatterTest.php +++ b/tests/Formatter/PEFormatterTest.php @@ -13,17 +13,11 @@ */ class PEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PFFormatterTest.php b/tests/Formatter/PFFormatterTest.php index 1dc74eb..2ee16a5 100644 --- a/tests/Formatter/PFFormatterTest.php +++ b/tests/Formatter/PFFormatterTest.php @@ -13,17 +13,11 @@ */ class PFFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PFFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PGFormatterTest.php b/tests/Formatter/PGFormatterTest.php index b03125d..fdcb97f 100644 --- a/tests/Formatter/PGFormatterTest.php +++ b/tests/Formatter/PGFormatterTest.php @@ -13,17 +13,11 @@ */ class PGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PHFormatterTest.php b/tests/Formatter/PHFormatterTest.php index e0322aa..e6e8c9f 100644 --- a/tests/Formatter/PHFormatterTest.php +++ b/tests/Formatter/PHFormatterTest.php @@ -13,17 +13,11 @@ */ class PHFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PHFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PKFormatterTest.php b/tests/Formatter/PKFormatterTest.php index 5c4a749..413c1c4 100644 --- a/tests/Formatter/PKFormatterTest.php +++ b/tests/Formatter/PKFormatterTest.php @@ -13,17 +13,11 @@ */ class PKFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PKFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PLFormatterTest.php b/tests/Formatter/PLFormatterTest.php index d9145ca..0097807 100644 --- a/tests/Formatter/PLFormatterTest.php +++ b/tests/Formatter/PLFormatterTest.php @@ -13,17 +13,11 @@ */ class PLFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PLFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PMFormatterTest.php b/tests/Formatter/PMFormatterTest.php index 3881a62..62e1c69 100644 --- a/tests/Formatter/PMFormatterTest.php +++ b/tests/Formatter/PMFormatterTest.php @@ -13,17 +13,11 @@ */ class PMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PNFormatterTest.php b/tests/Formatter/PNFormatterTest.php index 52ecaf9..f4fc0a8 100644 --- a/tests/Formatter/PNFormatterTest.php +++ b/tests/Formatter/PNFormatterTest.php @@ -13,17 +13,11 @@ */ class PNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PRFormatterTest.php b/tests/Formatter/PRFormatterTest.php index ba265ba..3159bfd 100644 --- a/tests/Formatter/PRFormatterTest.php +++ b/tests/Formatter/PRFormatterTest.php @@ -13,17 +13,11 @@ */ class PRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PSFormatterTest.php b/tests/Formatter/PSFormatterTest.php index 46dba86..6156f05 100644 --- a/tests/Formatter/PSFormatterTest.php +++ b/tests/Formatter/PSFormatterTest.php @@ -13,17 +13,11 @@ */ class PSFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PSFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PTFormatterTest.php b/tests/Formatter/PTFormatterTest.php index fde049f..0abacc5 100644 --- a/tests/Formatter/PTFormatterTest.php +++ b/tests/Formatter/PTFormatterTest.php @@ -13,17 +13,11 @@ */ class PTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PWFormatterTest.php b/tests/Formatter/PWFormatterTest.php index ebb6ec1..41304ec 100644 --- a/tests/Formatter/PWFormatterTest.php +++ b/tests/Formatter/PWFormatterTest.php @@ -13,17 +13,11 @@ */ class PWFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PWFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/PYFormatterTest.php b/tests/Formatter/PYFormatterTest.php index 23ca442..a703569 100644 --- a/tests/Formatter/PYFormatterTest.php +++ b/tests/Formatter/PYFormatterTest.php @@ -13,17 +13,11 @@ */ class PYFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new PYFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/REFormatterTest.php b/tests/Formatter/REFormatterTest.php index 57eac86..ea61948 100644 --- a/tests/Formatter/REFormatterTest.php +++ b/tests/Formatter/REFormatterTest.php @@ -13,17 +13,11 @@ */ class REFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new REFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ROFormatterTest.php b/tests/Formatter/ROFormatterTest.php index 3482c87..719bc8d 100644 --- a/tests/Formatter/ROFormatterTest.php +++ b/tests/Formatter/ROFormatterTest.php @@ -13,17 +13,11 @@ */ class ROFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ROFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/RSFormatterTest.php b/tests/Formatter/RSFormatterTest.php index 700a04e..b6d48be 100644 --- a/tests/Formatter/RSFormatterTest.php +++ b/tests/Formatter/RSFormatterTest.php @@ -13,17 +13,11 @@ */ class RSFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new RSFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/RUFormatterTest.php b/tests/Formatter/RUFormatterTest.php index 2349ef1..5b7648c 100644 --- a/tests/Formatter/RUFormatterTest.php +++ b/tests/Formatter/RUFormatterTest.php @@ -13,17 +13,11 @@ */ class RUFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new RUFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SAFormatterTest.php b/tests/Formatter/SAFormatterTest.php index 9f1605f..23139fc 100644 --- a/tests/Formatter/SAFormatterTest.php +++ b/tests/Formatter/SAFormatterTest.php @@ -13,17 +13,11 @@ */ class SAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SDFormatterTest.php b/tests/Formatter/SDFormatterTest.php index 9c56a07..105e833 100644 --- a/tests/Formatter/SDFormatterTest.php +++ b/tests/Formatter/SDFormatterTest.php @@ -13,17 +13,11 @@ */ class SDFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SDFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SEFormatterTest.php b/tests/Formatter/SEFormatterTest.php index b251e3c..0ae7d13 100644 --- a/tests/Formatter/SEFormatterTest.php +++ b/tests/Formatter/SEFormatterTest.php @@ -13,17 +13,11 @@ */ class SEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SGFormatterTest.php b/tests/Formatter/SGFormatterTest.php index 434a0d0..db026ab 100644 --- a/tests/Formatter/SGFormatterTest.php +++ b/tests/Formatter/SGFormatterTest.php @@ -13,17 +13,11 @@ */ class SGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SHFormatterTest.php b/tests/Formatter/SHFormatterTest.php index 35bd78f..2b45ce9 100644 --- a/tests/Formatter/SHFormatterTest.php +++ b/tests/Formatter/SHFormatterTest.php @@ -13,17 +13,11 @@ */ class SHFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SHFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SIFormatterTest.php b/tests/Formatter/SIFormatterTest.php index 1fbe511..26f3520 100644 --- a/tests/Formatter/SIFormatterTest.php +++ b/tests/Formatter/SIFormatterTest.php @@ -13,17 +13,11 @@ */ class SIFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SIFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SJFormatterTest.php b/tests/Formatter/SJFormatterTest.php index 0c56f18..03a46ad 100644 --- a/tests/Formatter/SJFormatterTest.php +++ b/tests/Formatter/SJFormatterTest.php @@ -13,17 +13,11 @@ */ class SJFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SJFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SKFormatterTest.php b/tests/Formatter/SKFormatterTest.php index 7f86d18..e60b299 100644 --- a/tests/Formatter/SKFormatterTest.php +++ b/tests/Formatter/SKFormatterTest.php @@ -13,17 +13,11 @@ */ class SKFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SKFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SMFormatterTest.php b/tests/Formatter/SMFormatterTest.php index ed3b57a..76fa13d 100644 --- a/tests/Formatter/SMFormatterTest.php +++ b/tests/Formatter/SMFormatterTest.php @@ -13,17 +13,11 @@ */ class SMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SNFormatterTest.php b/tests/Formatter/SNFormatterTest.php index c233822..0fcec6e 100644 --- a/tests/Formatter/SNFormatterTest.php +++ b/tests/Formatter/SNFormatterTest.php @@ -13,17 +13,11 @@ */ class SNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SVFormatterTest.php b/tests/Formatter/SVFormatterTest.php index 378fe8d..cb82699 100644 --- a/tests/Formatter/SVFormatterTest.php +++ b/tests/Formatter/SVFormatterTest.php @@ -13,17 +13,11 @@ */ class SVFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SVFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/SZFormatterTest.php b/tests/Formatter/SZFormatterTest.php index 7a5e00b..863b47f 100644 --- a/tests/Formatter/SZFormatterTest.php +++ b/tests/Formatter/SZFormatterTest.php @@ -13,17 +13,11 @@ */ class SZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new SZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TCFormatterTest.php b/tests/Formatter/TCFormatterTest.php index 2aa35b4..857c4de 100644 --- a/tests/Formatter/TCFormatterTest.php +++ b/tests/Formatter/TCFormatterTest.php @@ -13,17 +13,11 @@ */ class TCFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TCFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TFFormatterTest.php b/tests/Formatter/TFFormatterTest.php index f316fb8..611c1a7 100644 --- a/tests/Formatter/TFFormatterTest.php +++ b/tests/Formatter/TFFormatterTest.php @@ -13,17 +13,11 @@ */ class TFFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TFFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/THFormatterTest.php b/tests/Formatter/THFormatterTest.php index 6372263..88fcb93 100644 --- a/tests/Formatter/THFormatterTest.php +++ b/tests/Formatter/THFormatterTest.php @@ -13,17 +13,11 @@ */ class THFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new THFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TJFormatterTest.php b/tests/Formatter/TJFormatterTest.php index 2ff1188..ee52353 100644 --- a/tests/Formatter/TJFormatterTest.php +++ b/tests/Formatter/TJFormatterTest.php @@ -13,17 +13,11 @@ */ class TJFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TJFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TMFormatterTest.php b/tests/Formatter/TMFormatterTest.php index b1bce3a..a65878d 100644 --- a/tests/Formatter/TMFormatterTest.php +++ b/tests/Formatter/TMFormatterTest.php @@ -13,17 +13,11 @@ */ class TMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TNFormatterTest.php b/tests/Formatter/TNFormatterTest.php index 6b747c2..9607274 100644 --- a/tests/Formatter/TNFormatterTest.php +++ b/tests/Formatter/TNFormatterTest.php @@ -13,17 +13,11 @@ */ class TNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TRFormatterTest.php b/tests/Formatter/TRFormatterTest.php index 5cb9f42..4acb9dc 100644 --- a/tests/Formatter/TRFormatterTest.php +++ b/tests/Formatter/TRFormatterTest.php @@ -13,17 +13,11 @@ */ class TRFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TRFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TTFormatterTest.php b/tests/Formatter/TTFormatterTest.php index cb13366..a8d3e6e 100644 --- a/tests/Formatter/TTFormatterTest.php +++ b/tests/Formatter/TTFormatterTest.php @@ -13,17 +13,11 @@ */ class TTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TWFormatterTest.php b/tests/Formatter/TWFormatterTest.php index 0c679ab..20487dd 100644 --- a/tests/Formatter/TWFormatterTest.php +++ b/tests/Formatter/TWFormatterTest.php @@ -13,17 +13,11 @@ */ class TWFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TWFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/TZFormatterTest.php b/tests/Formatter/TZFormatterTest.php index 392ff53..5751edf 100644 --- a/tests/Formatter/TZFormatterTest.php +++ b/tests/Formatter/TZFormatterTest.php @@ -13,17 +13,11 @@ */ class TZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new TZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/UAFormatterTest.php b/tests/Formatter/UAFormatterTest.php index 261f47d..d5f9353 100644 --- a/tests/Formatter/UAFormatterTest.php +++ b/tests/Formatter/UAFormatterTest.php @@ -13,17 +13,11 @@ */ class UAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new UAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/USFormatterTest.php b/tests/Formatter/USFormatterTest.php index 41eec7d..b1b177a 100644 --- a/tests/Formatter/USFormatterTest.php +++ b/tests/Formatter/USFormatterTest.php @@ -13,17 +13,11 @@ */ class USFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new USFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/UYFormatterTest.php b/tests/Formatter/UYFormatterTest.php index c01cf06..c075ceb 100644 --- a/tests/Formatter/UYFormatterTest.php +++ b/tests/Formatter/UYFormatterTest.php @@ -13,17 +13,11 @@ */ class UYFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new UYFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/UZFormatterTest.php b/tests/Formatter/UZFormatterTest.php index a4dc912..6da4977 100644 --- a/tests/Formatter/UZFormatterTest.php +++ b/tests/Formatter/UZFormatterTest.php @@ -13,17 +13,11 @@ */ class UZFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new UZFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/VAFormatterTest.php b/tests/Formatter/VAFormatterTest.php index fdcc718..24794c3 100644 --- a/tests/Formatter/VAFormatterTest.php +++ b/tests/Formatter/VAFormatterTest.php @@ -13,17 +13,11 @@ */ class VAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new VAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/VCFormatterTest.php b/tests/Formatter/VCFormatterTest.php index 3818393..7f19d2f 100644 --- a/tests/Formatter/VCFormatterTest.php +++ b/tests/Formatter/VCFormatterTest.php @@ -13,17 +13,11 @@ */ class VCFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new VCFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/VEFormatterTest.php b/tests/Formatter/VEFormatterTest.php index 14853f4..2a2020e 100644 --- a/tests/Formatter/VEFormatterTest.php +++ b/tests/Formatter/VEFormatterTest.php @@ -13,17 +13,11 @@ */ class VEFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new VEFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/VGFormatterTest.php b/tests/Formatter/VGFormatterTest.php index 54a3897..891bb87 100644 --- a/tests/Formatter/VGFormatterTest.php +++ b/tests/Formatter/VGFormatterTest.php @@ -13,17 +13,11 @@ */ class VGFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new VGFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/VIFormatterTest.php b/tests/Formatter/VIFormatterTest.php index 789521d..7d9aa8c 100644 --- a/tests/Formatter/VIFormatterTest.php +++ b/tests/Formatter/VIFormatterTest.php @@ -13,17 +13,11 @@ */ class VIFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new VIFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/VNFormatterTest.php b/tests/Formatter/VNFormatterTest.php index 0546ddd..651a450 100644 --- a/tests/Formatter/VNFormatterTest.php +++ b/tests/Formatter/VNFormatterTest.php @@ -13,17 +13,11 @@ */ class VNFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new VNFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/WFFormatterTest.php b/tests/Formatter/WFFormatterTest.php index 9abc121..53d84f3 100644 --- a/tests/Formatter/WFFormatterTest.php +++ b/tests/Formatter/WFFormatterTest.php @@ -13,17 +13,11 @@ */ class WFFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new WFFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/WSFormatterTest.php b/tests/Formatter/WSFormatterTest.php index f81d26e..72eb3a9 100644 --- a/tests/Formatter/WSFormatterTest.php +++ b/tests/Formatter/WSFormatterTest.php @@ -13,17 +13,11 @@ */ class WSFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new WSFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/YTFormatterTest.php b/tests/Formatter/YTFormatterTest.php index bb286c8..506625d 100644 --- a/tests/Formatter/YTFormatterTest.php +++ b/tests/Formatter/YTFormatterTest.php @@ -13,17 +13,11 @@ */ class YTFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new YTFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ZAFormatterTest.php b/tests/Formatter/ZAFormatterTest.php index f6332d6..e23eeb8 100644 --- a/tests/Formatter/ZAFormatterTest.php +++ b/tests/Formatter/ZAFormatterTest.php @@ -13,17 +13,11 @@ */ class ZAFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ZAFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ diff --git a/tests/Formatter/ZMFormatterTest.php b/tests/Formatter/ZMFormatterTest.php index 8570813..bea60e0 100644 --- a/tests/Formatter/ZMFormatterTest.php +++ b/tests/Formatter/ZMFormatterTest.php @@ -13,17 +13,11 @@ */ class ZMFormatterTest extends CountryPostcodeFormatterTest { - /** - * {@inheritdoc} - */ protected function getFormatter() : CountryPostcodeFormatter { return new ZMFormatter(); } - /** - * {@inheritdoc} - */ public function providerFormat() : array { return [ From 6980636c747c455ed204005b705afbc1e4050fc8 Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Fri, 20 Sep 2024 01:09:15 +0200 Subject: [PATCH 07/10] Add types --- src/Formatter/GBFormatter.php | 2 +- src/PostcodeFormatter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Formatter/GBFormatter.php b/src/Formatter/GBFormatter.php index 148a446..b54dc87 100644 --- a/src/Formatter/GBFormatter.php +++ b/src/Formatter/GBFormatter.php @@ -51,7 +51,7 @@ class GBFormatter implements CountryPostcodeFormatter * * @var string[]|null */ - private $patterns = null; + private ?array $patterns = null; public function format(string $postcode) : ?string { diff --git a/src/PostcodeFormatter.php b/src/PostcodeFormatter.php index 239e1bf..1fef565 100644 --- a/src/PostcodeFormatter.php +++ b/src/PostcodeFormatter.php @@ -12,7 +12,7 @@ class PostcodeFormatter /** * The country postcode formatters, indexed by country code. * - * @var (CountryPostcodeFormatter|null)[] + * @var array */ private array $formatters = []; From c8c53ee3666387ae62e066ed7fc7588fd75af05a Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Fri, 20 Sep 2024 01:10:38 +0200 Subject: [PATCH 08/10] Update Psalm to v5.26.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 7ed9e41..6194dad 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,7 @@ "require-dev": { "phpunit/phpunit": "^9.0", "php-coveralls/php-coveralls": "^2.0", - "vimeo/psalm": "5.17.0" + "vimeo/psalm": "5.26.1" }, "autoload": { "psr-4": { From 59460ca66b7d796987924b2dea0316ac7dc60199 Mon Sep 17 00:00:00 2001 From: rubentebogt Date: Wed, 10 Jul 2024 15:58:38 +0200 Subject: [PATCH 09/10] Enhance exception objects with getters --- .gitignore | 1 + src/InvalidPostcodeException.php | 35 ++++++++++++++++++++++++++++++++ src/PostcodeFormatter.php | 6 +++--- src/UnknownCountryException.php | 22 ++++++++++++++++++++ 4 files changed, 61 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4901aab..811e523 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /vendor /composer.lock /.phpunit.result.cache +/.idea \ No newline at end of file diff --git a/src/InvalidPostcodeException.php b/src/InvalidPostcodeException.php index 629f70c..5565b89 100644 --- a/src/InvalidPostcodeException.php +++ b/src/InvalidPostcodeException.php @@ -9,4 +9,39 @@ */ class InvalidPostcodeException extends \Exception { + protected string $postcode; + protected string $country; + + /** + * Construct exception thrown when trying to format an invalid postcode. + * + * @param string $postcode + * @param string $country + */ + public function __construct(string $postcode, string $country) + { + parent::__construct('Invalid postcode: ' . $postcode); + $this->postcode = $postcode; + $this->country = $country; + } + + /** + * Get the invalid postcode associated with this exception. + * + * @return string + */ + public function getPostcode(): string + { + return $this->postcode; + } + + /** + * Get the country code associated with this exception. + * + * @return string + */ + public function getCountryCode(): string + { + return $this->country; + } } diff --git a/src/PostcodeFormatter.php b/src/PostcodeFormatter.php index 1fef565..1cb69fc 100644 --- a/src/PostcodeFormatter.php +++ b/src/PostcodeFormatter.php @@ -38,17 +38,17 @@ public function format(string $country, string $postcode) : string $formatter = $this->getFormatter($country); if ($formatter === null) { - throw new UnknownCountryException('Unknown country: ' . $country); + throw new UnknownCountryException($country); } if (preg_match('/^[A-Z0-9]+$/', $postcode) !== 1) { - throw new InvalidPostcodeException('Invalid postcode: ' . $postcode); + throw new InvalidPostcodeException($postcode, $country); } $formatted = $formatter->format($postcode); if ($formatted === null) { - throw new InvalidPostcodeException('Invalid postcode: ' . $postcode); + throw new InvalidPostcodeException($postcode, $country); } return $formatted; diff --git a/src/UnknownCountryException.php b/src/UnknownCountryException.php index 47cfdd5..0f083db 100644 --- a/src/UnknownCountryException.php +++ b/src/UnknownCountryException.php @@ -9,4 +9,26 @@ */ class UnknownCountryException extends \Exception { + protected string $country; + + /** + * Construct exception thrown when an unknown country code is provided. + * + * @param string $country + */ + public function __construct(string $country) + { + parent::__construct('Unknown country: ' . $country); + $this->country = $country; + } + + /** + * Get the unknown country code associated with this exception. + * + * @return string + */ + public function getCountryCode(): string + { + return $this->country; + } } From c501fa0436a9ea59efcb360f82a81bc4c06bc801 Mon Sep 17 00:00:00 2001 From: rubentebogt Date: Fri, 20 Sep 2024 17:56:14 +0200 Subject: [PATCH 10/10] Fix conflixts strip countrycode prefixes --- src/FormatHelper/StripCountryCode.php | 34 +++++++++++++++++++++++++++ src/Formatter/ATFormatter.php | 5 ++++ src/Formatter/BEFormatter.php | 5 ++++ src/Formatter/LUFormatter.php | 5 ++++ tests/PostcodeFormatterTest.php | 14 ++++++++++- 5 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 src/FormatHelper/StripCountryCode.php diff --git a/src/FormatHelper/StripCountryCode.php b/src/FormatHelper/StripCountryCode.php new file mode 100644 index 0000000..ec7637b --- /dev/null +++ b/src/FormatHelper/StripCountryCode.php @@ -0,0 +1,34 @@ +getShortName(), 0, $validCountryCodeLength); + + if (substr($postcode, 0, $validCountryCodeLength) === $code) { + $postcode = substr($postcode, $validCountryCodeLength); + } + + return $postcode; + } +} diff --git a/src/Formatter/ATFormatter.php b/src/Formatter/ATFormatter.php index 1ab422c..b9229c0 100644 --- a/src/Formatter/ATFormatter.php +++ b/src/Formatter/ATFormatter.php @@ -5,6 +5,7 @@ namespace Brick\Postcode\Formatter; use Brick\Postcode\CountryPostcodeFormatter; +use Brick\Postcode\FormatHelper\StripCountryCode; /** * Validates and formats postcodes in Austria. @@ -16,8 +17,12 @@ */ class ATFormatter implements CountryPostcodeFormatter { + use StripCountryCode; + public function format(string $postcode) : ?string { + $postcode = $this->stripCountryCode($postcode); + if (preg_match('/^[1-9][0-9]{3}$/', $postcode) !== 1) { return null; } diff --git a/src/Formatter/BEFormatter.php b/src/Formatter/BEFormatter.php index df200e4..285318f 100644 --- a/src/Formatter/BEFormatter.php +++ b/src/Formatter/BEFormatter.php @@ -5,6 +5,7 @@ namespace Brick\Postcode\Formatter; use Brick\Postcode\CountryPostcodeFormatter; +use Brick\Postcode\FormatHelper\StripCountryCode; /** * Validates and formats postcodes in Belgium. @@ -16,8 +17,12 @@ */ class BEFormatter implements CountryPostcodeFormatter { + use StripCountryCode; + public function format(string $postcode) : ?string { + $postcode = $this->stripCountryCode($postcode); + if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { return null; } diff --git a/src/Formatter/LUFormatter.php b/src/Formatter/LUFormatter.php index bdea984..8188bb7 100644 --- a/src/Formatter/LUFormatter.php +++ b/src/Formatter/LUFormatter.php @@ -5,6 +5,7 @@ namespace Brick\Postcode\Formatter; use Brick\Postcode\CountryPostcodeFormatter; +use Brick\Postcode\FormatHelper\StripCountryCode; /** * Validates and formats postcodes in Luxembourg. @@ -16,8 +17,12 @@ */ class LUFormatter implements CountryPostcodeFormatter { + use StripCountryCode; + public function format(string $postcode) : ?string { + $postcode = $this->stripCountryCode($postcode); + if (preg_match('/^[0-9]{4}$/', $postcode) !== 1) { return null; } diff --git a/tests/PostcodeFormatterTest.php b/tests/PostcodeFormatterTest.php index b22dae1..184e6b2 100644 --- a/tests/PostcodeFormatterTest.php +++ b/tests/PostcodeFormatterTest.php @@ -15,6 +15,9 @@ */ class PostcodeFormatterTest extends TestCase { + /** + * @throws InvalidPostcodeException + */ public function testFormatUnknownCountry() : void { $formatter = new PostcodeFormatter(); @@ -30,6 +33,7 @@ public function testFormatUnknownCountry() : void * @param string $postcode * * @return void + * @throws UnknownCountryException */ public function testFormatInvalidPostcode(string $country, string $postcode) : void { @@ -49,6 +53,9 @@ public function providerFormatInvalidPostcode() : array ['FR', '123456'], ['GB', 'ABCDEFG'], ['PL', '12*345'], + ['AT', 'T-8084'], + ['BE', 'E-1245'], + ['LU', 'X2556'], ]; } @@ -60,6 +67,8 @@ public function providerFormatInvalidPostcode() : array * @param string $expectedOutput * * @return void + * @throws InvalidPostcodeException + * @throws UnknownCountryException */ public function testFormat(string $country, string $postcode, string $expectedOutput) : void { @@ -76,7 +85,10 @@ public function providerFormat() : array return [ ['GB', 'WC2E9RZ', 'WC2E 9RZ'], ['gb', 'wc-2E9RZ', 'WC2E 9RZ'], - ['PL', '12345', '12-345'] + ['PL', '12345', '12-345'], + ['AT', 'A-8084', '8084'], + ['BE', 'B-1245', '1245'], + ['LU', 'L2556', '2556'], ]; }