@@ -212,10 +212,10 @@ |
||
| 212 | 212 | protected function getRootAttributes() |
| 213 | 213 | { |
| 214 | 214 | $name = $this->getName(); |
| 215 | - $adjustmentCategory = $this->getAdjustmentCategory();; |
|
| 215 | + $adjustmentCategory = $this->getAdjustmentCategory(); ; |
|
| 216 | 216 | return array_merge( |
| 217 | - $name ? ['name' => $name] : [], |
|
| 218 | - $adjustmentCategory ? ['adjustmentCategory' => $adjustmentCategory] : [] |
|
| 217 | + $name ? [ 'name' => $name ] : [ ], |
|
| 218 | + $adjustmentCategory ? [ 'adjustmentCategory' => $adjustmentCategory ] : [ ] |
|
| 219 | 219 | ); |
| 220 | 220 | } |
| 221 | 221 | } |
@@ -199,6 +199,6 @@ |
||
| 199 | 199 | protected function getRootAttributes() |
| 200 | 200 | { |
| 201 | 201 | $customerId = $this->getCustomerId(); |
| 202 | - return $customerId ? ['customerId' => $customerId] : []; |
|
| 202 | + return $customerId ? [ 'customerId' => $customerId ] : [ ]; |
|
| 203 | 203 | } |
| 204 | 204 | } |
@@ -418,10 +418,10 @@ |
||
| 418 | 418 | $derivedFromOrderHeaderKey = $this->getDerivedFromOrderHeaderKey(); |
| 419 | 419 | return array_merge( |
| 420 | 420 | parent::getRootAttributes(), |
| 421 | - !empty($hasChainedLines) ? ['hasChainedLines' => $hasChainedLines] : [], |
|
| 422 | - !empty($hasDerivedChild) ? ['hasDerivedChild' => $hasDerivedChild] : [], |
|
| 423 | - $chainedFromOrderHeaderKey ? ['chainedFromOrderHeaderKey' => $chainedFromOrderHeaderKey] : [], |
|
| 424 | - $derivedFromOrderHeaderKey ? ['derivedFromOrderHeaderKey' => $derivedFromOrderHeaderKey] : [] |
|
| 421 | + !empty($hasChainedLines) ? [ 'hasChainedLines' => $hasChainedLines ] : [ ], |
|
| 422 | + !empty($hasDerivedChild) ? [ 'hasDerivedChild' => $hasDerivedChild ] : [ ], |
|
| 423 | + $chainedFromOrderHeaderKey ? [ 'chainedFromOrderHeaderKey' => $chainedFromOrderHeaderKey ] : [ ], |
|
| 424 | + $derivedFromOrderHeaderKey ? [ 'derivedFromOrderHeaderKey' => $derivedFromOrderHeaderKey ] : [ ] |
|
| 425 | 425 | ); |
| 426 | 426 | } |
| 427 | 427 | |
@@ -146,8 +146,8 @@ |
||
| 146 | 146 | { |
| 147 | 147 | $orderType = $this->getOrderType(); |
| 148 | 148 | return array_merge( |
| 149 | - ['xmlns' => $this->getXmlNamespace()], |
|
| 150 | - $orderType ? ['orderType' => $this->getOrderType()] : [] |
|
| 149 | + [ 'xmlns' => $this->getXmlNamespace() ], |
|
| 150 | + $orderType ? [ 'orderType' => $this->getOrderType() ] : [ ] |
|
| 151 | 151 | ); |
| 152 | 152 | } |
| 153 | 153 | } |
@@ -240,9 +240,9 @@ |
||
| 240 | 240 | { |
| 241 | 241 | $testType = $this->getTestType(); |
| 242 | 242 | return array_merge( |
| 243 | - ['xmlns' => $this->getXmlNamespace(), 'orderType' => $this->getOrderType()], |
|
| 244 | - $testType ? ['testType' => $testType] : [], |
|
| 245 | - ['cancellable' => $this->getCancellable()] |
|
| 243 | + [ 'xmlns' => $this->getXmlNamespace(), 'orderType' => $this->getOrderType() ], |
|
| 244 | + $testType ? [ 'testType' => $testType ] : [ ], |
|
| 245 | + [ 'cancellable' => $this->getCancellable() ] |
|
| 246 | 246 | ); |
| 247 | 247 | } |
| 248 | 248 | } |
@@ -706,10 +706,10 @@ |
||
| 706 | 706 | $hasChainedLines = $this->getHasChainedLines(); |
| 707 | 707 | $hasDerivedChild = $this->getHasDerivedChild(); |
| 708 | 708 | return array_merge( |
| 709 | - $customerOrderId ? ['customerOrderId' => $customerOrderId] : [], |
|
| 710 | - $levelOfService ? ['levelOfService' => $levelOfService] : [], |
|
| 711 | - !empty($hasChainedLines) ? ['hasChainedLines' => $hasChainedLines] : [], |
|
| 712 | - !empty($hasDerivedChild) ? ['hasDerivedChild' => $hasDerivedChild] : [] |
|
| 709 | + $customerOrderId ? [ 'customerOrderId' => $customerOrderId ] : [ ], |
|
| 710 | + $levelOfService ? [ 'levelOfService' => $levelOfService ] : [ ], |
|
| 711 | + !empty($hasChainedLines) ? [ 'hasChainedLines' => $hasChainedLines ] : [ ], |
|
| 712 | + !empty($hasDerivedChild) ? [ 'hasDerivedChild' => $hasDerivedChild ] : [ ] |
|
| 713 | 713 | ); |
| 714 | 714 | } |
| 715 | 715 | |
@@ -156,7 +156,7 @@ |
||
| 156 | 156 | $taxType = $this->getTaxType(); |
| 157 | 157 | return array_merge( |
| 158 | 158 | parent::getRootAttributes(), |
| 159 | - $taxType ? ['taxType' => $taxType] : [] |
|
| 159 | + $taxType ? [ 'taxType' => $taxType ] : [ ] |
|
| 160 | 160 | ); |
| 161 | 161 | } |
| 162 | 162 | } |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | protected function getRootAttributes() |
| 163 | 163 | { |
| 164 | 164 | $appliedCount = $this->sanitizeAmount($this->getAppliedCount()); |
| 165 | - return !is_null($appliedCount) ? ['appliedCount' => (int) $appliedCount] : []; |
|
| 165 | + return !is_null($appliedCount) ? [ 'appliedCount' => (int) $appliedCount ] : [ ]; |
|
| 166 | 166 | } |
| 167 | 167 | |
| 168 | 168 | protected function getRootNodeName() |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | |
| 161 | 161 | protected function getRootAttributes() |
| 162 | 162 | { |
| 163 | - return ['parent' => $this->getParentItemId()]; |
|
| 163 | + return [ 'parent' => $this->getParentItemId() ]; |
|
| 164 | 164 | } |
| 165 | 165 | |
| 166 | 166 | protected function getRootNodeName() |