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
15:30
created
RetailOrderManagement/Payload/Payment/PayPalDoAuthorizationRequest.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
      *
89 89
      * xsd note: minimum value 0
90 90
      *           maximum precision 2 decimal places
91
-     * @return float
91
+     * @return string
92 92
      */
93 93
     public function getAmount()
94 94
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use eBayEnterprise\RetailOrderManagement\Payload\Payment\TAmount;
24 24
 use eBayEnterprise\RetailOrderManagement\Payload\TPayload;
25 25
 use Psr\Log\LoggerInterface;
26
-use Psr\Log\NullLogger;
27 26
 
28 27
 class TaxedPriceGroup implements ITaxedPriceGroup
29 28
 {
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
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;
17 17
 
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/Payment/StoredValueRedeemReply.php 4 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -251,6 +251,9 @@
 block discarded – undo
251 251
      * @param string
252 252
      * @param float
253 253
      * @param string
254
+     * @param string $amountType
255
+     * @param double $amount
256
+     * @param string $currencyCode
254 257
      * @return string
255 258
      */
256 259
     protected function serializeAmounts($amountType, $amount, $currencyCode)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use eBayEnterprise\RetailOrderManagement\Payload\Payment\TAmount;
24 24
 use eBayEnterprise\RetailOrderManagement\Payload\TPayload;
25 25
 use Psr\Log\LoggerInterface;
26
-use Psr\Log\NullLogger;
27 26
 
28 27
 class TaxedPriceGroup implements ITaxedPriceGroup
29 28
 {
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
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;
17 17
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 
35 35
     protected $responseCode;
36 36
     /** @var array response codes that are considered a success */
37
-    protected $successResponseCodes = ['Success'];
37
+    protected $successResponseCodes = [ 'Success' ];
38 38
 
39 39
     /**
40 40
      * @param IValidatorIterator
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/Payment/TenderType/LookupReply.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -76,6 +76,7 @@  discard block
 block discarded – undo
76 76
 
77 77
     /**
78 78
      * @param string
79
+     * @param string $tenderType
79 80
      * @return self
80 81
      */
81 82
     public function setTenderType($tenderType)
@@ -96,6 +97,7 @@  discard block
 block discarded – undo
96 97
 
97 98
     /**
98 99
      * @param string
100
+     * @param string $responseCode
99 101
      * @return self
100 102
      */
101 103
     public function setResponseCode($responseCode)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function getResponseMessage()
111 111
     {
112
-        return isset($this->responseCodeMessage[$this->getResponseCode()])
113
-            ? $this->responseCodeMessage[$this->getResponseCode()]
112
+        return isset($this->responseCodeMessage[ $this->getResponseCode() ])
113
+            ? $this->responseCodeMessage[ $this->getResponseCode() ]
114 114
             : '';
115 115
     }
116 116
 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     protected function validateResponseCode()
132 132
     {
133
-        if (!isset($this->responseCodeMessage[$this->getResponseCode()])) {
133
+        if (!isset($this->responseCodeMessage[ $this->getResponseCode() ])) {
134 134
             throw new InvalidPayload("Unrecognized response code '{$this->getResponseCode()}'");
135 135
         }
136 136
     }
Please login to merge, or discard this patch.
eBayEnterprise/RetailOrderManagement/Payload/Payment/TLineItemContainer.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -86,6 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     /**
88 88
      * @param float
89
+     * @param double $amount
89 90
      * @return self
90 91
      */
91 92
     public function setLineItemsTotal($amount)
@@ -134,6 +135,11 @@  discard block
 block discarded – undo
134 135
         return $this;
135 136
     }
136 137
 
138
+    /**
139
+     * @param string $nodeName
140
+     * @param double $amount
141
+     * @param string|null $currencyCode
142
+     */
137 143
     abstract protected function serializeCurrencyAmount($nodeName, $amount, $currencyCode);
138 144
     abstract protected function sanitizeAmount($amount);
139 145
 
@@ -206,6 +212,7 @@  discard block
 block discarded – undo
206 212
      * otherwise simply return the null parameter.
207 213
      *
208 214
      * @param string|null
215
+     * @param string $value
209 216
      * @return string|null
210 217
      */
211 218
     abstract protected function xmlEncode($value = null);
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
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;
17 17
 
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/TaxDutyFee/AbstractCustomization.php 3 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,6 @@
 block discarded – undo
21 21
 use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator;
22 22
 use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory;
23 23
 use eBayEnterprise\RetailOrderManagement\Payload\TPayload;
24
-use eBayEnterprise\RetailOrderManagement\Payload\TIdentity;
25
-
26 24
 use Psr\Log\LoggerInterface;
27 25
 
28 26
 abstract class AbstractCustomization
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
 
90 90
     protected function getRootAttributes()
91 91
     {
92
-        return $this->getId() ? ['id' => $this->getId()] : [];
92
+        return $this->getId() ? [ 'id' => $this->getId() ] : [ ];
93 93
     }
94 94
 
95 95
     protected function getRootNodeName()
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
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\Validator\Order;
17 17
 
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/TaxDutyFee/DestinationIterable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     /**
107 107
      * Get a new, empty store location destination object.
108 108
      *
109
-     * @return IStoreLocation
109
+     * @return IPayload
110 110
      */
111 111
     public function getEmptyStoreLocation()
112 112
     {
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
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;
17 17
 
Please login to merge, or discard this patch.
src/eBayEnterprise/RetailOrderManagement/Payload/TaxDutyFee/Discount.php 4 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -102,6 +102,7 @@
 block discarded – undo
102 102
 
103 103
     /**
104 104
      * @param float
105
+     * @param double $amount
105 106
      * @return self
106 107
      */
107 108
     public function setAmount($amount)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,13 +152,13 @@
 block discarded – undo
152 152
      */
153 153
     protected function getRootAttributes()
154 154
     {
155
-        $attrs = [];
155
+        $attrs = [ ];
156 156
         if ($this->getId()) {
157
-            $attrs['id'] = $this->getId();
157
+            $attrs[ 'id' ] = $this->getId();
158 158
         }
159 159
         $flag = $this->getCalculateDutyFlag();
160 160
         if ($flag === true || $flag === false) {
161
-            $attrs['calculateDuty'] = $this->convertBooleanToString($this->getCalculateDutyFlag());
161
+            $attrs[ 'calculateDuty' ] = $this->convertBooleanToString($this->getCalculateDutyFlag());
162 162
         }
163 163
         return $attrs;
164 164
     }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 use eBayEnterprise\RetailOrderManagement\Payload\Payment\TAmount;
24 24
 use eBayEnterprise\RetailOrderManagement\Payload\TPayload;
25 25
 use Psr\Log\LoggerInterface;
26
-use Psr\Log\NullLogger;
27 26
 
28 27
 class TaxedPriceGroup implements ITaxedPriceGroup
29 28
 {
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Copyright (c) 2014-2015 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) 2014-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) 2014-2015 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) 2014-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\TaxDutyFee;
17 17
 
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/TaxDutyFee/EmailAddressDestination.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -15,15 +15,12 @@
 block discarded – undo
15 15
 
16 16
 namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee;
17 17
 
18
-use eBayEnterprise\RetailOrderManagement\Payload\Checkout\TPersonName;
19 18
 use eBayEnterprise\RetailOrderManagement\Payload\IPayload;
20 19
 use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap;
21 20
 use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator;
22 21
 use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator;
23 22
 use eBayEnterprise\RetailOrderManagement\Payload\Order\EmailAddressDestination as OrderEmailAddressDestination;
24
-
25 23
 use Psr\Log\LoggerInterface;
26
-use Psr\Log\NullLogger;
27 24
 
28 25
 class EmailAddressDestination extends OrderEmailAddressDestination implements IEmailAddressDestination
29 26
 {
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
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\Validator\Order;
17 17
 
Please login to merge, or discard this patch.
RetailOrderManagement/Payload/TaxDutyFee/OrderItemRequest.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 
16 16
 namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee;
17 17
 
18
-use DOMXPath;
19 18
 use eBayEnterprise\RetailOrderManagement\Payload\IPayload;
20 19
 use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap;
21 20
 use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator;
Please login to merge, or discard this patch.
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
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;
17 17
 
Please login to merge, or discard this patch.