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 (#4)
by Ryan
08:01
created
RetailOrderManagement/Payload/TaxDutyFee/TaxDutyFeeQuoteRequest.php 3 patches
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -15,19 +15,14 @@
 block discarded – undo
15 15
 
16 16
 namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee;
17 17
 
18
-use DateTime;
19
-use DOMXPath;
20 18
 use eBayEnterprise\RetailOrderManagement\Payload\IPayload;
21 19
 use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap;
22 20
 use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator;
23 21
 use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator;
24 22
 use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory;
25 23
 use eBayEnterprise\RetailOrderManagement\Payload\TTopLevelPayload;
26
-
27 24
 use eBayEnterprise\RetailOrderManagement\Payload\Checkout\TDestinationContainer;
28
-
29 25
 use Psr\Log\LoggerInterface;
30
-use Psr\Log\NullLogger;
31 26
 
32 27
 class TaxDutyFeeQuoteRequest implements ITaxDutyFeeQuoteRequest
33 28
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
 
226 226
     protected function serializeVatInclusivePricing()
227 227
     {
228
-        $flag =$this->getVatInclusivePricingFlag();
228
+        $flag = $this->getVatInclusivePricingFlag();
229 229
         if ($flag === true || $flag === false) {
230 230
             $flag = $this->convertBooleanToString($flag);
231 231
             return "<VATInclusivePricing>$flag</VATInclusivePricing>";
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.
eBayEnterprise/RetailOrderManagement/Payload/TaxDutyFee/TaxedOrderItem.php 2 patches
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -15,18 +15,13 @@
 block discarded – undo
15 15
 
16 16
 namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee;
17 17
 
18
-use DateTime;
19
-use DOMXPath;
20
-use eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload;
21 18
 use eBayEnterprise\RetailOrderManagement\Payload\IPayload;
22 19
 use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap;
23 20
 use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator;
24 21
 use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator;
25 22
 use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory;
26
-use eBayEnterprise\RetailOrderManagement\Payload\TIdentity;
27 23
 use eBayEnterprise\RetailOrderManagement\Payload\TPayload;
28 24
 use Psr\Log\LoggerInterface;
29
-use Psr\Log\NullLogger;
30 25
 
31 26
 class TaxedOrderItem implements ITaxedOrderItem
32 27
 {
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.
eBayEnterprise/RetailOrderManagement/Payload/TaxDutyFee/TaxedPriceGroup.php 2 patches
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-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/TCustomizationBase.php 2 patches
Unused Use Statements   -10 removed lines patch added patch discarded remove patch
@@ -15,16 +15,6 @@
 block discarded – undo
15 15
 
16 16
 namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee;
17 17
 
18
-use eBayEnterprise\RetailOrderManagement\Payload\IPayload;
19
-use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap;
20
-use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator;
21
-use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator;
22
-use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory;
23
-use eBayEnterprise\RetailOrderManagement\Payload\TPayload;
24
-use eBayEnterprise\RetailOrderManagement\Payload\TIdentity;
25
-use Psr\Log\LoggerInterface;
26
-use Psr\Log\NullLogger;
27
-
28 18
 trait TCustomizationBase
29 19
 {
30 20
     /** @var string */
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.
eBayEnterprise/RetailOrderManagement/Payload/TaxDutyFee/TGiftingBase.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -110,6 +110,7 @@
 block discarded – undo
110 110
      *
111 111
      * @param string
112 112
      * @param string
113
+     * @param string $name
113 114
      * @return string
114 115
      */
115 116
     abstract protected function serializeOptionalXmlEncodedValue($name, $value);
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/TOrderItem.php 3 patches
Unused Use Statements   -10 removed lines patch added patch discarded remove patch
@@ -15,18 +15,8 @@
 block discarded – undo
15 15
 
16 16
 namespace eBayEnterprise\RetailOrderManagement\Payload\TaxDutyFee;
17 17
 
18
-use DateTime;
19 18
 use DOMXPath;
20
-use eBayEnterprise\RetailOrderManagement\Payload\Exception\InvalidPayload;
21 19
 use eBayEnterprise\RetailOrderManagement\Payload\IPayload;
22
-use eBayEnterprise\RetailOrderManagement\Payload\IPayloadMap;
23
-use eBayEnterprise\RetailOrderManagement\Payload\ISchemaValidator;
24
-use eBayEnterprise\RetailOrderManagement\Payload\IValidatorIterator;
25
-use eBayEnterprise\RetailOrderManagement\Payload\PayloadFactory;
26
-use eBayEnterprise\RetailOrderManagement\Payload\TIdentity;
27
-use eBayEnterprise\RetailOrderManagement\Payload\TPayload;
28
-
29
-use Psr\Log\LoggerInterface;
30 20
 
31 21
 trait TOrderItem
32 22
 {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
         foreach ($itemPrices as $property => $extractionPath) {
162 162
             $priceNode = $xpath->query($extractionPath)->item(0);
163 163
             if ($priceNode) {
164
-                $getter = $priceGroupGetters[$property];
164
+                $getter = $priceGroupGetters[ $property ];
165 165
                 $this->$property = $this->$getter()->deserialize($priceNode->C14N());
166 166
             }
167 167
         }
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/TPriceGroup.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@
 block discarded – undo
29 29
         return $this->amount;
30 30
     }
31 31
 
32
+    /**
33
+     * @param double $amount
34
+     */
32 35
     public function setAmount($amount)
33 36
     {
34 37
         $this->amount = $this->sanitizeAmount($amount);
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.
src/eBayEnterprise/RetailOrderManagement/Payload/TIterablePayload.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,6 @@
 block discarded – undo
15 15
 
16 16
 namespace eBayEnterprise\RetailOrderManagement\Payload;
17 17
 
18
-use DOMDocument;
19
-use DOMXPath;
20 18
 use eBayEnterprise\RetailOrderManagement\Payload\IPayload;
21 19
 
22 20
 trait TIterablePayload
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/TPayload.php 3 patches
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,6 +186,7 @@  discard block
 block discarded – undo
186 186
      * be overridden by payloads that need it.
187 187
      *
188 188
      * @param string
189
+     * @param string $serializedPayload
189 190
      * @return self
190 191
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
191 192
      */
@@ -280,6 +281,9 @@  discard block
 block discarded – undo
280 281
         return $this->parentPayload;
281 282
     }
282 283
 
284
+    /**
285
+     * @param string $type
286
+     */
283 287
     protected function getAncestorPayloadOfType($type)
284 288
     {
285 289
         $pl = $this;
@@ -321,7 +325,7 @@  discard block
 block discarded – undo
321 325
     /**
322 326
      * Name, value pairs of root attributes
323 327
      *
324
-     * @return array
328
+     * @return callable
325 329
      */
326 330
     protected function getRootAttributes()
327 331
     {
@@ -355,6 +359,7 @@  discard block
 block discarded – undo
355 359
      *
356 360
      * @param string
357 361
      * @param mixed
362
+     * @param string $attributeName
358 363
      * @return string
359 364
      */
360 365
     protected function serializeOptionalAttribute($attributeName, $value)
@@ -368,6 +373,7 @@  discard block
 block discarded – undo
368 373
      *
369 374
      * @param string
370 375
      * @param float
376
+     * @param string $nodeName
371 377
      * @return string
372 378
      */
373 379
     protected function serializeOptionalAmount($nodeName, $amount)
@@ -384,6 +390,8 @@  discard block
 block discarded – undo
384 390
      * @param string
385 391
      * @param string
386 392
      * @param DateTime
393
+     * @param string $nodeName
394
+     * @param string $format
387 395
      * @return string
388 396
      */
389 397
     protected function serializeOptionalDateValue($nodeName, $format, DateTime $date = null)
@@ -420,6 +428,7 @@  discard block
 block discarded – undo
420 428
      *
421 429
      * @param string
422 430
      * @param string
431
+     * @param string $name
423 432
      * @return string
424 433
      */
425 434
     protected function serializeOptionalXmlEncodedValue($name, $value)
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   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -41,20 +41,20 @@  discard block
 block discarded – undo
41 41
     /** @var IPayload */
42 42
     protected $parentPayload;
43 43
     /** @var array XPath expressions to extract required data from the serialized payload (XML) */
44
-    protected $extractionPaths = [];
44
+    protected $extractionPaths = [ ];
45 45
     /** @var array */
46
-    protected $optionalExtractionPaths = [];
46
+    protected $optionalExtractionPaths = [ ];
47 47
     /** @var array property/XPath pairs that take boolean values */
48
-    protected $booleanExtractionPaths = [];
48
+    protected $booleanExtractionPaths = [ ];
49 49
     /** @var array pair address lines properties with xpaths for extraction */
50
-    protected $addressLinesExtractionMap = [];
50
+    protected $addressLinesExtractionMap = [ ];
51 51
     /** @var array extracting node value and assigned the property as DateTime */
52
-    protected $datetimeExtractionPaths = [];
52
+    protected $datetimeExtractionPaths = [ ];
53 53
     /**
54 54
      * @var array property/XPath pairs. if property is a payload, first node matched
55 55
      *            will be deserialized by that payload
56 56
      */
57
-    protected $subpayloadExtractionPaths = [];
57
+    protected $subpayloadExtractionPaths = [ ];
58 58
     /** @var LoggerInterface enabled PSR-3 logging */
59 59
     protected $logger;
60 60
     /** @var bool flag to determine to either serialize empty node not or to serialize empty node. */
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
     protected function addressLinesFromXPath(\DOMXPath $domXPath)
157 157
     {
158 158
         foreach ($this->addressLinesExtractionMap as $address) {
159
-            $lines = $domXPath->query($address['xPath']);
160
-            $property = $address['property'];
161
-            $this->$property = [];
159
+            $lines = $domXPath->query($address[ 'xPath' ]);
160
+            $property = $address[ 'property' ];
161
+            $this->$property = [ ];
162 162
             foreach ($lines as $line) {
163 163
                 array_push($this->$property, $line->nodeValue);
164 164
             }
@@ -290,8 +290,8 @@  discard block
 block discarded – undo
290 290
     protected function serializeRootAttributes()
291 291
     {
292 292
         $rootAttributes = $this->getRootAttributes();
293
-        $qualifyAttributes = function ($name) use ($rootAttributes) {
294
-            return sprintf('%s="%s"', $name, $this->xmlEncode($rootAttributes[$name]));
293
+        $qualifyAttributes = function($name) use ($rootAttributes) {
294
+            return sprintf('%s="%s"', $name, $this->xmlEncode($rootAttributes[ $name ]));
295 295
         };
296 296
         $qualifiedAttributes = array_map($qualifyAttributes, array_keys($rootAttributes));
297 297
         return implode(' ', $qualifiedAttributes);
@@ -311,7 +311,7 @@  discard block
 block discarded – undo
311 311
      */
312 312
     protected function getRootAttributes()
313 313
     {
314
-        return [];
314
+        return [ ];
315 315
     }
316 316
 
317 317
     /**
Please login to merge, or discard this patch.