Skip to content

Commit bed60c7

Browse files
author
Oleksii Korshenko
authored
MAGETWO-70277: Fix formatting for USPS Carrier #10062
2 parents 68a79d9 + a88b41e commit bed60c7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

app/code/Magento/Usps/Model/Carrier.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
// @codingStandardsIgnoreFile
8-
97
namespace Magento\Usps\Model;
108

119
use Magento\Framework\App\ObjectManager;
@@ -413,7 +411,6 @@ protected function _getXmlQuotes()
413411

414412
if ($this->_isUSCountry($r->getDestCountryId())) {
415413
$xml = $this->_xmlElFactory->create(
416-
417414
['data' => '<?xml version="1.0" encoding="UTF-8"?><RateV4Request/>']
418415
);
419416
$xml->addAttribute('USERID', $r->getUserId());
@@ -461,7 +458,6 @@ protected function _getXmlQuotes()
461458
$api = 'RateV4';
462459
} else {
463460
$xml = $this->_xmlElFactory->create(
464-
465461
['data' => '<?xml version = "1.0" encoding = "UTF-8"?><IntlRateV2Request/>']
466462
);
467463
$xml->addAttribute('USERID', $r->getUserId());
@@ -1946,7 +1942,7 @@ protected function _doShipmentRequest(\Magento\Framework\DataObject $request)
19461942
*/
19471943
public function getContainerTypes(\Magento\Framework\DataObject $params = null)
19481944
{
1949-
if (is_null($params)) {
1945+
if ($params === null) {
19501946
return $this->_getAllowedContainers();
19511947
}
19521948

@@ -2068,7 +2064,7 @@ protected function _parseZip($zipString, $returnFull = false)
20682064
private function isServiceAvailable(\SimpleXMLElement $service)
20692065
{
20702066
// Allow services which which don't provide any ExtraServices
2071-
if(empty($service->ExtraServices->children()->count())) {
2067+
if (empty($service->ExtraServices->children()->count())) {
20722068
return true;
20732069
}
20742070

0 commit comments

Comments
 (0)