Skip to content

Commit 7630ca2

Browse files
authored
Update PHPdoc and remove useless var (#2056)
Just a little MR for remove useless var $filesToValueId who's never used and add PHPdoc @throws Mage_Core_Exception
1 parent 3dc7e68 commit 7630ca2

File tree

1 file changed

+3
-1
lines changed
  • app/code/core/Mage/Catalog/Model/Product/Attribute/Backend

1 file changed

+3
-1
lines changed

app/code/core/Mage/Catalog/Model/Product/Attribute/Backend/Media.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ public function afterSave($object)
235235
}
236236

237237
$toDelete = array();
238-
$filesToValueIds = array();
239238
foreach ($value['images'] as &$image) {
240239
if (!empty($image['removed'])) {
241240
if (isset($image['value_id']) && !isset($picturesInOtherStores[$image['file']])) {
@@ -278,6 +277,7 @@ public function afterSave($object)
278277
* @param boolean $move if true, it will move source file
279278
* @param boolean $exclude mark image as disabled in product page view
280279
* @return string
280+
* @throws Mage_Core_Exception
281281
*/
282282
public function addImage(
283283
Mage_Catalog_Model_Product $product,
@@ -376,6 +376,7 @@ public function addImage(
376376
* @param boolean $move if true, it will move source file
377377
* @param boolean $exclude mark image as disabled in product page view
378378
* @return array array of parallel arrays with original and renamed files
379+
* @throws Mage_Core_Exception
379380
*/
380381
public function addImagesWithDifferentMediaAttributes(
381382
Mage_Catalog_Model_Product $product,
@@ -637,6 +638,7 @@ protected function _getUniqueFileName($file, $dirsep)
637638
*
638639
* @param string $file
639640
* @return string
641+
* @throws Mage_Core_Exception
640642
*/
641643
protected function _copyImage($file)
642644
{

0 commit comments

Comments
 (0)