@@ -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 | * |
@@ -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 | { |
@@ -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 |
@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -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 | use DateTime; |
| 26 | 25 | |
| 27 | 26 | class OrderSummary implements IOrderSummary |
@@ -481,12 +481,12 @@ |
||
| 481 | 481 | $testType = $this->getTestType(); |
| 482 | 482 | $cancellable = $this->getCancellable(); |
| 483 | 483 | return array_merge( |
| 484 | - ['id' => $this->getId()], |
|
| 485 | - $orderType ? ['orderType' => $orderType] : [], |
|
| 486 | - $orderPurpose ? ['orderPurpose' => $orderPurpose] : [], |
|
| 487 | - $testType ? ['testType' => $testType] : [], |
|
| 488 | - ['modifiedTime' => $this->getModifiedTime()->format('c')], |
|
| 489 | - $cancellable ? ['cancellable' => $cancellable] : [] |
|
| 484 | + [ 'id' => $this->getId() ], |
|
| 485 | + $orderType ? [ 'orderType' => $orderType ] : [ ], |
|
| 486 | + $orderPurpose ? [ 'orderPurpose' => $orderPurpose ] : [ ], |
|
| 487 | + $testType ? [ 'testType' => $testType ] : [ ], |
|
| 488 | + [ 'modifiedTime' => $this->getModifiedTime()->format('c') ], |
|
| 489 | + $cancellable ? [ 'cancellable' => $cancellable ] : [ ] |
|
| 490 | 490 | ); |
| 491 | 491 | } |
| 492 | 492 | } |
@@ -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 OrderSummaryIterable extends SPLObjectStorage implements IOrderSummaryIterable |
@@ -22,7 +22,6 @@ |
||
| 22 | 22 | use eBayEnterprise\RetailOrderManagement\Payload\TTopLevelPayload; |
| 23 | 23 | use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory; |
| 24 | 24 | use Psr\Log\LoggerInterface; |
| 25 | -use Psr\Log\NullLogger; |
|
| 26 | 25 | |
| 27 | 26 | class OrderSummaryRequest implements IOrderSummaryRequest |
| 28 | 27 | { |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $this->schemaValidator = $schemaValidator; |
| 52 | 52 | $this->parentPayload = $parentPayload; |
| 53 | 53 | $this->payloadMap = $payloadMap; |
| 54 | - $this->payloadFactory = new PayloadFactory(); |
|
| 54 | + $this->payloadFactory = new PayloadFactory(); |
|
| 55 | 55 | $this->setOrderSearch($this->buildPayloadForInterface( |
| 56 | 56 | static::ORDER_SEARCH_INTERFACE |
| 57 | 57 | )); |
@@ -123,6 +123,6 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | protected function getRootAttributes() |
| 125 | 125 | { |
| 126 | - return ['xmlns' => $this->getXmlNamespace()]; |
|
| 126 | + return [ 'xmlns' => $this->getXmlNamespace() ]; |
|
| 127 | 127 | } |
| 128 | 128 | } |