File tree Expand file tree Collapse file tree 3 files changed +0
-57
lines changed Expand file tree Collapse file tree 3 files changed +0
-57
lines changed Original file line number Diff line number Diff line change @@ -1168,17 +1168,6 @@ public function setBoxNumber(?string $boxNumber): self
1168
1168
*/
1169
1169
public function encodeStreet (array $ consignmentEncoded ): array
1170
1170
{
1171
- if ($ this ->getCountry () === self ::CC_NL ) {
1172
- return array_merge_recursive ($ consignmentEncoded , [
1173
- 'recipient ' => [
1174
- 'street ' => $ this ->getStreet (true ),
1175
- 'street_additional_info ' => $ this ->getStreetAdditionalInfo (),
1176
- 'number ' => $ this ->getNumber (),
1177
- 'number_suffix ' => (string ) $ this ->getNumberSuffix (),
1178
- ],
1179
- ]);
1180
- }
1181
-
1182
1171
$ consignmentEncoded ['recipient ' ]['street ' ] = $ this ->getFullStreet (true );
1183
1172
$ consignmentEncoded ['recipient ' ]['street_additional_info ' ] = $ this ->getStreetAdditionalInfo ();
1184
1173
Original file line number Diff line number Diff line change @@ -44,30 +44,6 @@ class BpostConsignment extends AbstractConsignment
44
44
*/
45
45
protected $ validatorClass = BpostConsignmentValidator::class;
46
46
47
- /**
48
- * @param array $consignmentEncoded
49
- *
50
- * @return array
51
- * @throws \MyParcelNL\Sdk\src\Exception\MissingFieldException
52
- */
53
- public function encodeStreet (array $ consignmentEncoded ): array
54
- {
55
- if (self ::CC_BE === $ this ->getCountry ()) {
56
- return array_merge_recursive ($ consignmentEncoded , [
57
- 'recipient ' => [
58
- 'street ' => $ this ->getStreet (true ),
59
- 'street_additional_info ' => $ this ->getStreetAdditionalInfo (),
60
- 'number ' => $ this ->getNumber (),
61
- 'box_number ' => (string ) $ this ->getBoxNumber (),
62
- 'number_suffix ' => (string ) $ this ->getNumberSuffix (),
63
- ],
64
- ]);
65
- }
66
-
67
- return parent ::encodeStreet ($ consignmentEncoded );
68
- }
69
-
70
-
71
47
/**
72
48
* @return string
73
49
*/
Original file line number Diff line number Diff line change @@ -50,28 +50,6 @@ public function getAllowedPackageTypes(): array
50
50
];
51
51
}
52
52
53
- /**
54
- * @param array $consignmentEncoded
55
- *
56
- * @return array
57
- * @throws \MyParcelNL\Sdk\src\Exception\MissingFieldException
58
- */
59
- public function encodeStreet (array $ consignmentEncoded ): array
60
- {
61
- if (self ::CC_BE === $ this ->getCountry ()) {
62
- return array_merge_recursive ($ consignmentEncoded , [
63
- 'recipient ' => [
64
- 'street ' => $ this ->getStreet (true ),
65
- 'street_additional_info ' => $ this ->getStreetAdditionalInfo (),
66
- 'number ' => $ this ->getNumber (),
67
- 'box_number ' => (string ) $ this ->getBoxNumber (),
68
- ],
69
- ]);
70
- }
71
-
72
- return parent ::encodeStreet ($ consignmentEncoded );
73
- }
74
-
75
53
/**
76
54
* @return string
77
55
*/
You can’t perform that action at this time.
0 commit comments