@@ -25,7 +25,7 @@ |
||
| 25 | 25 | return; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - $this->info( 'Remove mshop_locale char constraints' , 'v' ); |
|
| 28 | + $this->info( 'Remove mshop_locale char constraints', 'v' ); |
|
| 29 | 29 | |
| 30 | 30 | if( $db->hasForeign( 'mshop_locale', 'fk_msloc_langid' ) |
| 31 | 31 | && $db->hasColumn( 'mshop_locale', 'langid' ) |
@@ -76,7 +76,9 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | $localeManager->save( $localeItem, false ); |
| 78 | 78 | } |
| 79 | - catch( \Aimeos\MW\DB\Exception $e ) {} // already in the database |
|
| 79 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
| 80 | + { |
|
| 81 | +} // already in the database |
|
| 80 | 82 | } |
| 81 | 83 | |
| 82 | 84 | |
@@ -217,9 +219,13 @@ discard block |
||
| 217 | 219 | $localeItem->setPosition( $dataset['pos'] ); |
| 218 | 220 | $localeItem->setStatus( $dataset['status'] ); |
| 219 | 221 | |
| 220 | - try { |
|
| 222 | + try |
|
| 223 | + { |
|
| 221 | 224 | $localeItemManager->save( $localeItem ); |
| 222 | - } catch( \Aimeos\MW\DB\Exception $e ) {; } // if locale combination was already available |
|
| 225 | + } |
|
| 226 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
| 227 | + { |
|
| 228 | +; } // if locale combination was already available |
|
| 223 | 229 | } |
| 224 | 230 | } |
| 225 | 231 | } |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $item = $item->setId( null )->fromArray( $dataset ); |
| 51 | 51 | $manager->save( $item ); |
| 52 | 52 | } |
| 53 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
| 53 | + catch( \Exception $e ) {; } // if attribute was already available |
|
| 54 | 54 | } |
| 55 | 55 | } |
| 56 | 56 | } |
@@ -50,7 +50,9 @@ |
||
| 50 | 50 | $item = $item->setId( null )->fromArray( $dataset ); |
| 51 | 51 | $manager->save( $item ); |
| 52 | 52 | } |
| 53 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
| 53 | + catch( \Exception $e ) |
|
| 54 | + { |
|
| 55 | +; } // if attribute was already available |
|
| 54 | 56 | } |
| 55 | 57 | } |
| 56 | 58 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | try { |
| 79 | 79 | $domainManager->save( $type ); |
| 80 | 80 | $num++; |
| 81 | - } catch( \Exception $e ) { ; } // if type was already available |
|
| 81 | + } catch( \Exception $e ) {; } // if type was already available |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | } |
@@ -75,10 +75,14 @@ |
||
| 75 | 75 | $type->setLabel( $dataset['label'] ); |
| 76 | 76 | $type->setStatus( $dataset['status'] ); |
| 77 | 77 | |
| 78 | - try { |
|
| 78 | + try |
|
| 79 | + { |
|
| 79 | 80 | $domainManager->save( $type ); |
| 80 | 81 | $num++; |
| 81 | - } catch( \Exception $e ) { ; } // if type was already available |
|
| 82 | + } |
|
| 83 | + catch( \Exception $e ) |
|
| 84 | + { |
|
| 85 | +; } // if type was already available |
|
| 82 | 86 | } |
| 83 | 87 | } |
| 84 | 88 | } |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | { |
| 140 | 140 | $db->stmt()->update( $table )->set( $colname . ' = ?' ) |
| 141 | 141 | ->where( $colname . ' = ?' )->orWhere( $colname . " = ''" ) |
| 142 | - ->setParameters( [$site, $siteid ] ) |
|
| 142 | + ->setParameters( [$site, $siteid] ) |
|
| 143 | 143 | ->execute(); |
| 144 | 144 | } |
| 145 | 145 | } |
@@ -85,9 +85,13 @@ |
||
| 85 | 85 | $item->setPosition( $dataset['position'] ); |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | - try { |
|
| 88 | + try |
|
| 89 | + { |
|
| 89 | 90 | $pluginManager->save( $item ); |
| 90 | - } catch( \Exception $e ) {; } // if plugin configuration was already available |
|
| 91 | + } |
|
| 92 | + catch( \Exception $e ) |
|
| 93 | + { |
|
| 94 | +; } // if plugin configuration was already available |
|
| 91 | 95 | } |
| 92 | 96 | } |
| 93 | 97 | } |
@@ -45,14 +45,14 @@ |
||
| 45 | 45 | $table->string( 'city', 200 ); |
| 46 | 46 | $table->string( 'state', 200 ); |
| 47 | 47 | $table->string( 'langid', 5 )->null( true ); |
| 48 | - $table->string( 'countryid', 2 )->null( true );; |
|
| 48 | + $table->string( 'countryid', 2 )->null( true ); ; |
|
| 49 | 49 | $table->string( 'telephone', 32 ); |
| 50 | 50 | $table->string( 'telefax', 32 ); |
| 51 | 51 | $table->string( 'email' ); |
| 52 | 52 | $table->string( 'website' ); |
| 53 | - $table->float( 'longitude' )->null( true );; |
|
| 54 | - $table->float( 'latitude' )->null( true );; |
|
| 55 | - $table->date( 'birthday' )->null( true );; |
|
| 53 | + $table->float( 'longitude' )->null( true ); ; |
|
| 54 | + $table->float( 'latitude' )->null( true ); ; |
|
| 55 | + $table->date( 'birthday' )->null( true ); ; |
|
| 56 | 56 | $table->smallint( 'pos' ); |
| 57 | 57 | $table->meta(); |
| 58 | 58 | |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | |
| 15 | 15 | $table->id()->primary( 'pk_msmedty_id' ); |
| 16 | 16 | $table->string( 'siteid' ); |
| 17 | - $table->string( 'domain', 32 ); |
|
| 17 | + $table->string( 'domain', 32 ); |
|
| 18 | 18 | $table->code(); |
| 19 | 19 | $table->string( 'label' ); |
| 20 | 20 | $table->int( 'pos' ); |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | $table->string( 'name' ); |
| 159 | 159 | $table->string( 'mediaurl' ); |
| 160 | 160 | $table->string( 'currencyid', 3 ); |
| 161 | - $table->string( 'price', 12)->null( true ); |
|
| 161 | + $table->string( 'price', 12 )->null( true ); |
|
| 162 | 162 | $table->string( 'costs', 12 ); |
| 163 | 163 | $table->string( 'rebate', 12 ); |
| 164 | 164 | $table->string( 'tax', 14, 4 ); |