Skip to content

Commit 6d2c954

Browse files
committed
ACP2E-1650:Create Shipment API
- addressed CR feedback
1 parent 1e4adba commit 6d2c954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(Request $request)
5656
*/
5757
public function isValid($value): bool
5858
{
59-
if (false === $this->canValidate()) {
59+
if (false === $this->validationNeeded()) {
6060
return true;
6161
}
6262

@@ -212,7 +212,7 @@ private function hasChildrenInShipping(ShipmentItemInterface $bundleItem, array
212212
*
213213
* @return bool
214214
*/
215-
private function canValidate(): bool
215+
private function validationNeeded(): bool
216216
{
217217
return str_contains(strtolower($this->request->getUri()->getPath()), self::SHIPMENT_API_ROUTE);
218218
}

0 commit comments

Comments
 (0)