Skip to content

Commit

Permalink
MAGETWO-70277: Fix formatting for USPS Carrier #10062
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Korshenko authored Jun 27, 2017
2 parents 68a79d9 + a88b41e commit bed60c7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions app/code/Magento/Usps/Model/Carrier.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Usps\Model;

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

if ($this->_isUSCountry($r->getDestCountryId())) {
$xml = $this->_xmlElFactory->create(

['data' => '<?xml version="1.0" encoding="UTF-8"?><RateV4Request/>']
);
$xml->addAttribute('USERID', $r->getUserId());
Expand Down Expand Up @@ -461,7 +458,6 @@ protected function _getXmlQuotes()
$api = 'RateV4';
} else {
$xml = $this->_xmlElFactory->create(

['data' => '<?xml version = "1.0" encoding = "UTF-8"?><IntlRateV2Request/>']
);
$xml->addAttribute('USERID', $r->getUserId());
Expand Down Expand Up @@ -1946,7 +1942,7 @@ protected function _doShipmentRequest(\Magento\Framework\DataObject $request)
*/
public function getContainerTypes(\Magento\Framework\DataObject $params = null)
{
if (is_null($params)) {
if ($params === null) {
return $this->_getAllowedContainers();
}

Expand Down Expand Up @@ -2068,7 +2064,7 @@ protected function _parseZip($zipString, $returnFull = false)
private function isServiceAvailable(\SimpleXMLElement $service)
{
// Allow services which which don't provide any ExtraServices
if(empty($service->ExtraServices->children()->count())) {
if (empty($service->ExtraServices->children()->count())) {
return true;
}

Expand Down

0 comments on commit bed60c7

Please sign in to comment.