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
Push — master ( 8c902a...b02519 )
by Michael
15:59 queued 49s
created
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.
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_Catalog_Helper_Pim
17 17
 {
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.
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
 /**
17 17
  * A common interface that all eb2c classes which process feeds must implement.
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.
src/app/code/community/EbayEnterprise/Catalog/Model/Feed/Ack.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -76,6 +76,9 @@  discard block
 block discarded – undo
76 76
         return [$logger, $context, $coreHelper];
77 77
     }
78 78
 
79
+    /**
80
+     * @param string $key
81
+     */
79 82
     protected function _nullCoalesce($key, array $arr, $default = null)
80 83
     {
81 84
         return isset($arr[$key]) ? $arr[$key] : $default;
@@ -188,6 +191,7 @@  discard block
 block discarded – undo
188 191
      * try removing the source file
189 192
      * @param string
190 193
      * @param string
194
+     * @param string $cfgKey
191 195
      * @return self
192 196
      */
193 197
     protected function _mvTo($sourceFile, $cfgKey)
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
 /**
17 17
  * This class will implement the functionality to confirm that feed files that were exported such as PIM, and Image
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
                 self::CFG_ERROR_DIRECTORY => $cfg->feedAckErrorDirectory,
103 103
             ];
104 104
         }
105
-        return isset($this->_configMap[$cfgKey])? $this->_configMap[$cfgKey] : null;
105
+        return isset($this->_configMap[$cfgKey]) ? $this->_configMap[$cfgKey] : null;
106 106
     }
107 107
 
108 108
     /**
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
     protected function _getImportedAckFiles()
138 138
     {
139 139
         $imports = $this->_listFilesByCfgKey(self::CFG_IMPORTED_ACK_DIR);
140
-        return !empty($imports)? array_map([$this, '_extractExportedFile'], $imports): [];
140
+        return !empty($imports) ? array_map([$this, '_extractExportedFile'], $imports) : [];
141 141
     }
142 142
 
143 143
     /**
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Model/Observers.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      * @param  array
43 43
      * @param  string $field Valid array key
44 44
      * @param  mixed
45
-     * @return mixed
45
+     * @return EbayEnterprise_Eb2cCore_Model_Config_Registry
46 46
      */
47 47
     protected function nullCoalesce(array $arr, $field, $default)
48 48
     {
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@  discard block
 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_Catalog_Model_Observers
17 17
 {
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
         );
26 26
     }
27 27
 
28
-     /**
29
-     * Type hinting for self::__construct $initParams
30
-     *
31
-     * @param  EbayEnterprise_Eb2cCore_Model_Config_Registry
32
-     * @return array
33
-     */
28
+        /**
29
+         * Type hinting for self::__construct $initParams
30
+         *
31
+         * @param  EbayEnterprise_Eb2cCore_Model_Config_Registry
32
+         * @return array
33
+         */
34 34
     protected function checkTypes(EbayEnterprise_Eb2cCore_Model_Config_Registry $config)
35 35
     {
36 36
         return func_get_args();
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Model/Pim.php 3 patches
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -114,10 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
     /**
116 116
      * generate the outgoing product feed.
117
-     * @param  array  $productIds     list of product id's to include in the feed.
118
-     * @param  array  $feedTypeConfig configuration data for the current feed.
119
-     * @param  array  $stores         list of stores to use as context for getting values.
120
-     * @return array  array of full filepath where the feed files was saved.
117
+     * @return string  array of full filepath where the feed files was saved.
121 118
      */
122 119
     public function buildFeed()
123 120
     {
@@ -215,7 +212,6 @@  discard block
 block discarded – undo
215 212
      *
216 213
      * @param  Mage_Catalog_Model_Resource_Product_Collection $products products for a specific store
217 214
      * @param  EbayEnterprise_Catalog_Model_Pim_Product_Collection $pimProducts collection of PIM Product instances
218
-     * @param  string $key
219 215
      * @param array $productIds
220 216
      * @return EbayEnterprise_Catalog_Model_Pim_Product_Collection $pimProducts collection of PIM Product instances
221 217
      */
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
 
17 17
 class EbayEnterprise_Catalog_Model_Pim
Please login to merge, or discard this patch.
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
                 $logMessage = 'Product "{sku}" excluded from export.';
251 251
                 $this->_logger->warning($logMessage, $this->_context->getMetaData(__CLASS__, $logData));
252 252
                 $this->_logger->logException($e, $this->_context->getMetaData(__CLASS__, [], $e));
253
-                $excludedProductIds[]= $product->getId();
253
+                $excludedProductIds[] = $product->getId();
254 254
                 $pimProducts->deleteItem($pimProduct);
255 255
             }
256 256
         }
@@ -270,9 +270,8 @@  discard block
 block discarded – undo
270 270
     protected function _getFeedAttributes($storeId)
271 271
     {
272 272
         $config = $this->_getFeedConfig();
273
-        return ((int) $storeId === (int) $this->_getDefaultStoreViewId())?
274
-            array_keys($config[self::KEY_MAPPINGS]) :
275
-            $this->_getTranslatableAttributes($config[self::KEY_MAPPINGS]);
273
+        return ((int) $storeId === (int) $this->_getDefaultStoreViewId()) ?
274
+            array_keys($config[self::KEY_MAPPINGS]) : $this->_getTranslatableAttributes($config[self::KEY_MAPPINGS]);
276 275
     }
277 276
     /**
278 277
      * get only translatable attributes
@@ -281,7 +280,7 @@  discard block
 block discarded – undo
281 280
      */
282 281
     protected function _getTranslatableAttributes(array $mapAttributes)
283 282
     {
284
-        return array_filter(array_map(function ($key) use ($mapAttributes) {
283
+        return array_filter(array_map(function($key) use ($mapAttributes) {
285 284
                 return ($mapAttributes[$key]['translate'] === '1') ? $key : null;
286 285
         }, array_keys($mapAttributes)));
287 286
     }
Please login to merge, or discard this patch.
app/code/community/EbayEnterprise/Catalog/Model/Pim/Attribute/Factory.php 3 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,6 @@  discard block
 block discarded – undo
47 47
      * @param  string $attribute
48 48
      * @param  Mage_Catalog_Model_Product          $product
49 49
      * @param  EbayEnterprise_Dom_Document             $doc
50
-     * @param  array $key
51 50
      * @return EbayEnterprise_Catalog_Model_Pim_Attribute
52 51
      */
53 52
     public function getPimAttribute(
@@ -69,7 +68,6 @@  discard block
 block discarded – undo
69 68
     /**
70 69
      * Get the attribute mapping. The result will be an empty array.
71 70
      * @param  string $attribute
72
-     * @param  string $key
73 71
      * @return array
74 72
      */
75 73
     protected function _getAttributeMapping($attribute, $config)
@@ -81,7 +79,7 @@  discard block
 block discarded – undo
81 79
      * Lookup the callable described in the mapping xml to export this attribute for this product.
82 80
      *
83 81
      * @param array $callbackMapping
84
-     * @param $attribute
82
+     * @param string $attribute
85 83
      * @param Mage_Catalog_Model_Product $product
86 84
      * @param EbayEnterprise_Dom_Document $doc
87 85
      * @return array|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
 
17 17
 class EbayEnterprise_Catalog_Model_Pim_Attribute_Factory
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,7 @@
 block discarded – undo
125 125
             'destination_xpath' => $callbackMapping['xml_dest'],
126 126
             'sku' => $product->getSku(),
127 127
             'language' => $callbackMapping['translate'] ?
128
-                $product->getPimLanguageCode() :
129
-                null,
128
+                $product->getPimLanguageCode() : null,
130 129
             'value' => $pimAttributeValue,
131 130
         );
132 131
     }
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Model/Price/Event.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
     /**
113 113
      * Get the "special_price" if there is one.
114
-     * @return float|null
114
+     * @return double
115 115
      */
116 116
     public function getSpecialPrice()
117 117
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * format string or via a default.
135 135
      * @see self::_formatDate
136 136
      * @param  string|null $format Date format string to use
137
-     * @return string|null Formatted datetime
137
+     * @return string Formatted datetime
138 138
      */
139 139
     public function getSpecialFromDate($format = null)
140 140
     {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      * format string or via a default.
147 147
      * @see self::_formatDate
148 148
      * @param  string|null $format Date format string to use
149
-     * @return string|null Formatted datetime
149
+     * @return string Formatted datetime
150 150
      */
151 151
     public function getSpecialToDate($format = null)
152 152
     {
Please login to merge, or discard this patch.
src/app/code/community/EbayEnterprise/Catalog/Test/Helper/DataTest.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -862,8 +862,8 @@
 block discarded – undo
862 862
     }
863 863
     /**
864 864
      * Test normalizing a product style id to match formatting for skus
865
-     * @param  string $style   The product style id
866
-     * @param  string $catalog The product catalog id
865
+     * @param  string $styleId   The product style id
866
+     * @param  string $catalogId The product catalog id
867 867
      * @dataProvider dataProvider
868 868
      */
869 869
     public function testNormalizeSku($styleId, $catalogId)
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_Catalog_Test_Helper_DataTest extends EbayEnterprise_Eb2cCore_Test_Base
17 17
 {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -243,17 +243,17 @@
 block discarded – undo
243 243
      */
244 244
     public function testParseTranslations()
245 245
     {
246
-        $sampleInput = array (
247
-            array (
246
+        $sampleInput = array(
247
+            array(
248 248
                 'lang' => 'en-US',
249 249
                 'description' => 'An en-US translation',
250 250
             ),
251
-            array (
251
+            array(
252 252
                 'lang' => 'ja-JP',
253 253
                 'description' => 'ja-JP に変換',
254 254
             ),
255 255
         );
256
-        $expectedOutput = array (
256
+        $expectedOutput = array(
257 257
             'en-US' => 'An en-US translation',
258 258
             'ja-JP' => 'ja-JP に変換',
259 259
         );
Please login to merge, or discard this patch.