Passed
Push — master ( 02b303...90ef4e )
by Aimeos
04:28
created
setup/MShopAddDataAbstract.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
 			try {
89 89
 				$refItem = $refManager->find( $refItem->getCode(), [], $item->getResourceType(), $refItem->getType() );
90
-			} catch( \Exception $e ) { ; } // if not found, use the new item
90
+			} catch( \Exception $e ) {; } // if not found, use the new item
91 91
 
92 92
 			$refItem = $this->addRefItems( $refItem, $data );
93 93
 			$item->addListItem( 'attribute', $listItem, $refItem );
Please login to merge, or discard this patch.
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,9 +85,13 @@
 block discarded – undo
85 85
 			$listItem = $manager->createListItem()->setPosition( $idx )->fromArray( $data );
86 86
 			$refItem = $refManager->create()->fromArray( $data );
87 87
 
88
-			try {
88
+			try
89
+			{
89 90
 				$refItem = $refManager->find( $refItem->getCode(), [], $item->getResourceType(), $refItem->getType() );
90
-			} catch( \Exception $e ) { ; } // if not found, use the new item
91
+			}
92
+			catch( \Exception $e )
93
+			{
94
+; } // if not found, use the new item
91 95
 
92 96
 			$refItem = $this->addRefItems( $refItem, $data );
93 97
 			$item->addListItem( 'attribute', $listItem, $refItem );
Please login to merge, or discard this patch.