@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | /** |
| 171 | 171 | * Return's the action with the product media gallery valueCRUD methods. |
| 172 | 172 | * |
| 173 | - * @return \TechDivision\Import\Product\Media\Actions\ProductMediaGalleryAction The action with the product media gallery value CRUD methods |
|
| 173 | + * @return \TechDivision\Import\Product\Media\Actions\ProductMediaGalleryValueAction The action with the product media gallery value CRUD methods |
|
| 174 | 174 | */ |
| 175 | 175 | public function getProductMediaGalleryValueAction() |
| 176 | 176 | { |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | /** |
| 193 | 193 | * Return's the action with the product media gallery value to entity CRUD methods. |
| 194 | 194 | * |
| 195 | - * @return \TechDivision\Import\Product\Media\Actions\ProductMediaGalleryAction $productMediaGalleryAction The action with the product media gallery value to entity CRUD methods |
|
| 195 | + * @return \TechDivision\Import\Product\Media\Actions\ProductMediaGalleryValueToEntityAction $productMediaGalleryAction The action with the product media gallery value to entity CRUD methods |
|
| 196 | 196 | */ |
| 197 | 197 | public function getProductMediaGalleryValueToEntityAction() |
| 198 | 198 | { |
@@ -289,7 +289,7 @@ |
||
| 289 | 289 | /** |
| 290 | 290 | * Return's the name of the created image. |
| 291 | 291 | * |
| 292 | - * @return string The name of the created image |
|
| 292 | + * @return integer The name of the created image |
|
| 293 | 293 | */ |
| 294 | 294 | public function getParentImage() |
| 295 | 295 | { |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | */ |
| 262 | 262 | public function setParentValueId($parentValueId) |
| 263 | 263 | { |
| 264 | - $this->parentValueId = $parentValueId; |
|
| 264 | + $this->parentValueId = $parentValueId; |
|
| 265 | 265 | } |
| 266 | 266 | |
| 267 | 267 | /** |
@@ -406,11 +406,11 @@ discard block |
||
| 406 | 406 | if ($this->getFilesystem()->has($targetFilename)) { |
| 407 | 407 | // initialize the incex and the basename |
| 408 | 408 | $index = 1; |
| 409 | - $baseName = $fileInfo['filename'] . '.' . $fileInfo['extension']; |
|
| 409 | + $baseName = $fileInfo['filename'].'.'.$fileInfo['extension']; |
|
| 410 | 410 | |
| 411 | 411 | // prepare the new filename by raising the index |
| 412 | - while ($this->getFilesystem()->has($fileInfo['dirname'] . '/' . $baseName)) { |
|
| 413 | - $baseName = $fileInfo['filename'] . '_' . $index . '.' . $fileInfo['extension']; |
|
| 412 | + while ($this->getFilesystem()->has($fileInfo['dirname'].'/'.$baseName)) { |
|
| 413 | + $baseName = $fileInfo['filename'].'_'.$index.'.'.$fileInfo['extension']; |
|
| 414 | 414 | $index++; |
| 415 | 415 | } |
| 416 | 416 | |