Skip to content

Commit 7b21982

Browse files
committed
MAGETWO-95643: Import error
1 parent caba31b commit 7b21982

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

app/code/Magento/ImportExport/Controller/Adminhtml/Import/Validate.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public function execute()
6464
* @param bool $validationResult
6565
* @param Result $resultBlock
6666
* @return void
67-
* @throws \Magento\Framework\Exception\LocalizedException
6867
*/
6968
private function processValidationResult($validationResult, $resultBlock)
7069
{
@@ -121,7 +120,6 @@ private function getImport()
121120
*
122121
* @param Result $resultBlock
123122
* @return void
124-
* @throws \Magento\Framework\Exception\LocalizedException
125123
*/
126124
private function addMessageToSkipErrors(Result $resultBlock)
127125
{
@@ -142,7 +140,6 @@ private function addMessageToSkipErrors(Result $resultBlock)
142140
*
143141
* @param Result $resultBlock
144142
* @return void
145-
* @throws \Magento\Framework\Exception\LocalizedException
146143
*/
147144
private function addMessageForValidResult(Result $resultBlock)
148145
{
@@ -161,7 +158,6 @@ private function addMessageForValidResult(Result $resultBlock)
161158
*
162159
* @param Result $resultBlock
163160
* @return void
164-
* @throws \Magento\Framework\Exception\LocalizedException
165161
*/
166162
private function collectErrors(Result $resultBlock)
167163
{

app/code/Magento/ImportExport/Model/Import.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ protected function _getEntityAdapter()
284284
*
285285
* @param string $sourceFile Full path to source file
286286
* @return \Magento\ImportExport\Model\Import\AbstractSource
287-
* @throws \Magento\Framework\Exception\FileSystemException
288287
*/
289288
protected function _getSourceAdapter($sourceFile)
290289
{
@@ -300,7 +299,6 @@ protected function _getSourceAdapter($sourceFile)
300299
*
301300
* @param ProcessingErrorAggregatorInterface $validationResult
302301
* @return string[]
303-
* @throws \Magento\Framework\Exception\LocalizedException
304302
*/
305303
public function getOperationResultMessages(ProcessingErrorAggregatorInterface $validationResult)
306304
{
@@ -397,7 +395,6 @@ public function getEntity()
397395
* Returns number of checked entities.
398396
*
399397
* @return int
400-
* @throws \Magento\Framework\Exception\LocalizedException
401398
*/
402399
public function getProcessedEntitiesCount()
403400
{
@@ -408,7 +405,6 @@ public function getProcessedEntitiesCount()
408405
* Returns number of checked rows.
409406
*
410407
* @return int
411-
* @throws \Magento\Framework\Exception\LocalizedException
412408
*/
413409
public function getProcessedRowsCount()
414410
{
@@ -464,7 +460,6 @@ public function importSource()
464460

465461
/**
466462
* @return bool
467-
* @throws \Magento\Framework\Exception\LocalizedException
468463
*/
469464
protected function processImport()
470465
{
@@ -493,7 +488,6 @@ protected function processImport()
493488
* Import possibility getter.
494489
*
495490
* @return bool
496-
* @throws \Magento\Framework\Exception\LocalizedException
497491
*/
498492
public function isImportAllowed()
499493
{
@@ -591,7 +585,6 @@ public function uploadFileAndGetSource()
591585
*
592586
* @param string $sourceFile
593587
* @return $this
594-
* @throws \Magento\Framework\Exception\FileSystemException
595588
*/
596589
protected function _removeBom($sourceFile)
597590
{
@@ -611,7 +604,6 @@ protected function _removeBom($sourceFile)
611604
*
612605
* @param \Magento\ImportExport\Model\Import\AbstractSource $source
613606
* @return bool
614-
* @throws \Magento\Framework\Exception\LocalizedException
615607
*/
616608
public function validateSource(\Magento\ImportExport\Model\Import\AbstractSource $source)
617609
{
@@ -651,7 +643,6 @@ public function validateSource(\Magento\ImportExport\Model\Import\AbstractSource
651643
* Invalidate indexes by process codes.
652644
*
653645
* @return $this
654-
* @throws \Magento\Framework\Exception\LocalizedException
655646
*/
656647
public function invalidateIndex()
657648
{
@@ -717,7 +708,6 @@ public function getEntityBehaviors()
717708
* )
718709
*
719710
* @return array
720-
* @throws \Magento\Framework\Exception\LocalizedException
721711
*/
722712
public function getUniqueEntityBehaviors()
723713
{
@@ -808,7 +798,6 @@ protected function createHistoryReport($sourceFileRelative, $entity, $extension
808798
* Get count of created items
809799
*
810800
* @return int
811-
* @throws \Magento\Framework\Exception\LocalizedException
812801
*/
813802
public function getCreatedItemsCount()
814803
{
@@ -819,7 +808,6 @@ public function getCreatedItemsCount()
819808
* Get count of updated items
820809
*
821810
* @return int
822-
* @throws \Magento\Framework\Exception\LocalizedException
823811
*/
824812
public function getUpdatedItemsCount()
825813
{
@@ -830,7 +818,6 @@ public function getUpdatedItemsCount()
830818
* Get count of deleted items
831819
*
832820
* @return int
833-
* @throws \Magento\Framework\Exception\LocalizedException
834821
*/
835822
public function getDeletedItemsCount()
836823
{

app/code/Magento/ImportExport/Model/Import/Source/Zip.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class Zip extends Csv
1616
* @param string $file
1717
* @param \Magento\Framework\Filesystem\Directory\Write $directory
1818
* @param string $options
19-
* @throws \Magento\Framework\Exception\LocalizedException
2019
* @throws \Magento\Framework\Exception\ValidatorException
2120
*/
2221
public function __construct(

dev/tests/integration/testsuite/Magento/ImportExport/Controller/Adminhtml/Import/ValidateTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class ValidateTest extends \Magento\TestFramework\TestCase\AbstractBackendContro
2020
* @param string $mimeType
2121
* @param string $message
2222
* @param string $delimiter
23-
* @throws \Magento\Framework\Exception\FileSystemException
2423
* @backupGlobals enabled
2524
* @magentoDbIsolation enabled
2625
* @SuppressWarnings(PHPMD.Superglobals)

0 commit comments

Comments
 (0)