@@ -29,7 +29,7 @@ |
||
| 29 | 29 | * Initializes the object |
| 30 | 30 | * |
| 31 | 31 | * @param \Aimeos\MShop\Context\Item\Iface $context Context object |
| 32 | - * @param array $mapping Associative list of field position in CSV as key and domain item key as value |
|
| 32 | + * @param string[] $mapping Associative list of field position in CSV as key and domain item key as value |
|
| 33 | 33 | * @param \Aimeos\Controller\Common\Coupon\Import\Csv\Processor\Iface $object Decorated processor |
| 34 | 34 | */ |
| 35 | 35 | public function __construct( \Aimeos\MShop\Context\Item\Iface $context, array $mapping, |
@@ -160,8 +160,7 @@ discard block |
||
| 160 | 160 | $msg = 'Finished coupon import: %1$d successful, %2$s errors, %3$s total (%4$s)'; |
| 161 | 161 | $logger->log( sprintf( $msg, $total - $errors, $errors, $total, __CLASS__ ), \Aimeos\MW\Logger\Base::NOTICE ); |
| 162 | 162 | } |
| 163 | - } |
|
| 164 | - catch( \Exception $e ) |
|
| 163 | + } catch( \Exception $e ) |
|
| 165 | 164 | { |
| 166 | 165 | $logger->log( 'Coupon import error: ' . $e->getMessage() ); |
| 167 | 166 | $logger->log( $e->getTraceAsString() ); |
@@ -309,8 +308,7 @@ discard block |
||
| 309 | 308 | $list = $processor->process( $item, $list ); |
| 310 | 309 | |
| 311 | 310 | $manager->commit(); |
| 312 | - } |
|
| 313 | - catch( \Exception $e ) |
|
| 311 | + } catch( \Exception $e ) |
|
| 314 | 312 | { |
| 315 | 313 | $manager->rollback(); |
| 316 | 314 | |