Passed
Push — master ( 017338...6564ec )
by Aimeos
05:19
created
setup/default/DemoAddCatalogData.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 			$this->removeRefItems( map( $item ), $domains );
129 129
 			$manager->save( $item );
130 130
 		}
131
-		catch( \Exception $e ) { ; } // If no root node was already inserted into the database
131
+		catch( \Exception $e ) {; } // If no root node was already inserted into the database
132 132
 
133 133
 		$filter = $manager->filter()
134 134
 			->add( 'catalog.code', '=~', 'demo-' )
Please login to merge, or discard this patch.
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -77,9 +77,12 @@  discard block
 block discarded – undo
77 77
 		$context = $this->context();
78 78
 		$manager = \Aimeos\MShop::create( $context, 'catalog' );
79 79
 
80
-		try {
80
+		try
81
+		{
81 82
 			$item = $manager->getTree( null, ['media', 'text'], \Aimeos\MW\Tree\Manager\Base::LEVEL_ONE );
82
-		} catch( \Exception $e ) {
83
+		}
84
+		catch( \Exception $e )
85
+		{
83 86
 			$item = $manager->insert( $manager->create()->fromArray( $data ) );
84 87
 		}
85 88
 
@@ -128,7 +131,9 @@  discard block
 block discarded – undo
128 131
 			$this->removeRefItems( map( $item ), $domains );
129 132
 			$manager->save( $item );
130 133
 		}
131
-		catch( \Exception $e ) { ; } // If no root node was already inserted into the database
134
+		catch( \Exception $e )
135
+		{
136
+; } // If no root node was already inserted into the database
132 137
 
133 138
 		$filter = $manager->filter()
134 139
 			->add( 'catalog.code', '=~', 'demo-' )
Please login to merge, or discard this patch.