@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | } |
| 136 | 136 | |
| 137 | 137 | /** |
| 138 | - * @return \Requests_Response |
|
| 138 | + * @return boolean |
|
| 139 | 139 | * @throws \Requests_Exception |
| 140 | 140 | */ |
| 141 | 141 | protected function post() |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | } |
| 173 | 173 | |
| 174 | 174 | /** |
| 175 | - * @return \Requests_Response |
|
| 175 | + * @return boolean |
|
| 176 | 176 | * @throws \Requests_Exception |
| 177 | 177 | */ |
| 178 | 178 | protected function get() |
@@ -204,6 +204,9 @@ discard block |
||
| 204 | 204 | * @param string |
| 205 | 205 | * @param string |
| 206 | 206 | * @param string |
| 207 | + * @param string $xmlPayload |
|
| 208 | + * @param string $logMessage |
|
| 209 | + * @param string $key |
|
| 207 | 210 | * @return self |
| 208 | 211 | */ |
| 209 | 212 | protected function logPayloadMessage($xmlPayload, $logMessage, $key) |
@@ -187,8 +187,8 @@ |
||
| 187 | 187 | protected function getRequestUrlLogData() |
| 188 | 188 | { |
| 189 | 189 | $context = $this->getContext(); |
| 190 | - $logData = ['rom_request_url' => $this->config->getEndpoint()]; |
|
| 191 | - return $context ? $context->getMetaData(__CLASS__, $logData) : []; |
|
| 190 | + $logData = [ 'rom_request_url' => $this->config->getEndpoint() ]; |
|
| 191 | + return $context ? $context->getMetaData(__CLASS__, $logData) : [ ]; |
|
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | protected function logRequestUrl() |
@@ -15,9 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Api; |
| 17 | 17 | |
| 18 | -use Psr\Log\LoggerInterface; |
|
| 19 | -use Psr\Log\NullLogger; |
|
| 20 | - |
|
| 21 | 18 | /** |
| 22 | 19 | * Common logger utility methods. |
| 23 | 20 | * |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Api; |
| 17 | 17 | |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
| 22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
| 23 | 23 | use Psr\Log\LoggerInterface; |
| 24 | -use Psr\Log\NullLogger; |
|
| 25 | 24 | |
| 26 | 25 | class InvoiceTextCode implements IInvoiceTextCode |
| 27 | 26 | { |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Checkout; |
| 17 | 17 | |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
| 23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\TIterablePayload; |
| 24 | 24 | use Psr\Log\LoggerInterface; |
| 25 | -use Psr\Log\NullLogger; |
|
| 26 | 25 | use SPLObjectStorage; |
| 27 | 26 | |
| 28 | 27 | class InvoiceTextCodeIterable extends SPLObjectStorage implements IInvoiceTextCodeIterable |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Checkout; |
| 17 | 17 | |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
| 22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
| 23 | 23 | use Psr\Log\LoggerInterface; |
| 24 | -use Psr\Log\NullLogger; |
|
| 25 | 24 | |
| 26 | 25 | class MailingAddress implements IMailingAddress |
| 27 | 26 | { |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Checkout; |
| 17 | 17 | |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\Order\Tax as OrderTax; |
| 23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
| 24 | 24 | use Psr\Log\LoggerInterface; |
| 25 | -use Psr\Log\NullLogger; |
|
| 26 | 25 | |
| 27 | 26 | class Tax extends OrderTax implements ITax |
| 28 | 27 | { |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Checkout; |
| 17 | 17 | |
@@ -103,6 +103,7 @@ |
||
| 103 | 103 | * |
| 104 | 104 | * @param string |
| 105 | 105 | * @param string |
| 106 | + * @param string $name |
|
| 106 | 107 | * @return string |
| 107 | 108 | */ |
| 108 | 109 | abstract protected function serializeOptionalXmlEncodedValue($name, $value); |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Checkout; |
| 17 | 17 | |
@@ -179,6 +179,7 @@ |
||
| 179 | 179 | * encode the passed in string to be safe for xml if it is not null, |
| 180 | 180 | * otherwise simply return the null parameter. |
| 181 | 181 | * @param mixed $value |
| 182 | + * @param string $name |
|
| 182 | 183 | * @return string | null |
| 183 | 184 | */ |
| 184 | 185 | abstract protected function serializeOptionalXmlEncodedValue($name, $value); |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2014 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Checkout; |
| 17 | 17 | |
@@ -91,12 +91,12 @@ discard block |
||
| 91 | 91 | */ |
| 92 | 92 | protected function serializePhysicalAddress() |
| 93 | 93 | { |
| 94 | - $lines = []; |
|
| 94 | + $lines = [ ]; |
|
| 95 | 95 | $idx = 0; |
| 96 | - $addressLines = is_array($this->lines) ? $this->lines : []; |
|
| 96 | + $addressLines = is_array($this->lines) ? $this->lines : [ ]; |
|
| 97 | 97 | foreach ($addressLines as $line) { |
| 98 | 98 | $idx++; |
| 99 | - $lines[] = sprintf( |
|
| 99 | + $lines[ ] = sprintf( |
|
| 100 | 100 | '<Line%d>%s</Line%1$d>', |
| 101 | 101 | $idx, |
| 102 | 102 | $this->xmlEncode($line) |
@@ -143,14 +143,14 @@ discard block |
||
| 143 | 143 | $trimmed = trim($lines); |
| 144 | 144 | $addressLines = preg_split("/\n/", $trimmed, null, PREG_SPLIT_NO_EMPTY); |
| 145 | 145 | |
| 146 | - $newLines = []; |
|
| 146 | + $newLines = [ ]; |
|
| 147 | 147 | foreach ($addressLines as $line) { |
| 148 | - $newLines[] = $this->cleanString($line, 70); |
|
| 148 | + $newLines[ ] = $this->cleanString($line, 70); |
|
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | if (count($newLines) > 4) { |
| 152 | 152 | // concat lines beyond the four allowed down into the last line |
| 153 | - $newLines[3] = $this->cleanString(implode(' ', array_slice($newLines, 3)), 70); |
|
| 153 | + $newLines[ 3 ] = $this->cleanString(implode(' ', array_slice($newLines, 3)), 70); |
|
| 154 | 154 | } |
| 155 | 155 | |
| 156 | 156 | $finalLines = array_slice($newLines, 0, 4); |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator; |
| 22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TPayload; |
| 23 | 23 | use Psr\Log\LoggerInterface; |
| 24 | -use Psr\Log\NullLogger; |
|
| 25 | 24 | |
| 26 | 25 | class OrderSearch implements IOrderSearch |
| 27 | 26 | { |
@@ -1,17 +1,17 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | - * |
|
| 5 | - * NOTICE OF LICENSE |
|
| 6 | - * |
|
| 7 | - * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | - * that is bundled with this package in the file LICENSE.md. |
|
| 9 | - * It is also available through the world-wide-web at this URL: |
|
| 10 | - * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | - * |
|
| 12 | - * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | - * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | - */ |
|
| 3 | + * Copyright (c) 2013-2014 eBay Enterprise, Inc. |
|
| 4 | + * |
|
| 5 | + * NOTICE OF LICENSE |
|
| 6 | + * |
|
| 7 | + * This source file is subject to the Open Software License (OSL 3.0) |
|
| 8 | + * that is bundled with this package in the file LICENSE.md. |
|
| 9 | + * It is also available through the world-wide-web at this URL: |
|
| 10 | + * http://opensource.org/licenses/osl-3.0.php |
|
| 11 | + * |
|
| 12 | + * @copyright Copyright (c) 2013-2015 eBay Enterprise, Inc. (http://www.ebayenterprise.com/) |
|
| 13 | + * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) |
|
| 14 | + */ |
|
| 15 | 15 | |
| 16 | 16 | namespace eBayEnterprise\RetailOrderManagement\Payload\Customer; |
| 17 | 17 | |