@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | return array( |
| 10 | 10 | 'table' => array( |
| 11 | - 'mshop_service_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 11 | + 'mshop_service_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 12 | 12 | |
| 13 | 13 | $table = $schema->createTable( 'mshop_service_type' ); |
| 14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | return $schema; |
| 32 | 32 | }, |
| 33 | 33 | |
| 34 | - 'mshop_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 34 | + 'mshop_service' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 35 | 35 | |
| 36 | 36 | $table = $schema->createTable( 'mshop_service' ); |
| 37 | 37 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $table->addColumn( 'status', 'smallint', [] ); |
| 47 | 47 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 48 | 48 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 49 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 49 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 50 | 50 | |
| 51 | 51 | $table->setPrimaryKey( array( 'id' ), 'pk_msser_id' ); |
| 52 | 52 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_msser_siteid_code' ); |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | return $schema; |
| 64 | 64 | }, |
| 65 | 65 | |
| 66 | - 'mshop_service_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 66 | + 'mshop_service_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 67 | 67 | |
| 68 | 68 | $table = $schema->createTable( 'mshop_service_list_type' ); |
| 69 | 69 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | return $schema; |
| 87 | 87 | }, |
| 88 | 88 | |
| 89 | - 'mshop_service_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 89 | + 'mshop_service_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 90 | 90 | |
| 91 | 91 | $table = $schema->createTable( 'mshop_service_list' ); |
| 92 | 92 | |
@@ -70,8 +70,7 @@ discard block |
||
| 70 | 70 | ) { |
| 71 | 71 | $this->execute( $this->stmts['constraint'], 'db-product' ); |
| 72 | 72 | $this->status( 'done' ); |
| 73 | - } |
|
| 74 | - else |
|
| 73 | + } else |
|
| 75 | 74 | { |
| 76 | 75 | $this->status( 'OK' ); |
| 77 | 76 | } |
@@ -84,8 +83,7 @@ discard block |
||
| 84 | 83 | ) { |
| 85 | 84 | $this->execute( $this->stmts['constraint2'], 'db-product' ); |
| 86 | 85 | $this->status( 'done' ); |
| 87 | - } |
|
| 88 | - else |
|
| 86 | + } else |
|
| 89 | 87 | { |
| 90 | 88 | $this->status( 'OK' ); |
| 91 | 89 | } |
@@ -98,8 +96,7 @@ discard block |
||
| 98 | 96 | ) { |
| 99 | 97 | $this->execute( $this->stmts['typeid'], 'db-product' ); |
| 100 | 98 | $this->status( 'done' ); |
| 101 | - } |
|
| 102 | - else |
|
| 99 | + } else |
|
| 103 | 100 | { |
| 104 | 101 | $this->status( 'OK' ); |
| 105 | 102 | } |
@@ -111,8 +108,7 @@ discard block |
||
| 111 | 108 | { |
| 112 | 109 | $this->execute( $this->stmts['table'], 'db-product' ); |
| 113 | 110 | $this->status( 'done' ); |
| 114 | - } |
|
| 115 | - else |
|
| 111 | + } else |
|
| 116 | 112 | { |
| 117 | 113 | $this->status( 'OK' ); |
| 118 | 114 | } |
@@ -72,7 +72,9 @@ |
||
| 72 | 72 | $manager->saveItem( $item ); |
| 73 | 73 | $num++; |
| 74 | 74 | } |
| 75 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
| 75 | + catch( \Exception $e ) |
|
| 76 | + { |
|
| 77 | +; } // if attribute was already available |
|
| 76 | 78 | } |
| 77 | 79 | |
| 78 | 80 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $manager->saveItem( $item ); |
| 70 | 70 | $num++; |
| 71 | 71 | } |
| 72 | - catch( \Exception $e ) { ; } // if attribute was already available |
|
| 72 | + catch( \Exception $e ) {; } // if attribute was already available |
|
| 73 | 73 | } |
| 74 | 74 | |
| 75 | 75 | $this->status( $num > 0 ? $num . '/' . $total : 'OK' ); |
@@ -103,8 +103,7 @@ |
||
| 103 | 103 | |
| 104 | 104 | $attrManager->saveItem( $item ); |
| 105 | 105 | $id = $item->getId(); |
| 106 | - } |
|
| 107 | - else |
|
| 106 | + } else |
|
| 108 | 107 | { |
| 109 | 108 | $id = $attrItem->getId(); |
| 110 | 109 | } |
@@ -240,9 +240,13 @@ |
||
| 240 | 240 | $localeItem->setPosition( $dataset['pos'] ); |
| 241 | 241 | $localeItem->setStatus( $dataset['status'] ); |
| 242 | 242 | |
| 243 | - try { |
|
| 243 | + try |
|
| 244 | + { |
|
| 244 | 245 | $localeItemManager->saveItem( $localeItem ); |
| 245 | - } catch( \Exception $e ) {; } // if locale combination was already available |
|
| 246 | + } |
|
| 247 | + catch( \Exception $e ) |
|
| 248 | + { |
|
| 249 | +; } // if locale combination was already available |
|
| 246 | 250 | } |
| 247 | 251 | |
| 248 | 252 | $this->status( 'done' ); |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | * Returns the message queue manager object. |
| 163 | 163 | * |
| 164 | 164 | * @return \Aimeos\MW\MQueue\Manager\Iface Message queue manager object |
| 165 | - */ |
|
| 165 | + */ |
|
| 166 | 166 | public function getMessageQueueManager(); |
| 167 | 167 | |
| 168 | 168 | /** |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * Returns the process object. |
| 187 | 187 | * |
| 188 | 188 | * @return \Aimeos\MW\Process\Iface Process object |
| 189 | - */ |
|
| 189 | + */ |
|
| 190 | 190 | public function getProcess(); |
| 191 | 191 | |
| 192 | 192 | /** |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * Returns the session object. |
| 202 | 202 | * |
| 203 | 203 | * @return \Aimeos\MW\Session\Iface Session object |
| 204 | - */ |
|
| 204 | + */ |
|
| 205 | 205 | public function getSession(); |
| 206 | 206 | |
| 207 | 207 | /** |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | return array( |
| 10 | 10 | 'table' => array( |
| 11 | - 'mshop_product_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 11 | + 'mshop_product_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 12 | 12 | |
| 13 | 13 | $table = $schema->createTable( 'mshop_product_type' ); |
| 14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | return $schema; |
| 32 | 32 | }, |
| 33 | 33 | |
| 34 | - 'mshop_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 34 | + 'mshop_product' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 35 | 35 | |
| 36 | 36 | $table = $schema->createTable( 'mshop_product' ); |
| 37 | 37 | |
@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | $table->addColumn( 'status', 'smallint', [] ); |
| 47 | 47 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 48 | 48 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 49 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 50 | - $table->addColumn( 'target', 'string', array('length' => 255 ) ); |
|
| 49 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 50 | + $table->addColumn( 'target', 'string', array( 'length' => 255 ) ); |
|
| 51 | 51 | |
| 52 | 52 | $table->setPrimaryKey( array( 'id' ), 'pk_mspro_id' ); |
| 53 | 53 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_mspro_siteid_code' ); |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | return $schema; |
| 65 | 65 | }, |
| 66 | 66 | |
| 67 | - 'mshop_product_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 67 | + 'mshop_product_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 68 | 68 | |
| 69 | 69 | $table = $schema->createTable( 'mshop_product_list_type' ); |
| 70 | 70 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | return $schema; |
| 88 | 88 | }, |
| 89 | 89 | |
| 90 | - 'mshop_product_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 90 | + 'mshop_product_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 91 | 91 | |
| 92 | 92 | $table = $schema->createTable( 'mshop_product_list' ); |
| 93 | 93 | |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | return $schema; |
| 126 | 126 | }, |
| 127 | 127 | |
| 128 | - 'mshop_product_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 128 | + 'mshop_product_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 129 | 129 | |
| 130 | 130 | $table = $schema->createTable( 'mshop_product_property_type' ); |
| 131 | 131 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | return $schema; |
| 149 | 149 | }, |
| 150 | 150 | |
| 151 | - 'mshop_product_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 151 | + 'mshop_product_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 152 | 152 | |
| 153 | 153 | $table = $schema->createTable( 'mshop_product_property' ); |
| 154 | 154 | |
@@ -385,8 +385,7 @@ discard block |
||
| 385 | 385 | $attributes[$attribute->getParentId()][] = $attribute; |
| 386 | 386 | $attribute->setParentId( null ); |
| 387 | 387 | $attribute->setId( null ); |
| 388 | - } |
|
| 389 | - else |
|
| 388 | + } else |
|
| 390 | 389 | { |
| 391 | 390 | $attributes[$attribute->getParentId()][$id] = $attribute; |
| 392 | 391 | } |
@@ -405,8 +404,7 @@ discard block |
||
| 405 | 404 | $map[$item->getBaseId()][$item->getPosition()] = $item; |
| 406 | 405 | |
| 407 | 406 | $subProducts = []; |
| 408 | - } |
|
| 409 | - else |
|
| 407 | + } else |
|
| 410 | 408 | { // in case it's a sub-product |
| 411 | 409 | $subProducts[$item->getPosition()] = $item; |
| 412 | 410 | } |
@@ -81,7 +81,9 @@ |
||
| 81 | 81 | $feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln; |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | - catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available |
|
| 84 | + catch( \Aimeos\MShop\Order\Exception $e ) |
|
| 85 | + { |
|
| 86 | +; } // If address isn't available |
|
| 85 | 87 | |
| 86 | 88 | return $this->getConfigItems( $feconfig ); |
| 87 | 89 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | $feconfig['directdebit.accountowner']['default'] = $fn . ' ' . $ln; |
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | - catch( \Aimeos\MShop\Order\Exception $e ) { ; } // If address isn't available |
|
| 84 | + catch( \Aimeos\MShop\Order\Exception $e ) {; } // If address isn't available |
|
| 85 | 85 | |
| 86 | 86 | return $this->getConfigItems( $feconfig ); |
| 87 | 87 | } |