@@ -89,9 +89,12 @@ |
||
89 | 89 | |
90 | 90 | $context->setLocale( $manager->create()->setSiteId( $siteId ) ); |
91 | 91 | |
92 | - try { |
|
92 | + try |
|
93 | + { |
|
93 | 94 | $manager->save( $manager->create()->fromArray( $data ) ); |
94 | - } catch( \Aimeos\Base\DB\Exception $e ) { |
|
95 | + } |
|
96 | + catch( \Aimeos\Base\DB\Exception $e ) |
|
97 | + { |
|
95 | 98 | } |
96 | 99 | } |
97 | 100 |
@@ -75,7 +75,9 @@ |
||
75 | 75 | unset( $row['id'] ); |
76 | 76 | $db->insert( 'mshop_type', $row + ['for' => $for] ); |
77 | 77 | } |
78 | - catch( \Exception $e ) {} // Ignore duplicate entries |
|
78 | + catch( \Exception $e ) |
|
79 | + { |
|
80 | +} // Ignore duplicate entries |
|
79 | 81 | } |
80 | 82 | } |
81 | 83 | } |
@@ -132,7 +132,7 @@ |
||
132 | 132 | |
133 | 133 | //search with base criteria |
134 | 134 | $search = $this->object->filter( true ); |
135 | - $search->add( $search->compare( '==', 'plugin.type.editor', $this->editor ), ); |
|
135 | + $search->add( $search->compare( '==', 'plugin.type.editor', $this->editor ),); |
|
136 | 136 | $search->setSortations( [$search->sort( '-', 'plugin.type.position' )] ); |
137 | 137 | |
138 | 138 | $results = $this->object->search( $search ); |