GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#6)
by Michael
06:10
created
src/eBayEnterprise/RetailOrderManagement/Payload/Order/Detail/Charge.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -272,14 +272,14 @@
 block discarded – undo
272 272
         $linePrice = $this->getLinePrice();
273 273
         $amount = $this->getAmount();
274 274
         return array_merge(
275
-            $name ? ['name' => $name] : [],
276
-            $category ? ['category' => $category] : [],
277
-            $isDiscount ? ['isDiscount' => $isDiscount] : [],
278
-            $isPromotion ? ['isPromotion' => $isPromotion] : [],
279
-            $informational ? ['informational' => $informational] : [],
280
-            is_numeric($unitPrice) ? ['unitPrice' => $unitPrice] : [],
281
-            is_numeric($linePrice) ? ['linePrice' => $linePrice] : [],
282
-            is_numeric($amount) ? ['amount' => $amount] : []
275
+            $name ? [ 'name' => $name ] : [ ],
276
+            $category ? [ 'category' => $category ] : [ ],
277
+            $isDiscount ? [ 'isDiscount' => $isDiscount ] : [ ],
278
+            $isPromotion ? [ 'isPromotion' => $isPromotion ] : [ ],
279
+            $informational ? [ 'informational' => $informational ] : [ ],
280
+            is_numeric($unitPrice) ? [ 'unitPrice' => $unitPrice ] : [ ],
281
+            is_numeric($linePrice) ? [ 'linePrice' => $linePrice ] : [ ],
282
+            is_numeric($amount) ? [ 'amount' => $amount ] : [ ]
283 283
         );
284 284
     }
285 285
 }
Please login to merge, or discard this patch.
eBayEnterprise/RetailOrderManagement/Payload/Order/Detail/ChargeGroup.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -212,10 +212,10 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/Order/Detail/OrderDetailCustomer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -199,6 +199,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/Order/Detail/OrderDetailItem.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -418,10 +418,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/Order/Detail/OrderDetailRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,8 +146,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/Order/Detail/OrderDetailResponse.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -240,9 +240,9 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
eBayEnterprise/RetailOrderManagement/Payload/Order/Detail/OrderResponse.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -706,10 +706,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/eBayEnterprise/RetailOrderManagement/Payload/Order/Detail/TaxCharge.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/eBayEnterprise/RetailOrderManagement/Payload/Order/Discount.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.