|
4 | 4 | * See COPYING.txt for license details.
|
5 | 5 | */
|
6 | 6 |
|
7 |
| -// @codingStandardsIgnoreFile |
8 |
| - |
9 | 7 | namespace Magento\Usps\Model;
|
10 | 8 |
|
11 | 9 | use Magento\Framework\App\ObjectManager;
|
@@ -413,7 +411,6 @@ protected function _getXmlQuotes()
|
413 | 411 |
|
414 | 412 | if ($this->_isUSCountry($r->getDestCountryId())) {
|
415 | 413 | $xml = $this->_xmlElFactory->create(
|
416 |
| - |
417 | 414 | ['data' => '<?xml version="1.0" encoding="UTF-8"?><RateV4Request/>']
|
418 | 415 | );
|
419 | 416 | $xml->addAttribute('USERID', $r->getUserId());
|
@@ -461,7 +458,6 @@ protected function _getXmlQuotes()
|
461 | 458 | $api = 'RateV4';
|
462 | 459 | } else {
|
463 | 460 | $xml = $this->_xmlElFactory->create(
|
464 |
| - |
465 | 461 | ['data' => '<?xml version = "1.0" encoding = "UTF-8"?><IntlRateV2Request/>']
|
466 | 462 | );
|
467 | 463 | $xml->addAttribute('USERID', $r->getUserId());
|
@@ -1946,7 +1942,7 @@ protected function _doShipmentRequest(\Magento\Framework\DataObject $request)
|
1946 | 1942 | */
|
1947 | 1943 | public function getContainerTypes(\Magento\Framework\DataObject $params = null)
|
1948 | 1944 | {
|
1949 |
| - if (is_null($params)) { |
| 1945 | + if ($params === null) { |
1950 | 1946 | return $this->_getAllowedContainers();
|
1951 | 1947 | }
|
1952 | 1948 |
|
@@ -2068,7 +2064,7 @@ protected function _parseZip($zipString, $returnFull = false)
|
2068 | 2064 | private function isServiceAvailable(\SimpleXMLElement $service)
|
2069 | 2065 | {
|
2070 | 2066 | // Allow services which which don't provide any ExtraServices
|
2071 |
| - if(empty($service->ExtraServices->children()->count())) { |
| 2067 | + if (empty($service->ExtraServices->children()->count())) { |
2072 | 2068 | return true;
|
2073 | 2069 | }
|
2074 | 2070 |
|
|
0 commit comments