Skip to content

Commit 1e4adba

Browse files
committed
ACP2E-1650:Create Shipment API
- fixed static issues
1 parent bbb6732 commit 1e4adba

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/code/Magento/Bundle/Model/Sales/Order/BundleOrderTypeValidator.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ private function checkChildItem(Item $orderItem, array $shipmentInfo): ?Phrase
110110
'%3 should be shipped instead.',
111111
$orderItem->getParentItem()->getSku(),
112112
__('Together'),
113-
__('Bundle product itself'),
113+
__('Bundle product itself')
114114
);
115115
}
116116

@@ -150,18 +150,17 @@ private function checkBundleItem(array $shippingItemInfo, array $shippingInfo):
150150
'%3 should be shipped instead.',
151151
$orderItem->getSku(),
152152
__('Together'),
153-
__('Bundle product itself'),
153+
__('Bundle product itself')
154154
);
155155
}
156156
if ($orderItem->getProduct()->getShipmentType() === self::SHIPMENT_TYPE_SEPARATELY &&
157157
false === $this->hasChildrenInShipping($shipmentItem, $shippingInfo)
158158
) {
159159
$result = __(
160160
'Cannot create shipment as bundle product "%1" has shipment type "%2". ' .
161-
'%3.',
161+
'Shipment should also incorporate bundle options.',
162162
$orderItem->getSku(),
163-
__('Separately'),
164-
__('Shipment should also incorporate bundle options'),
163+
__('Separately')
165164
);
166165
}
167166
return $result;

0 commit comments

Comments
 (0)