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 (#32)
by Ryan
13:12 queued 01:46
created
Amqp/Test/Model/Adminhtml/System/Config/Backend/LasttestmessageTest.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     /**
31 31
      * Test getting the last saved test message timestamp to be displayed in the
32 32
      * admin.
33
-     * @param string|null $timestamp
33
+     * @param string|null $lastTimestamp
34 34
      * @param string $value
35 35
      * @dataProvider provideLastTimestamp
36 36
      */
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
 class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case
17 17
 {
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Helper/Data.php 2 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,6 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param string
64 64
      * @param array
65 65
      * @param mixed
66
+     * @param string $key
66 67
      * @return mixed
67 68
      */
68 69
     protected function _nullCoalesce(array $arr, $key, $default)
@@ -159,7 +160,7 @@  discard block
 block discarded – undo
159 160
     /**
160 161
      * Get the base url for a given store
161 162
      *
162
-     * @param $storeId
163
+     * @param integer $storeId
163 164
      * @return string the store base url
164 165
      */
165 166
     public function getStoreUrl($storeId)
@@ -717,6 +718,7 @@  discard block
 block discarded – undo
717 718
      *
718 719
      * @param string
719 720
      * @param mixed
721
+     * @param string $key
720 722
      * @return mixed
721 723
      */
722 724
     protected function reregister($key, $value=null)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -370,8 +370,8 @@  discard block
 block discarded – undo
370 370
      */
371 371
     public function mapPattern(array $keyMap, $pattern)
372 372
     {
373
-        return array_reduce(array_keys($keyMap), function ($result, $key) use ($keyMap, $pattern) {
374
-            $result = (trim($result) === '')? $pattern : $result;
373
+        return array_reduce(array_keys($keyMap), function($result, $key) use ($keyMap, $pattern) {
374
+            $result = (trim($result) === '') ? $pattern : $result;
375 375
             return str_replace(sprintf('{%s}', $key), $keyMap[$key], $result);
376 376
         });
377 377
     }
@@ -615,7 +615,7 @@  discard block
 block discarded – undo
615 615
     {
616 616
         // Function to create hash of elements of a site filter that we care
617 617
         // about being unique.
618
-        $hashSite = function ($site) {
618
+        $hashSite = function($site) {
619 619
             return sprintf(
620 620
                 '%s|%s|%s|%s',
621 621
                 $site['catalog_id'], $site['client_id'], $site['store_id'], $site['lang_code']
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
      */
703 703
     public function denormalizeSku($itemId, $catalogId)
704 704
     {
705
-        return (!empty($itemId) && strpos($itemId, $catalogId . '-') === 0)?
705
+        return (!empty($itemId) && strpos($itemId, $catalogId . '-') === 0) ?
706 706
             str_replace($catalogId . '-', '', $itemId) : $itemId;
707 707
     }
708 708
 
@@ -780,7 +780,7 @@  discard block
 block discarded – undo
780 780
      * @param mixed
781 781
      * @return mixed
782 782
      */
783
-    protected function reregister($key, $value=null)
783
+    protected function reregister($key, $value = null)
784 784
     {
785 785
         $old = Mage::registry($key);
786 786
         Mage::unregister($key);
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Helper/Itemmaster.php 3 patches
Doc Comments   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param  string                              $attribute
90 90
      * @param  Mage_Catalog_Model_Product          $product
91 91
      * @param  DOMDocument         $doc
92
-     * @return DOMNode|null
92
+     * @return DOMDocumentFragment|null
93 93
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
94 94
      */
95 95
     public function passStyle($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      * @param  Mage_Catalog_Model_Product          $product
178 178
      * @param  DOMDocument             $doc
179 179
      * @throws EbayEnterprise_Catalog_Model_Pim_Product_Validation_Exception
180
-     * @return DOMNode|null
180
+     * @return DOMCdataSection
181 181
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
182 182
      */
183 183
     public function passTaxCode($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @param  string                              $attribute
196 196
      * @param  Mage_Catalog_Model_Product          $product
197 197
      * @param  DOMDocument         $doc
198
-     * @return DOMNode|null
198
+     * @return null|DOMDocumentFragment
199 199
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
200 200
      */
201 201
     public function passUnitCost($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
      * @param  string                              $attribute
232 232
      * @param  Mage_Catalog_Model_Product          $product
233 233
      * @param  DOMDocument         $doc
234
-     * @return DOMNode|null
234
+     * @return DOMCdataSection|null
235 235
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
236 236
      */
237 237
     public function passColorCode($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
      * @param  string                              $attribute
248 248
      * @param  Mage_Catalog_Model_Product          $product
249 249
      * @param  DOMDocument         $doc
250
-     * @return DOMNode|null
250
+     * @return DOMCdataSection|null
251 251
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
252 252
      */
253 253
     public function passColorDescription($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      * @param  string                              $attribute
264 264
      * @param  Mage_Catalog_Model_Product          $product
265 265
      * @param  DOMDocument         $doc
266
-     * @return DOMNode|null
266
+     * @return DOMDocumentFragment
267 267
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
268 268
      */
269 269
     public function passItemURL($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * @param  string                              $attribute
301 301
      * @param  Mage_Catalog_Model_Product          $product
302 302
      * @param  DOMDocument         $doc
303
-     * @return DOMNode|null
303
+     * @return DOMDocumentFragment
304 304
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
305 305
      */
306 306
     public function passGiftCard($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
      * @param  string
325 325
      * @param  Mage_Catalog_Model_Product
326 326
      * @param  DOMDocument
327
-     * @return DOMNode|null
327
+     * @return DOMCdataSection|null
328 328
      */
329 329
     public function passDropShipSupplierPrefix($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
330 330
     {
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
      * @param  string
338 338
      * @param  Mage_Catalog_Model_Product
339 339
      * @param  DOMDocument
340
-     * @return DOMNode|null
340
+     * @return DOMCdataSection|null
341 341
      */
342 342
     public function passSupplierPartNumber($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
343 343
     {
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
      * @param  string
354 354
      * @param  Mage_Catalog_Model_Product
355 355
      * @param  DOMDocument
356
-     * @return DOMNode|null
356
+     * @return DOMCdataSection
357 357
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
358 358
      */
359 359
     public function passSubscriptionEligible($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
      * @param  string
371 371
      * @param  Mage_Catalog_Model_Product
372 372
      * @param  DOMDocument
373
-     * @return DOMNode|null
373
+     * @return DOMCdataSection
374 374
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
375 375
      */
376 376
     public function passSubscriptionType($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function passSubClass($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
118 118
     {
119
-        $value = (int)0;
119
+        $value = (int) 0;
120 120
         if (!empty($attrValue)) {
121 121
             $value = $attrValue;
122 122
         }
@@ -287,8 +287,7 @@  discard block
 block discarded – undo
287 287
      */
288 288
     public function passSalesClass($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
289 289
     {
290
-        $enum = empty($attrValue) ? 'stock' :
291
-            Mage::getSingleton('eav/entity_attribute')
290
+        $enum = empty($attrValue) ? 'stock' : Mage::getSingleton('eav/entity_attribute')
292 291
                 ->loadByCode($product::ENTITY, $attribute)
293 292
                 ->getSource()->getOptionText($attrValue);
294 293
         return $this->passString($enum, $attribute, $product, $doc);
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
 class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case
17 17
 {
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Helper/Map.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -346,7 +346,7 @@
 block discarded – undo
346 346
     /**
347 347
      * it return the pass in value parameter
348 348
      * it's a callback to return static value set in the config
349
-     * @param mixed $value
349
+     * @param string $value
350 350
      * @return mixed
351 351
      */
352 352
     public function passThrough($value)
Please login to merge, or discard this patch.
Spacing   +11 added lines, -13 removed lines patch added patch discarded remove patch
@@ -99,9 +99,8 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function extractStatusValue(DOMNodeList $nodes)
101 101
     {
102
-        return ($nodes->length && strtolower($nodes->item(0)->nodeValue) === 'active')?
103
-            Mage_Catalog_Model_Product_Status::STATUS_ENABLED:
104
-            Mage_Catalog_Model_Product_Status::STATUS_DISABLED;
102
+        return ($nodes->length && strtolower($nodes->item(0)->nodeValue) === 'active') ?
103
+            Mage_Catalog_Model_Product_Status::STATUS_ENABLED : Mage_Catalog_Model_Product_Status::STATUS_DISABLED;
105 104
     }
106 105
     /**
107 106
      * extracts visibility from node list, returning an expected integer or translating an expected string
@@ -142,7 +141,7 @@  discard block
 block discarded – undo
142 141
     public function extractProductTypeValue(DOMNodeList $nodes, Mage_Catalog_Model_Product $product)
143 142
     {
144 143
         $value = strtolower($this->coreHelper->extractNodeVal($nodes));
145
-        $type = ($this->_isValidProductType($value))? $value : Mage_Catalog_Model_Product_Type::TYPE_SIMPLE;
144
+        $type = ($this->_isValidProductType($value)) ? $value : Mage_Catalog_Model_Product_Type::TYPE_SIMPLE;
146 145
         $product->setTypeId($type)
147 146
             ->setTypeInstance(Mage_Catalog_Model_Product_Type::factory($product, true), true);
148 147
         return $type;
@@ -232,9 +231,8 @@  discard block
 block discarded – undo
232 231
     public function extractUrlKeyValue(DOMNodeList $nodes, Mage_Catalog_Model_Product $product)
233 232
     {
234 233
         $urlKey = $this->coreHelper->extractNodeVal($nodes);
235
-        return ($urlKey !== '')?
236
-            $urlKey . '-' . $product->getStoreId() :
237
-            'Incomplete Product: ' . $product->getSku() . '-' . $product->getStoreId();
234
+        return ($urlKey !== '') ?
235
+            $urlKey . '-' . $product->getStoreId() : 'Incomplete Product: ' . $product->getSku() . '-' . $product->getStoreId();
238 236
     }
239 237
     /**
240 238
      * given a gift card type return the gift card constant mapped to it
@@ -264,7 +262,7 @@  discard block
 block discarded – undo
264 262
         $value = $this->coreHelper->extractNodeVal($nodes);
265 263
         $cfg = Mage::helper('ebayenterprise_catalog')->getConfigModel();
266 264
         $mapData = $cfg->getConfigData(EbayEnterprise_Catalog_Helper_Feed::GIFTCARD_TENDER_CONFIG_PATH);
267
-        return isset($mapData[$value])? $this->_getGiftCardType($mapData[$value]) : null;
265
+        return isset($mapData[$value]) ? $this->_getGiftCardType($mapData[$value]) : null;
268 266
     }
269 267
 
270 268
     /**
@@ -313,7 +311,7 @@  discard block
 block discarded – undo
313 311
      */
314 312
     public function extractStringValue(DOMNodeList $nodes)
315 313
     {
316
-        return ($nodes->length)? $nodes->item(0)->nodeValue : null;
314
+        return ($nodes->length) ? $nodes->item(0)->nodeValue : null;
317 315
     }
318 316
     /**
319 317
      * extract the first element of a dom node list and return a boolean
@@ -323,7 +321,7 @@  discard block
 block discarded – undo
323 321
      */
324 322
     public function extractBoolValue(DOMNodeList $nodes)
325 323
     {
326
-        return $this->coreHelper->parseBool(($nodes->length)? $nodes->item(0)->nodeValue : null);
324
+        return $this->coreHelper->parseBool(($nodes->length) ? $nodes->item(0)->nodeValue : null);
327 325
     }
328 326
     /**
329 327
      * extract the first element of a dom node list and return the string value cast as integer value
@@ -332,7 +330,7 @@  discard block
 block discarded – undo
332 330
      */
333 331
     public function extractIntValue(DOMNodeList $nodes)
334 332
     {
335
-        return ($nodes->length)? (int) $nodes->item(0)->nodeValue : 0;
333
+        return ($nodes->length) ? (int) $nodes->item(0)->nodeValue : 0;
336 334
     }
337 335
     /**
338 336
      * extract the first element of a dom node list and return the string value cast as float value
@@ -341,7 +339,7 @@  discard block
 block discarded – undo
341 339
      */
342 340
     public function extractFloatValue(DOMNodeList $nodes)
343 341
     {
344
-        return ($nodes->length)? (float) $nodes->item(0)->nodeValue : 0;
342
+        return ($nodes->length) ? (float) $nodes->item(0)->nodeValue : 0;
345 343
     }
346 344
     /**
347 345
      * it return the pass in value parameter
@@ -425,7 +423,7 @@  discard block
 block discarded – undo
425 423
             $product->setUseConfigGiftMessageAvailable(0);
426 424
             // Explicitly casting the extracted boolean value as an integer value because
427 425
             // Magento only work with integer value 0 or 1 representing boolean value in the database.
428
-            return (int) $this->coreHelper->parseBool(($nodes->length)? $nodes->item(0)->nodeValue : null);
426
+            return (int) $this->coreHelper->parseBool(($nodes->length) ? $nodes->item(0)->nodeValue : null);
429 427
         }
430 428
         return null;
431 429
     }
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
 class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case
17 17
 {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,8 +59,7 @@
 block discarded – undo
59 59
         Mage_Sales_Model_Order $order,
60 60
         $shipmentId,
61 61
         $trackingNumber=null
62
-    )
63
-    {
62
+    ) {
64 63
         return func_get_args();
65 64
     }
66 65
 
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Helper/Map/Attribute.php 3 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,6 +149,8 @@  discard block
 block discarded – undo
149 149
      *
150 150
      * @param  string
151 151
      * @param  string
152
+     * @param string $attributeCode
153
+     * @param string $optionValue
152 154
      * @return Mage_Eav_Model_Entity_Attribute_Option | null
153 155
      */
154 156
     protected function _getAttributeOptionModel($attributeCode, $optionValue)
@@ -395,7 +397,7 @@  discard block
 block discarded – undo
395 397
      * Return empty array if there's no option id
396 398
      *
397 399
      * @param $attribute
398
-     * @param $attributeOptionId
400
+     * @param integer $attributeOptionId
399 401
      * @return array
400 402
      */
401 403
     protected function _getAllOptionValues($attribute, $attributeOptionId)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     protected function _getAttributeIdByName($name)
66 66
     {
67 67
         $attribute = $this->_getAttributeCollection()->getItemByColumnValue('attribute_code', $name);
68
-        return ($attribute)? $attribute->getId() : null;
68
+        return ($attribute) ? $attribute->getId() : null;
69 69
     }
70 70
 
71 71
     /**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     {
141 141
         /** @var Mage_Eav_Model_Entity_Attribute_Option */
142 142
         $option = $this->_getAttributeOptionModel($attributeCode, $optionValue);
143
-        return (!is_null($option))? (int) $option->getOptionId() : 0;
143
+        return (!is_null($option)) ? (int) $option->getOptionId() : 0;
144 144
     }
145 145
 
146 146
     /**
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
 class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case
17 17
 {
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Helper/Map/Giftcard.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      * giftcard lifetime otherwise return the product lifetime value
106 106
      * @param DOMNodeList $nodes
107 107
      * @param Mage_Catalog_Model_Product $product
108
-     * @return mixed
108
+     * @return integer
109 109
      */
110 110
     public function extractLifetime(DOMNodeList $nodes, Mage_Catalog_Model_Product $product)
111 111
     {
Please login to merge, or discard this patch.
Spacing   +6 added lines, -9 removed lines patch added patch discarded remove patch
@@ -94,9 +94,8 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function extractIsRedeemable(DOMNodeList $nodes, Mage_Catalog_Model_Product $product)
96 96
     {
97
-        return (!is_null($this->extractGiftcardTenderValue($nodes, $product)) && $product->getUseConfigIsRedeemable())?
98
-            Mage::helper('eb2ccore')->getStoreConfigFlag(Enterprise_GiftCard_Model_Giftcard::XML_PATH_IS_REDEEMABLE, $product->getStoreId()) :
99
-            (bool) $product->getIsRedeemable();
97
+        return (!is_null($this->extractGiftcardTenderValue($nodes, $product)) && $product->getUseConfigIsRedeemable()) ?
98
+            Mage::helper('eb2ccore')->getStoreConfigFlag(Enterprise_GiftCard_Model_Giftcard::XML_PATH_IS_REDEEMABLE, $product->getStoreId()) : (bool) $product->getIsRedeemable();
100 99
     }
101 100
 
102 101
     /**
@@ -109,9 +108,8 @@  discard block
 block discarded – undo
109 108
      */
110 109
     public function extractLifetime(DOMNodeList $nodes, Mage_Catalog_Model_Product $product)
111 110
     {
112
-        return (!is_null($this->extractGiftcardTenderValue($nodes, $product)) && $product->getUseConfigLifetime())?
113
-            (int) Mage::helper('eb2ccore')->getStoreConfig(Enterprise_GiftCard_Model_Giftcard::XML_PATH_LIFETIME, $product->getStoreId()) :
114
-            (int) $product->getLifetime();
111
+        return (!is_null($this->extractGiftcardTenderValue($nodes, $product)) && $product->getUseConfigLifetime()) ?
112
+            (int) Mage::helper('eb2ccore')->getStoreConfig(Enterprise_GiftCard_Model_Giftcard::XML_PATH_LIFETIME, $product->getStoreId()) : (int) $product->getLifetime();
115 113
     }
116 114
 
117 115
     /**
@@ -125,8 +123,7 @@  discard block
 block discarded – undo
125 123
      */
126 124
     public function extractEmailTemplate(DOMNodeList $nodes, Mage_Catalog_Model_Product $product)
127 125
     {
128
-        return (!is_null($this->extractGiftcardTenderValue($nodes, $product)) && $product->getUseConfigEmailTemplate())?
129
-            Mage::helper('eb2ccore')->getStoreConfig(Enterprise_GiftCard_Model_Giftcard::XML_PATH_EMAIL_TEMPLATE, $product->getStoreId()) :
130
-            $product->getEmailTemplate();
126
+        return (!is_null($this->extractGiftcardTenderValue($nodes, $product)) && $product->getUseConfigEmailTemplate()) ?
127
+            Mage::helper('eb2ccore')->getStoreConfig(Enterprise_GiftCard_Model_Giftcard::XML_PATH_EMAIL_TEMPLATE, $product->getStoreId()) : $product->getEmailTemplate();
131 128
     }
132 129
 }
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
 class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case
17 17
 {
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Helper/Pim.php 3 patches
Doc Comments   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @param  string                              $attribute
28 28
      * @param  Mage_Catalog_Model_Product          $product
29 29
      * @param  DOMDocument             $doc
30
-     * @return DOMNode|null
30
+     * @return DOMDocumentFragment|null
31 31
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
32 32
      */
33 33
     public function getValueAsDefault($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param  string                              $attribute
48 48
      * @param  Mage_Catalog_Model_Product          $product
49 49
      * @param  DOMDocument         $doc
50
-     * @return DOMNode|null
50
+     * @return DOMCdataSection
51 51
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
52 52
      */
53 53
     public function passString($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @param  Mage_Catalog_Model_Product          $product
64 64
      * @param  DOMDocument             $doc
65 65
      * @throws EbayEnterprise_Catalog_Model_Pim_Product_Validation_Exception
66
-     * @return DOMNode|null
66
+     * @return DOMCdataSection
67 67
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
68 68
      */
69 69
     public function passSKU($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param  string                              $attribute
85 85
      * @param  Mage_Catalog_Model_Product          $product
86 86
      * @param  DOMDocument         $doc
87
-     * @return DOMNode|null
87
+     * @return DOMCdataSection|null
88 88
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
89 89
      */
90 90
     public function passStringIf($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      * @param  string                              $attribute
103 103
      * @param  Mage_Catalog_Model_Product          $product
104 104
      * @param  DOMDocument         $doc
105
-     * @return DOMNode|null
105
+     * @return DOMText
106 106
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
107 107
      */
108 108
     public function passPrice($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      * @param  string                              $attribute
118 118
      * @param  Mage_Catalog_Model_Product          $product
119 119
      * @param  DOMDocument         $doc
120
-     * @return DOMNode|null
120
+     * @return DOMText
121 121
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
122 122
      */
123 123
     public function passDecimal($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * @param  string                              $attribute
133 133
      * @param  Mage_Catalog_Model_Product          $product
134 134
      * @param  DOMDocument         $doc
135
-     * @return DOMNode|null
135
+     * @return DOMText
136 136
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
137 137
      */
138 138
     public function passDate($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
      * @param  string                              $attribute
149 149
      * @param  Mage_Catalog_Model_Product          $product
150 150
      * @param  DOMDocument         $doc
151
-     * @return DOMNode|null
151
+     * @return DOMText
152 152
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
153 153
      */
154 154
     public function passInteger($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      * @param  string                              $attribute
165 165
      * @param  Mage_Catalog_Model_Product          $product
166 166
      * @param  DOMDocument         $doc
167
-     * @return DOMNode|null
167
+     * @return DOMText
168 168
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
169 169
      */
170 170
     public function passYesNoToBool($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
     /**
293 293
      * given a string representing decimal value if the string is a numeric value cast it as float otherwise return null
294 294
      * @param string $value
295
-     * @return int | null
295
+     * @return double|null | null
296 296
      */
297 297
     public function createDecimal($value)
298 298
     {
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
      * @param  string                     $attribute
358 358
      * @param  Mage_Catalog_Model_Product $product
359 359
      * @param  DOMDocument                $doc
360
-     * @return mixed
360
+     * @return DOMCdataSection|null
361 361
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
362 362
      */
363 363
     public function passStyleId($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      * @param  string                     $attribute
373 373
      * @param  Mage_Catalog_Model_Product $product
374 374
      * @param  DOMDocument                $doc
375
-     * @return mixed
375
+     * @return null|DOMDocumentFragment
376 376
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
377 377
      */
378 378
     public function passGiftCard($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
      * @param  string                     $attribute
403 403
      * @param  Mage_Catalog_Model_Product $product
404 404
      * @param  DOMDocument                $doc
405
-     * @return mixed
405
+     * @return DOMDocumentFragment|null
406 406
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
407 407
      */
408 408
     public function passProductLinks($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
      * @param  string                     $attribute
458 458
      * @param  Mage_Catalog_Model_Product $product
459 459
      * @param  DOMDocument                $doc
460
-     * @return mixed
460
+     * @return DOMDocumentFragment|null
461 461
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
462 462
      */
463 463
     public function passCategoryLinks($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      * @param  string                     $attribute
488 488
      * @param  Mage_Catalog_Model_Product $product
489 489
      * @param  DOMDocument                $doc
490
-     * @return mixed
490
+     * @return DOMCdataSection
491 491
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
492 492
      */
493 493
     public function passGiftWrap($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
@@ -504,7 +504,7 @@  discard block
 block discarded – undo
504 504
      * @param  string                              $attribute
505 505
      * @param  Mage_Catalog_Model_Product          $product
506 506
      * @param  DOMDocument         $doc
507
-     * @return DOMNode|null
507
+     * @return DOMCdataSection|null
508 508
      * @SuppressWarnings(PHPMD.UnusedFormalParameter)
509 509
      */
510 510
     public function passIsoCountryCode($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
Please login to merge, or discard this patch.
Spacing   +9 added lines, -12 removed lines patch added patch discarded remove patch
@@ -203,8 +203,7 @@  discard block
 block discarded – undo
203 203
         $domAttribute = $this->_getDomAttr($doc, $attribute);
204 204
         $lastRunTime = Mage::helper('ebayenterprise_catalog')->getConfigModel()->pimExportFeedCutoffDate;
205 205
         $domAttribute->value = strtotime($product->getCreatedAt()) > strtotime($lastRunTime) ?
206
-            static::NEW_PRODUCT_OPERATION_TYPE :
207
-            static::DEFAULT_OPERATION_TYPE;
206
+            static::NEW_PRODUCT_OPERATION_TYPE : static::DEFAULT_OPERATION_TYPE;
208 207
         return $domAttribute;
209 208
     }
210 209
     /**
@@ -278,7 +277,7 @@  discard block
 block discarded – undo
278 277
      */
279 278
     public function createDateTime($value)
280 279
     {
281
-        return !empty($value)? date('c', strtotime($value)) : null;
280
+        return !empty($value) ? date('c', strtotime($value)) : null;
282 281
     }
283 282
     /**
284 283
      * given a string representing integer value if the string is a numeric value cast it as integer otherwise return null
@@ -287,7 +286,7 @@  discard block
 block discarded – undo
287 286
      */
288 287
     public function createInteger($value)
289 288
     {
290
-        return is_numeric($value)? (int) $value : null;
289
+        return is_numeric($value) ? (int) $value : null;
291 290
     }
292 291
     /**
293 292
      * given a string representing decimal value if the string is a numeric value cast it as float otherwise return null
@@ -296,7 +295,7 @@  discard block
 block discarded – undo
296 295
      */
297 296
     public function createDecimal($value)
298 297
     {
299
-        return is_numeric($value)? (float) $value : null;
298
+        return is_numeric($value) ? (float) $value : null;
300 299
     }
301 300
     /**
302 301
      * given a string if it is '1' return 'true' otherwise 'false'
@@ -305,7 +304,7 @@  discard block
 block discarded – undo
305 304
      */
306 305
     public function createBool($value)
307 306
     {
308
-        return ($value === '1')? 'true' : 'false';
307
+        return ($value === '1') ? 'true' : 'false';
309 308
     }
310 309
     /**
311 310
      * For a given product, look for a configurable product using that product.
@@ -382,11 +381,9 @@  discard block
 block discarded – undo
382 381
         }
383 382
         $cfg = Mage::helper('ebayenterprise_catalog')->getConfigModel();
384 383
         $allowMessage = $product->getUseConfigAllowMessage() ?
385
-            $cfg->getConfigData(Enterprise_GiftCard_Model_Giftcard::XML_PATH_ALLOW_MESSAGE) :
386
-            $product->getAllowMessage();
384
+            $cfg->getConfigData(Enterprise_GiftCard_Model_Giftcard::XML_PATH_ALLOW_MESSAGE) : $product->getAllowMessage();
387 385
         $MessageMaxLength = $allowMessage ?
388
-            (int) $cfg->getConfigData(Enterprise_GiftCard_Model_Giftcard::XML_PATH_MESSAGE_MAX_LENGTH) :
389
-            0;
386
+            (int) $cfg->getConfigData(Enterprise_GiftCard_Model_Giftcard::XML_PATH_MESSAGE_MAX_LENGTH) : 0;
390 387
         $isDigital = $product->getGiftCardType() === Enterprise_GiftCard_Model_Giftcard::TYPE_VIRTUAL ? 'true' : 'false';
391 388
         $namespaceUri = $doc->documentElement->namespaceURI;
392 389
         $frag = $doc->createDocumentFragment();
@@ -468,7 +465,7 @@  discard block
 block discarded – undo
468 465
             ->addAttributeToSelect('name');
469 466
         foreach ($categories as $category) {
470 467
             $pathArr = explode('/', $category->getPath());
471
-            array_walk($pathArr, function (&$val) use ($all) {
468
+            array_walk($pathArr, function(&$val) use ($all) {
472 469
                 $part = $all->getItemById((int) $val);
473 470
                 $val = $part ? $part->getName() : null;
474 471
             });
@@ -510,6 +507,6 @@  discard block
 block discarded – undo
510 507
     public function passIsoCountryCode($attrValue, $attribute, Mage_Catalog_Model_Product $product, DOMDocument $doc)
511 508
     {
512 509
         return Mage::helper('ebayenterprise_catalog')->isValidIsoCountryCode($attrValue) ?
513
-            $this->passString($attrValue, $attribute, $product, $doc): null;
510
+            $this->passString($attrValue, $attribute, $product, $doc) : null;
514 511
     }
515 512
 }
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
 class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case
17 17
 {
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Interface/Feed.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * The point of entry to start process a feed.
23
+     * @return integer
23 24
      */
24 25
     public function processFeeds();
25 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-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
 class EbayEnterprise_Tax_Test_Model_Total_Quote_Address_TaxTest extends EcomDev_PHPUnit_Test_Case
17 17
 {
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Model/Error/Confirmations.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -190,6 +190,8 @@  discard block
 block discarded – undo
190 190
 
191 191
     /**
192 192
      * @see EbayEnterprise_Catalog_Model_Error_IConfirmations::addMessage()
193
+     * @param string $msgTemplate
194
+     * @param string $message
193 195
      */
194 196
     public function addMessage($msgTemplate, $message)
195 197
     {
@@ -205,6 +207,8 @@  discard block
 block discarded – undo
205 207
 
206 208
     /**
207 209
      * @see EbayEnterprise_Catalog_Model_Error_IConfirmations::addError()
210
+     * @param string $type
211
+     * @param string $fileName
208 212
      */
209 213
     public function addError($type, $fileName)
210 214
     {
@@ -221,6 +225,7 @@  discard block
 block discarded – undo
221 225
 
222 226
     /**
223 227
      * @see EbayEnterprise_Catalog_Model_Error_IConfirmations::addErrorConfirmation()
228
+     * @param string $sku
224 229
      */
225 230
     public function addErrorConfirmation($sku)
226 231
     {
@@ -389,6 +394,7 @@  discard block
 block discarded – undo
389 394
      * @param  array list of SKUs that were suppose to be imported
390 395
      * @param  string the file the sku was found on
391 396
      * @param  string the event type
397
+     * @param string $fileName
392 398
      * @return self
393 399
      */
394 400
     protected function addImportErrors(
Please login to merge, or discard this patch.
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -355,9 +355,8 @@
 block discarded – undo
355 355
 
356 356
         $this->loadFile($errorFile);
357 357
 
358
-        return ($operationType === 'delete')?
359
-            $this->addDeleteErrors($collection, $fileName, $type) :
360
-            $this->addImportErrors($collection, $skus, $fileName, $type);
358
+        return ($operationType === 'delete') ?
359
+            $this->addDeleteErrors($collection, $fileName, $type) : $this->addImportErrors($collection, $skus, $fileName, $type);
361 360
     }
362 361
 
363 362
     /**
Please login to merge, or discard this patch.