Skip to content

Commit

Permalink
ENGCOM-3850: Static test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-bystritsky committed Jan 16, 2019
1 parent eab5472 commit 204e9d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/code/Magento/Ups/Model/Carrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,9 @@ public function setRequest(RateRequest $request)
}

// For UPS, Las Palmas and Santa Cruz de Tenerife will be represented by Canary Islands country
if (
$destCountry == self::SPAIN_COUNTRY_ID &&
($request->getDestRegionCode() == self::LAS_PALMAS_REGION_ID || $request->getDestRegionCode() == self::SANTA_CRUZ_DE_TENERIFE_REGION_ID)
if ($destCountry === self::SPAIN_COUNTRY_ID &&
($request->getDestRegionCode() === self::LAS_PALMAS_REGION_ID
|| $request->getDestRegionCode() === self::SANTA_CRUZ_DE_TENERIFE_REGION_ID)
) {
$destCountry = self::CANARY_ISLANDS_COUNTRY_ID;
}
Expand Down Expand Up @@ -1708,6 +1708,7 @@ public function getCustomizableContainerTypes()

/**
* Get delivery confirmation level based on origin/destination
*
* Return null if delivery confirmation is not acceptable
*
* @param string|null $countyDestination
Expand Down

0 comments on commit 204e9d8

Please sign in to comment.