Completed
Push — master ( 0010c2...5cb668 )
by Aimeos
02:18
created
common/src/Controller/Common/Coupon/Import/Csv/Processor/Base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
controller/jobs/src/Controller/Jobs/Coupon/Import/Csv/Code/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,8 +160,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.