@@ -16,7 +16,8 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | 'table' => array( |
| 18 | 18 | |
| 19 | - 'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 19 | + 'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 20 | + { |
|
| 20 | 21 | |
| 21 | 22 | $table = $schema->createTable( 'mshop_order_base' ); |
| 22 | 23 | |
@@ -45,7 +46,8 @@ discard block |
||
| 45 | 46 | return $schema; |
| 46 | 47 | }, |
| 47 | 48 | |
| 48 | - 'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 49 | + 'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 50 | + { |
|
| 49 | 51 | |
| 50 | 52 | $table = $schema->createTable( 'mshop_order_base_address' ); |
| 51 | 53 | |
@@ -93,7 +95,8 @@ discard block |
||
| 93 | 95 | return $schema; |
| 94 | 96 | }, |
| 95 | 97 | |
| 96 | - 'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 98 | + 'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 99 | + { |
|
| 97 | 100 | |
| 98 | 101 | $table = $schema->createTable( 'mshop_order_base_product' ); |
| 99 | 102 | |
@@ -134,7 +137,8 @@ discard block |
||
| 134 | 137 | return $schema; |
| 135 | 138 | }, |
| 136 | 139 | |
| 137 | - 'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 140 | + 'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 141 | + { |
|
| 138 | 142 | |
| 139 | 143 | $table = $schema->createTable( 'mshop_order_base_product_attr' ); |
| 140 | 144 | |
@@ -160,7 +164,8 @@ discard block |
||
| 160 | 164 | return $schema; |
| 161 | 165 | }, |
| 162 | 166 | |
| 163 | - 'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 167 | + 'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 168 | + { |
|
| 164 | 169 | |
| 165 | 170 | $table = $schema->createTable( 'mshop_order_base_service' ); |
| 166 | 171 | |
@@ -194,7 +199,8 @@ discard block |
||
| 194 | 199 | return $schema; |
| 195 | 200 | }, |
| 196 | 201 | |
| 197 | - 'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 202 | + 'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 203 | + { |
|
| 198 | 204 | |
| 199 | 205 | $table = $schema->createTable( 'mshop_order_base_service_attr' ); |
| 200 | 206 | |
@@ -220,7 +226,8 @@ discard block |
||
| 220 | 226 | return $schema; |
| 221 | 227 | }, |
| 222 | 228 | |
| 223 | - 'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 229 | + 'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 230 | + { |
|
| 224 | 231 | |
| 225 | 232 | $table = $schema->createTable( 'mshop_order_base_coupon' ); |
| 226 | 233 | |
@@ -247,7 +254,8 @@ discard block |
||
| 247 | 254 | return $schema; |
| 248 | 255 | }, |
| 249 | 256 | |
| 250 | - 'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 257 | + 'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 258 | + { |
|
| 251 | 259 | |
| 252 | 260 | $table = $schema->createTable( 'mshop_order' ); |
| 253 | 261 | |
@@ -289,7 +297,8 @@ discard block |
||
| 289 | 297 | return $schema; |
| 290 | 298 | }, |
| 291 | 299 | |
| 292 | - 'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 300 | + 'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
| 301 | + { |
|
| 293 | 302 | |
| 294 | 303 | $table = $schema->createTable( 'mshop_order_status' ); |
| 295 | 304 | |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | |
| 17 | 17 | 'table' => array( |
| 18 | 18 | |
| 19 | - 'mshop_order_base' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 19 | + 'mshop_order_base' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 20 | 20 | |
| 21 | 21 | $table = $schema->createTable( 'mshop_order_base' ); |
| 22 | 22 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $table->addColumn( 'status', 'smallint', [] ); |
| 36 | 36 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 37 | 37 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 38 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 38 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 39 | 39 | |
| 40 | 40 | $table->setPrimaryKey( array( 'id' ), 'pk_msordba_id' ); |
| 41 | 41 | $table->addIndex( array( 'sitecode', 'customerid' ), 'idx_msordba_scode_custid' ); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | return $schema; |
| 46 | 46 | }, |
| 47 | 47 | |
| 48 | - 'mshop_order_base_address' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 48 | + 'mshop_order_base_address' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 49 | 49 | |
| 50 | 50 | $table = $schema->createTable( 'mshop_order_base_address' ); |
| 51 | 51 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $table->addColumn( 'flag', 'integer', [] ); |
| 78 | 78 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 79 | 79 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 80 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 80 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 81 | 81 | |
| 82 | 82 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaad_id' ); |
| 83 | 83 | $table->addUniqueIndex( array( 'baseid', 'type' ), 'unq_msordbaad_bid_type' ); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | return $schema; |
| 96 | 96 | }, |
| 97 | 97 | |
| 98 | - 'mshop_order_base_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 98 | + 'mshop_order_base_product' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 99 | 99 | |
| 100 | 100 | $table = $schema->createTable( 'mshop_order_base_product' ); |
| 101 | 101 | |
@@ -105,8 +105,8 @@ discard block |
||
| 105 | 105 | $table->addColumn( 'ordprodid', 'bigint', array( 'notnull' => false ) ); |
| 106 | 106 | $table->addColumn( 'type', 'string', array( 'length' => 32 ) ); |
| 107 | 107 | $table->addColumn( 'prodid', 'string', array( 'length' => 32 ) ); |
| 108 | - $table->addColumn( 'prodcode', 'string', array( 'length' => 32 ) ); |
|
| 109 | - $table->addColumn( 'suppliercode', 'string', array( 'length' => 32 ) ); |
|
| 108 | + $table->addColumn( 'prodcode', 'string', array( 'length' => 32 ) ); |
|
| 109 | + $table->addColumn( 'suppliercode', 'string', array( 'length' => 32 ) ); |
|
| 110 | 110 | $table->addColumn( 'stocktype', 'string', array( 'length' => 32 ) ); |
| 111 | 111 | $table->addColumn( 'name', 'string', array( 'length' => 255 ) ); |
| 112 | 112 | $table->addColumn( 'mediaurl', 'string', array( 'length' => 255 ) ); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $table->addColumn( 'status', 'smallint', array( 'default' => -1 ) ); |
| 124 | 124 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 125 | 125 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 126 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 126 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 127 | 127 | |
| 128 | 128 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbapr_id' ); |
| 129 | 129 | $table->addUniqueIndex( array( 'baseid', 'pos' ), 'unq_msordbapr_bid_pos' ); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | return $schema; |
| 138 | 138 | }, |
| 139 | 139 | |
| 140 | - 'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 140 | + 'mshop_order_base_product_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 141 | 141 | |
| 142 | 142 | $table = $schema->createTable( 'mshop_order_base_product_attr' ); |
| 143 | 143 | |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | $table->addColumn( 'quantity', 'integer', [] ); |
| 153 | 153 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 154 | 154 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 155 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 155 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 156 | 156 | |
| 157 | 157 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaprat_id' ); |
| 158 | 158 | $table->addUniqueIndex( array( 'ordprodid', 'attrid', 'type', 'code' ), 'unq_msordbaprat_oid_aid_ty_cd' ); |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | return $schema; |
| 165 | 165 | }, |
| 166 | 166 | |
| 167 | - 'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 167 | + 'mshop_order_base_service' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 168 | 168 | |
| 169 | 169 | $table = $schema->createTable( 'mshop_order_base_service' ); |
| 170 | 170 | |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | $table->addColumn( 'taxflag', 'smallint', [] ); |
| 185 | 185 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 186 | 186 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 187 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 187 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 188 | 188 | |
| 189 | 189 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbase_id' ); |
| 190 | 190 | $table->addUniqueIndex( array( 'siteid', 'baseid', 'code', 'type' ), 'unq_msordbase_sid_bid_cd_typ' ); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | return $schema; |
| 198 | 198 | }, |
| 199 | 199 | |
| 200 | - 'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 200 | + 'mshop_order_base_service_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 201 | 201 | |
| 202 | 202 | $table = $schema->createTable( 'mshop_order_base_service_attr' ); |
| 203 | 203 | |
@@ -212,7 +212,7 @@ discard block |
||
| 212 | 212 | $table->addColumn( 'quantity', 'integer', [] ); |
| 213 | 213 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 214 | 214 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 215 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 215 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 216 | 216 | |
| 217 | 217 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaseat_id' ); |
| 218 | 218 | $table->addUniqueIndex( array( 'ordservid', 'attrid', 'type', 'code' ), 'unq_msordbaseat_oid_aid_ty_cd' ); |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | return $schema; |
| 225 | 225 | }, |
| 226 | 226 | |
| 227 | - 'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 227 | + 'mshop_order_base_coupon' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 228 | 228 | |
| 229 | 229 | $table = $schema->createTable( 'mshop_order_base_coupon' ); |
| 230 | 230 | |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | $table->addColumn( 'code', 'string', array( 'length' => 32 ) ); |
| 236 | 236 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 237 | 237 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 238 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 238 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 239 | 239 | |
| 240 | 240 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaco_id' ); |
| 241 | 241 | $table->addIndex( array( 'siteid', 'baseid', 'code' ), 'idx_msordbaco_sid_bid_code' ); |
@@ -251,7 +251,7 @@ discard block |
||
| 251 | 251 | return $schema; |
| 252 | 252 | }, |
| 253 | 253 | |
| 254 | - 'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 254 | + 'mshop_order' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 255 | 255 | |
| 256 | 256 | $table = $schema->createTable( 'mshop_order' ); |
| 257 | 257 | |
@@ -271,7 +271,7 @@ discard block |
||
| 271 | 271 | $table->addColumn( 'chour', 'string', array( 'fixed' => 2 ) ); |
| 272 | 272 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 273 | 273 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 274 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 274 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 275 | 275 | |
| 276 | 276 | $table->setPrimaryKey( array( 'id' ), 'pk_msord_id' ); |
| 277 | 277 | $table->addIndex( array( 'siteid', 'type' ), 'idx_msord_sid_type' ); |
@@ -295,7 +295,7 @@ discard block |
||
| 295 | 295 | return $schema; |
| 296 | 296 | }, |
| 297 | 297 | |
| 298 | - 'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 298 | + 'mshop_order_status' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
| 299 | 299 | |
| 300 | 300 | $table = $schema->createTable( 'mshop_order_status' ); |
| 301 | 301 | |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | $table->addColumn( 'value', 'string', array( 'length' => 32 ) ); |
| 307 | 307 | $table->addColumn( 'mtime', 'datetime', [] ); |
| 308 | 308 | $table->addColumn( 'ctime', 'datetime', [] ); |
| 309 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
| 309 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
| 310 | 310 | |
| 311 | 311 | $table->setPrimaryKey( array( 'id' ), 'pk_msordst_id' ); |
| 312 | 312 | $table->addIndex( array( 'siteid', 'parentid', 'type', 'value' ), 'idx_msordstatus_val_sid' ); |
@@ -159,7 +159,7 @@ |
||
| 159 | 159 | $what = array( 'TOKEN' => 'UT-99999999' ); |
| 160 | 160 | |
| 161 | 161 | $error = '&ACK=Error&VERSION=87.0&BUILD=3136725&CORRELATIONID=1234567890&L_ERRORCODE0=0000&L_SHORTMESSAGE0=updatesync method error'; |
| 162 | - $success = '&TOKEN=UT-99999999&CORRELATIONID=1234567890&ACK=Success&VERSION=87.0&BUILD=3136725&PAYERID=PaypalUnitTestBuyer&TRANSACTIONID=111111110&PAYMENTSTATUS=Pending&PENDINGREASON=authorization&INVNUM=' . $this->order->getId(); |
|
| 162 | + $success = '&TOKEN=UT-99999999&CORRELATIONID=1234567890&ACK=Success&VERSION=87.0&BUILD=3136725&PAYERID=PaypalUnitTestBuyer&TRANSACTIONID=111111110&PAYMENTSTATUS=Pending&PENDINGREASON=authorization&INVNUM='.$this->order->getId(); |
|
| 163 | 163 | |
| 164 | 164 | $com = new TestPayPalExpress(); |
| 165 | 165 | $com->addRule( $what, $error, $success ); |
@@ -225,7 +225,8 @@ |
||
| 225 | 225 | ->will( $this->returnValue( $response ) ) |
| 226 | 226 | ->with( $this->equalTo( 200 ) ); |
| 227 | 227 | |
| 228 | - $cmpFcn = function( $subject ) { |
|
| 228 | + $cmpFcn = function( $subject ) |
|
| 229 | + { |
|
| 229 | 230 | return $subject->getPaymentStatus() === \Aimeos\MShop\Order\Item\Base::PAY_RECEIVED; |
| 230 | 231 | }; |
| 231 | 232 | |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | for( $j = 0; $j < $size; $j++ ) |
| 93 | 93 | { |
| 94 | - $code = 'perf-' . str_pad( $i * 1000 + $j, 5, '0', STR_PAD_LEFT ); |
|
| 94 | + $code = 'perf-'.str_pad( $i * 1000 + $j, 5, '0', STR_PAD_LEFT ); |
|
| 95 | 95 | |
| 96 | 96 | $productItem->setId( null ); |
| 97 | 97 | $productItem->setCode( $code ); |
@@ -166,8 +166,8 @@ discard block |
||
| 166 | 166 | |
| 167 | 167 | $search = $manager->createSearch(); |
| 168 | 168 | $expr = array( |
| 169 | - $search->compare( '==', $prefix . '.domain', $domain ), |
|
| 170 | - $search->compare( '==', $prefix . '.code', $code ), |
|
| 169 | + $search->compare( '==', $prefix.'.domain', $domain ), |
|
| 170 | + $search->compare( '==', $prefix.'.code', $code ), |
|
| 171 | 171 | ); |
| 172 | 172 | $search->setConditions( $search->combine( '&&', $expr ) ); |
| 173 | 173 | $result = $manager->searchItems( $search ); |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | { |
| 79 | 79 | $count = (int) $this->count / 1000; |
| 80 | 80 | $size = 1000; |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $count = 1; |
| 85 | 84 | $size = $this->count; |
@@ -281,8 +281,8 @@ discard block |
||
| 281 | 281 | $cnt = $i * 1000 + $j; |
| 282 | 282 | |
| 283 | 283 | $productItem->setId( null ); |
| 284 | - $productItem->setCode( 'perf-select-' . str_pad( $cnt, 5, '0', STR_PAD_LEFT ) ); |
|
| 285 | - $productItem->setLabel( 'Selection product ' . ( $cnt + 1 ) ); |
|
| 284 | + $productItem->setCode( 'perf-select-'.str_pad( $cnt, 5, '0', STR_PAD_LEFT ) ); |
|
| 285 | + $productItem->setLabel( 'Selection product '.( $cnt + 1 ) ); |
|
| 286 | 286 | $productManager->saveItem( $productItem ); |
| 287 | 287 | |
| 288 | 288 | $selProducts[] = $productItem->getId(); |
@@ -290,8 +290,8 @@ discard block |
||
| 290 | 290 | |
| 291 | 291 | $textItem->setId( null ); |
| 292 | 292 | $textItem->setTypeId( $textTypeItems['short']->getId() ); |
| 293 | - $textItem->setLabel( 'Short description for ' . ( $cnt + 1 ) . '. selection product' ); |
|
| 294 | - $textItem->setContent( 'Short description for ' . ( $cnt + 1 ) . '. selection product' ); |
|
| 293 | + $textItem->setLabel( 'Short description for '.( $cnt + 1 ).'. selection product' ); |
|
| 294 | + $textItem->setContent( 'Short description for '.( $cnt + 1 ).'. selection product' ); |
|
| 295 | 295 | $textManager->saveItem( $textItem ); |
| 296 | 296 | |
| 297 | 297 | $productListItem->setId( null ); |
@@ -302,8 +302,8 @@ discard block |
||
| 302 | 302 | |
| 303 | 303 | $textItem->setId( null ); |
| 304 | 304 | $textItem->setTypeId( $textTypeItems['long']->getId() ); |
| 305 | - $textItem->setLabel( 'Long description for ' . ( $cnt + 1 ) . '. selection product' ); |
|
| 306 | - $textItem->setContent( 'Long description for ' . ( $cnt + 1 ) . '. selection product. This may contain some "Lorem ipsum" text' ); |
|
| 305 | + $textItem->setLabel( 'Long description for '.( $cnt + 1 ).'. selection product' ); |
|
| 306 | + $textItem->setContent( 'Long description for '.( $cnt + 1 ).'. selection product. This may contain some "Lorem ipsum" text' ); |
|
| 307 | 307 | $textManager->saveItem( $textItem ); |
| 308 | 308 | |
| 309 | 309 | $productListItem->setId( null ); |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | { |
| 79 | 79 | $count = (int) $this->count / 1000; |
| 80 | 80 | $size = 1000; |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $count = 1; |
| 85 | 84 | $size = $this->count; |
@@ -595,6 +595,9 @@ |
||
| 595 | 595 | } |
| 596 | 596 | |
| 597 | 597 | |
| 598 | + /** |
|
| 599 | + * @param string $datepayment |
|
| 600 | + */ |
|
| 598 | 601 | protected function getOrderItem( $datepayment ) |
| 599 | 602 | { |
| 600 | 603 | $manager = \Aimeos\MShop\Factory::createManager( \TestHelperCntl::getContext(), 'order' ); |
@@ -526,7 +526,8 @@ discard block |
||
| 526 | 526 | ->setMethods( array( 'saveItem' ) ) |
| 527 | 527 | ->getMock(); |
| 528 | 528 | |
| 529 | - $stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item ) { |
|
| 529 | + $stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item ) |
|
| 530 | + { |
|
| 530 | 531 | return $item->getStocklevel() === 10; |
| 531 | 532 | } ) ); |
| 532 | 533 | |
@@ -579,7 +580,8 @@ discard block |
||
| 579 | 580 | ->setMethods( array( 'saveItem' ) ) |
| 580 | 581 | ->getMock(); |
| 581 | 582 | |
| 582 | - $stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item ) { |
|
| 583 | + $stockStub->expects( $this->once() )->method( 'saveItem' )->with( $this->callback( function( $item ) |
|
| 584 | + { |
|
| 583 | 585 | return $item->getStocklevel() === 300; |
| 584 | 586 | } ) ); |
| 585 | 587 | |
@@ -48,11 +48,11 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | if( strncmp( $classname, 'Aimeos\\MW\\Setup\\Task\\', 21 ) === 0 ) |
| 50 | 50 | { |
| 51 | - $fileName = substr( $classname, 21 ) . '.php'; |
|
| 51 | + $fileName = substr( $classname, 21 ).'.php'; |
|
| 52 | 52 | |
| 53 | 53 | foreach( self::$taskPaths as $path ) |
| 54 | 54 | { |
| 55 | - $file = $path . '/' . $fileName; |
|
| 55 | + $file = $path.'/'.$fileName; |
|
| 56 | 56 | |
| 57 | 57 | if( file_exists( $file ) === true && ( include_once $file ) !== false ) { |
| 58 | 58 | return true; |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | throw new \Aimeos\MW\Setup\Exception( sprintf( 'Invalid database adapter "%1$s"', $adapter ) ); |
| 79 | 79 | } |
| 80 | 80 | |
| 81 | - $classname = '\\Aimeos\\MW\\Setup\\DBSchema\\' . ucwords( strtolower( $adapter ) ); |
|
| 81 | + $classname = '\\Aimeos\\MW\\Setup\\DBSchema\\'.ucwords( strtolower( $adapter ) ); |
|
| 82 | 82 | |
| 83 | 83 | if( class_exists( $classname ) === false ) { |
| 84 | 84 | throw new \Aimeos\MW\Setup\Exception( sprintf( 'Database schema class "%1$s" not found', $classname ) ); |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $this->includeFile( $item->getPathName() ); |
| 124 | 124 | |
| 125 | 125 | $taskname = substr( $item->getFilename(), 0, -4 ); |
| 126 | - $classname = '\\Aimeos\\MW\\Setup\\Task\\' . $taskname; |
|
| 126 | + $classname = '\\Aimeos\\MW\\Setup\\Task\\'.$taskname; |
|
| 127 | 127 | |
| 128 | 128 | if( class_exists( $classname ) === false ) { |
| 129 | 129 | throw new \Aimeos\MW\Setup\Exception( sprintf( 'Class "%1$s" not found', $classname ) ); |
@@ -675,7 +675,7 @@ discard block |
||
| 675 | 675 | * Sets the longitude coordinate of the customer address |
| 676 | 676 | * |
| 677 | 677 | * @param string|null $value Longitude coordinate as decimal value or null |
| 678 | - * @return \Aimeos\MShop\Customer\Item\Iface Customer item for chaining method calls |
|
| 678 | + * @return Base Customer item for chaining method calls |
|
| 679 | 679 | */ |
| 680 | 680 | public function setLongitude( $value ) |
| 681 | 681 | { |
@@ -708,7 +708,7 @@ discard block |
||
| 708 | 708 | * Sets the latitude coordinate of the customer address |
| 709 | 709 | * |
| 710 | 710 | * @param string|null $value Latitude coordinate as decimal value or null |
| 711 | - * @return \Aimeos\MShop\Customer\Item\Iface Customer item for chaining method calls |
|
| 711 | + * @return Base Customer item for chaining method calls |
|
| 712 | 712 | */ |
| 713 | 713 | public function setLatitude( $value ) |
| 714 | 714 | { |
@@ -76,8 +76,8 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | public function getCompany() |
| 78 | 78 | { |
| 79 | - if( isset( $this->data[$this->prefix . 'company'] ) ) { |
|
| 80 | - return (string) $this->data[$this->prefix . 'company']; |
|
| 79 | + if( isset( $this->data[$this->prefix.'company'] ) ) { |
|
| 80 | + return (string) $this->data[$this->prefix.'company']; |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | return ''; |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | { |
| 95 | 95 | if( (string) $company !== $this->getCompany() ) |
| 96 | 96 | { |
| 97 | - $this->data[$this->prefix . 'company'] = (string) $company; |
|
| 97 | + $this->data[$this->prefix.'company'] = (string) $company; |
|
| 98 | 98 | $this->setModified(); |
| 99 | 99 | } |
| 100 | 100 | |
@@ -108,8 +108,8 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | public function getVatID() |
| 110 | 110 | { |
| 111 | - if( isset( $this->data[$this->prefix . 'vatid'] ) ) { |
|
| 112 | - return (string) $this->data[$this->prefix . 'vatid']; |
|
| 111 | + if( isset( $this->data[$this->prefix.'vatid'] ) ) { |
|
| 112 | + return (string) $this->data[$this->prefix.'vatid']; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | return ''; |
@@ -126,7 +126,7 @@ discard block |
||
| 126 | 126 | { |
| 127 | 127 | if( (string) $vatid !== $this->getVatID() ) |
| 128 | 128 | { |
| 129 | - $this->data[$this->prefix . 'vatid'] = (string) $vatid; |
|
| 129 | + $this->data[$this->prefix.'vatid'] = (string) $vatid; |
|
| 130 | 130 | $this->setModified(); |
| 131 | 131 | } |
| 132 | 132 | |
@@ -141,8 +141,8 @@ discard block |
||
| 141 | 141 | */ |
| 142 | 142 | public function getSalutation() |
| 143 | 143 | { |
| 144 | - if( isset( $this->data[$this->prefix . 'salutation'] ) ) { |
|
| 145 | - return (string) $this->data[$this->prefix . 'salutation']; |
|
| 144 | + if( isset( $this->data[$this->prefix.'salutation'] ) ) { |
|
| 145 | + return (string) $this->data[$this->prefix.'salutation']; |
|
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | return \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_UNKNOWN; |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | |
| 162 | 162 | if( (string) $salutation !== $this->getSalutation() ) |
| 163 | 163 | { |
| 164 | - $this->data[$this->prefix . 'salutation'] = (string) $salutation; |
|
| 164 | + $this->data[$this->prefix.'salutation'] = (string) $salutation; |
|
| 165 | 165 | $this->setModified(); |
| 166 | 166 | } |
| 167 | 167 | |
@@ -176,8 +176,8 @@ discard block |
||
| 176 | 176 | */ |
| 177 | 177 | public function getTitle() |
| 178 | 178 | { |
| 179 | - if( isset( $this->data[$this->prefix . 'title'] ) ) { |
|
| 180 | - return (string) $this->data[$this->prefix . 'title']; |
|
| 179 | + if( isset( $this->data[$this->prefix.'title'] ) ) { |
|
| 180 | + return (string) $this->data[$this->prefix.'title']; |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | return ''; |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | { |
| 195 | 195 | if( (string) $title !== $this->getTitle() ) |
| 196 | 196 | { |
| 197 | - $this->data[$this->prefix . 'title'] = (string) $title; |
|
| 197 | + $this->data[$this->prefix.'title'] = (string) $title; |
|
| 198 | 198 | $this->setModified(); |
| 199 | 199 | } |
| 200 | 200 | |
@@ -209,8 +209,8 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function getFirstname() |
| 211 | 211 | { |
| 212 | - if( isset( $this->data[$this->prefix . 'firstname'] ) ) { |
|
| 213 | - return (string) $this->data[$this->prefix . 'firstname']; |
|
| 212 | + if( isset( $this->data[$this->prefix.'firstname'] ) ) { |
|
| 213 | + return (string) $this->data[$this->prefix.'firstname']; |
|
| 214 | 214 | } |
| 215 | 215 | |
| 216 | 216 | return ''; |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | { |
| 228 | 228 | if( (string) $firstname !== $this->getFirstname() ) |
| 229 | 229 | { |
| 230 | - $this->data[$this->prefix . 'firstname'] = (string) $firstname; |
|
| 230 | + $this->data[$this->prefix.'firstname'] = (string) $firstname; |
|
| 231 | 231 | $this->setModified(); |
| 232 | 232 | } |
| 233 | 233 | |
@@ -242,8 +242,8 @@ discard block |
||
| 242 | 242 | */ |
| 243 | 243 | public function getLastname() |
| 244 | 244 | { |
| 245 | - if( isset( $this->data[$this->prefix . 'lastname'] ) ) { |
|
| 246 | - return (string) $this->data[$this->prefix . 'lastname']; |
|
| 245 | + if( isset( $this->data[$this->prefix.'lastname'] ) ) { |
|
| 246 | + return (string) $this->data[$this->prefix.'lastname']; |
|
| 247 | 247 | } |
| 248 | 248 | |
| 249 | 249 | return ''; |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | { |
| 261 | 261 | if( (string) $lastname !== $this->getLastname() ) |
| 262 | 262 | { |
| 263 | - $this->data[$this->prefix . 'lastname'] = (string) $lastname; |
|
| 263 | + $this->data[$this->prefix.'lastname'] = (string) $lastname; |
|
| 264 | 264 | $this->setModified(); |
| 265 | 265 | } |
| 266 | 266 | |
@@ -275,8 +275,8 @@ discard block |
||
| 275 | 275 | */ |
| 276 | 276 | public function getAddress1() |
| 277 | 277 | { |
| 278 | - if( isset( $this->data[$this->prefix . 'address1'] ) ) { |
|
| 279 | - return (string) $this->data[$this->prefix . 'address1']; |
|
| 278 | + if( isset( $this->data[$this->prefix.'address1'] ) ) { |
|
| 279 | + return (string) $this->data[$this->prefix.'address1']; |
|
| 280 | 280 | } |
| 281 | 281 | |
| 282 | 282 | return ''; |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | { |
| 294 | 294 | if( (string) $address1 !== $this->getAddress1() ) |
| 295 | 295 | { |
| 296 | - $this->data[$this->prefix . 'address1'] = (string) $address1; |
|
| 296 | + $this->data[$this->prefix.'address1'] = (string) $address1; |
|
| 297 | 297 | $this->setModified(); |
| 298 | 298 | } |
| 299 | 299 | |
@@ -308,8 +308,8 @@ discard block |
||
| 308 | 308 | */ |
| 309 | 309 | public function getAddress2() |
| 310 | 310 | { |
| 311 | - if( isset( $this->data[$this->prefix . 'address2'] ) ) { |
|
| 312 | - return (string) $this->data[$this->prefix . 'address2']; |
|
| 311 | + if( isset( $this->data[$this->prefix.'address2'] ) ) { |
|
| 312 | + return (string) $this->data[$this->prefix.'address2']; |
|
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | return ''; |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | { |
| 327 | 327 | if( (string) $address2 !== $this->getAddress2() ) |
| 328 | 328 | { |
| 329 | - $this->data[$this->prefix . 'address2'] = (string) $address2; |
|
| 329 | + $this->data[$this->prefix.'address2'] = (string) $address2; |
|
| 330 | 330 | $this->setModified(); |
| 331 | 331 | } |
| 332 | 332 | |
@@ -341,8 +341,8 @@ discard block |
||
| 341 | 341 | */ |
| 342 | 342 | public function getAddress3() |
| 343 | 343 | { |
| 344 | - if( isset( $this->data[$this->prefix . 'address3'] ) ) { |
|
| 345 | - return (string) $this->data[$this->prefix . 'address3']; |
|
| 344 | + if( isset( $this->data[$this->prefix.'address3'] ) ) { |
|
| 345 | + return (string) $this->data[$this->prefix.'address3']; |
|
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | return ''; |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | { |
| 360 | 360 | if( (string) $address3 !== $this->getAddress3() ) |
| 361 | 361 | { |
| 362 | - $this->data[$this->prefix . 'address3'] = (string) $address3; |
|
| 362 | + $this->data[$this->prefix.'address3'] = (string) $address3; |
|
| 363 | 363 | $this->setModified(); |
| 364 | 364 | } |
| 365 | 365 | |
@@ -374,8 +374,8 @@ discard block |
||
| 374 | 374 | */ |
| 375 | 375 | public function getPostal() |
| 376 | 376 | { |
| 377 | - if( isset( $this->data[$this->prefix . 'postal'] ) ) { |
|
| 378 | - return (string) $this->data[$this->prefix . 'postal']; |
|
| 377 | + if( isset( $this->data[$this->prefix.'postal'] ) ) { |
|
| 378 | + return (string) $this->data[$this->prefix.'postal']; |
|
| 379 | 379 | } |
| 380 | 380 | |
| 381 | 381 | return ''; |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | { |
| 393 | 393 | if( (string) $postal !== $this->getPostal() ) |
| 394 | 394 | { |
| 395 | - $this->data[$this->prefix . 'postal'] = (string) $postal; |
|
| 395 | + $this->data[$this->prefix.'postal'] = (string) $postal; |
|
| 396 | 396 | $this->setModified(); |
| 397 | 397 | } |
| 398 | 398 | |
@@ -407,8 +407,8 @@ discard block |
||
| 407 | 407 | */ |
| 408 | 408 | public function getCity() |
| 409 | 409 | { |
| 410 | - if( isset( $this->data[$this->prefix . 'city'] ) ) { |
|
| 411 | - return (string) $this->data[$this->prefix . 'city']; |
|
| 410 | + if( isset( $this->data[$this->prefix.'city'] ) ) { |
|
| 411 | + return (string) $this->data[$this->prefix.'city']; |
|
| 412 | 412 | } |
| 413 | 413 | |
| 414 | 414 | return ''; |
@@ -425,7 +425,7 @@ discard block |
||
| 425 | 425 | { |
| 426 | 426 | if( (string) $city !== $this->getCity() ) |
| 427 | 427 | { |
| 428 | - $this->data[$this->prefix . 'city'] = (string) $city; |
|
| 428 | + $this->data[$this->prefix.'city'] = (string) $city; |
|
| 429 | 429 | $this->setModified(); |
| 430 | 430 | } |
| 431 | 431 | |
@@ -440,8 +440,8 @@ discard block |
||
| 440 | 440 | */ |
| 441 | 441 | public function getState() |
| 442 | 442 | { |
| 443 | - if( isset( $this->data[$this->prefix . 'state'] ) ) { |
|
| 444 | - return (string) $this->data[$this->prefix . 'state']; |
|
| 443 | + if( isset( $this->data[$this->prefix.'state'] ) ) { |
|
| 444 | + return (string) $this->data[$this->prefix.'state']; |
|
| 445 | 445 | } |
| 446 | 446 | |
| 447 | 447 | return ''; |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | { |
| 459 | 459 | if( (string) $state !== $this->getState() ) |
| 460 | 460 | { |
| 461 | - $this->data[$this->prefix . 'state'] = (string) $state; |
|
| 461 | + $this->data[$this->prefix.'state'] = (string) $state; |
|
| 462 | 462 | $this->setModified(); |
| 463 | 463 | } |
| 464 | 464 | |
@@ -473,8 +473,8 @@ discard block |
||
| 473 | 473 | */ |
| 474 | 474 | public function getCountryId() |
| 475 | 475 | { |
| 476 | - if( isset( $this->data[$this->prefix . 'countryid'] ) ) { |
|
| 477 | - return (string) $this->data[$this->prefix . 'countryid']; |
|
| 476 | + if( isset( $this->data[$this->prefix.'countryid'] ) ) { |
|
| 477 | + return (string) $this->data[$this->prefix.'countryid']; |
|
| 478 | 478 | } |
| 479 | 479 | |
| 480 | 480 | return null; |
@@ -491,7 +491,7 @@ discard block |
||
| 491 | 491 | { |
| 492 | 492 | if( $countryid !== $this->getCountryId() ) |
| 493 | 493 | { |
| 494 | - $this->data[$this->prefix . 'countryid'] = $this->checkCountryId( $countryid ); |
|
| 494 | + $this->data[$this->prefix.'countryid'] = $this->checkCountryId( $countryid ); |
|
| 495 | 495 | $this->setModified(); |
| 496 | 496 | } |
| 497 | 497 | |
@@ -506,8 +506,8 @@ discard block |
||
| 506 | 506 | */ |
| 507 | 507 | public function getLanguageId() |
| 508 | 508 | { |
| 509 | - if( isset( $this->data[$this->prefix . 'languageid'] ) ) { |
|
| 510 | - return (string) $this->data[$this->prefix . 'languageid']; |
|
| 509 | + if( isset( $this->data[$this->prefix.'languageid'] ) ) { |
|
| 510 | + return (string) $this->data[$this->prefix.'languageid']; |
|
| 511 | 511 | } |
| 512 | 512 | |
| 513 | 513 | return null; |
@@ -524,7 +524,7 @@ discard block |
||
| 524 | 524 | { |
| 525 | 525 | if( $langid !== $this->getLanguageId() ) |
| 526 | 526 | { |
| 527 | - $this->data[$this->prefix . 'languageid'] = $this->checkLanguageId( $langid ); |
|
| 527 | + $this->data[$this->prefix.'languageid'] = $this->checkLanguageId( $langid ); |
|
| 528 | 528 | $this->setModified(); |
| 529 | 529 | } |
| 530 | 530 | |
@@ -539,8 +539,8 @@ discard block |
||
| 539 | 539 | */ |
| 540 | 540 | public function getTelephone() |
| 541 | 541 | { |
| 542 | - if( isset( $this->data[$this->prefix . 'telephone'] ) ) { |
|
| 543 | - return (string) $this->data[$this->prefix . 'telephone']; |
|
| 542 | + if( isset( $this->data[$this->prefix.'telephone'] ) ) { |
|
| 543 | + return (string) $this->data[$this->prefix.'telephone']; |
|
| 544 | 544 | } |
| 545 | 545 | |
| 546 | 546 | return ''; |
@@ -557,7 +557,7 @@ discard block |
||
| 557 | 557 | { |
| 558 | 558 | if( (string) $telephone !== $this->getTelephone() ) |
| 559 | 559 | { |
| 560 | - $this->data[$this->prefix . 'telephone'] = (string) $telephone; |
|
| 560 | + $this->data[$this->prefix.'telephone'] = (string) $telephone; |
|
| 561 | 561 | $this->setModified(); |
| 562 | 562 | } |
| 563 | 563 | |
@@ -572,8 +572,8 @@ discard block |
||
| 572 | 572 | */ |
| 573 | 573 | public function getEmail() |
| 574 | 574 | { |
| 575 | - if( isset( $this->data[$this->prefix . 'email'] ) ) { |
|
| 576 | - return (string) $this->data[$this->prefix . 'email']; |
|
| 575 | + if( isset( $this->data[$this->prefix.'email'] ) ) { |
|
| 576 | + return (string) $this->data[$this->prefix.'email']; |
|
| 577 | 577 | } |
| 578 | 578 | |
| 579 | 579 | return ''; |
@@ -594,7 +594,7 @@ discard block |
||
| 594 | 594 | |
| 595 | 595 | if( (string) $email !== $this->getEmail() ) |
| 596 | 596 | { |
| 597 | - $this->data[$this->prefix . 'email'] = (string) $email; |
|
| 597 | + $this->data[$this->prefix.'email'] = (string) $email; |
|
| 598 | 598 | $this->setModified(); |
| 599 | 599 | } |
| 600 | 600 | |
@@ -609,8 +609,8 @@ discard block |
||
| 609 | 609 | */ |
| 610 | 610 | public function getTelefax() |
| 611 | 611 | { |
| 612 | - if( isset( $this->data[$this->prefix . 'telefax'] ) ) { |
|
| 613 | - return (string) $this->data[$this->prefix . 'telefax']; |
|
| 612 | + if( isset( $this->data[$this->prefix.'telefax'] ) ) { |
|
| 613 | + return (string) $this->data[$this->prefix.'telefax']; |
|
| 614 | 614 | } |
| 615 | 615 | |
| 616 | 616 | return ''; |
@@ -627,7 +627,7 @@ discard block |
||
| 627 | 627 | { |
| 628 | 628 | if( (string) $telefax !== $this->getTelefax() ) |
| 629 | 629 | { |
| 630 | - $this->data[$this->prefix . 'telefax'] = (string) $telefax; |
|
| 630 | + $this->data[$this->prefix.'telefax'] = (string) $telefax; |
|
| 631 | 631 | $this->setModified(); |
| 632 | 632 | } |
| 633 | 633 | |
@@ -642,8 +642,8 @@ discard block |
||
| 642 | 642 | */ |
| 643 | 643 | public function getWebsite() |
| 644 | 644 | { |
| 645 | - if( isset( $this->data[$this->prefix . 'website'] ) ) { |
|
| 646 | - return (string) $this->data[$this->prefix . 'website']; |
|
| 645 | + if( isset( $this->data[$this->prefix.'website'] ) ) { |
|
| 646 | + return (string) $this->data[$this->prefix.'website']; |
|
| 647 | 647 | } |
| 648 | 648 | |
| 649 | 649 | return ''; |
@@ -666,7 +666,7 @@ discard block |
||
| 666 | 666 | |
| 667 | 667 | if( (string) $website !== $this->getWebsite() ) |
| 668 | 668 | { |
| 669 | - $this->data[$this->prefix . 'website'] = (string) $website; |
|
| 669 | + $this->data[$this->prefix.'website'] = (string) $website; |
|
| 670 | 670 | $this->setModified(); |
| 671 | 671 | } |
| 672 | 672 | |
@@ -681,8 +681,8 @@ discard block |
||
| 681 | 681 | */ |
| 682 | 682 | public function getLongitude() |
| 683 | 683 | { |
| 684 | - if( isset( $this->data[$this->prefix . 'longitude'] ) ) { |
|
| 685 | - return (string) $this->data[$this->prefix . 'longitude']; |
|
| 684 | + if( isset( $this->data[$this->prefix.'longitude'] ) ) { |
|
| 685 | + return (string) $this->data[$this->prefix.'longitude']; |
|
| 686 | 686 | } |
| 687 | 687 | |
| 688 | 688 | return null; |
@@ -701,7 +701,7 @@ discard block |
||
| 701 | 701 | |
| 702 | 702 | if( $value !== $this->getLongitude() ) |
| 703 | 703 | { |
| 704 | - $this->data[$this->prefix . 'longitude'] = $value; |
|
| 704 | + $this->data[$this->prefix.'longitude'] = $value; |
|
| 705 | 705 | $this->setModified(); |
| 706 | 706 | } |
| 707 | 707 | |
@@ -716,8 +716,8 @@ discard block |
||
| 716 | 716 | */ |
| 717 | 717 | public function getLatitude() |
| 718 | 718 | { |
| 719 | - if( isset( $this->data[$this->prefix . 'latitude'] ) ) { |
|
| 720 | - return (string) $this->data[$this->prefix . 'latitude']; |
|
| 719 | + if( isset( $this->data[$this->prefix.'latitude'] ) ) { |
|
| 720 | + return (string) $this->data[$this->prefix.'latitude']; |
|
| 721 | 721 | } |
| 722 | 722 | |
| 723 | 723 | return null; |
@@ -736,7 +736,7 @@ discard block |
||
| 736 | 736 | |
| 737 | 737 | if( $value !== $this->getLatitude() ) |
| 738 | 738 | { |
| 739 | - $this->data[$this->prefix . 'latitude'] = $value; |
|
| 739 | + $this->data[$this->prefix.'latitude'] = $value; |
|
| 740 | 740 | $this->setModified(); |
| 741 | 741 | } |
| 742 | 742 | |
@@ -751,8 +751,8 @@ discard block |
||
| 751 | 751 | */ |
| 752 | 752 | public function getFlag() |
| 753 | 753 | { |
| 754 | - if( isset( $this->data[$this->prefix . 'flag'] ) ) { |
|
| 755 | - return (int) $this->data[$this->prefix . 'flag']; |
|
| 754 | + if( isset( $this->data[$this->prefix.'flag'] ) ) { |
|
| 755 | + return (int) $this->data[$this->prefix.'flag']; |
|
| 756 | 756 | } |
| 757 | 757 | |
| 758 | 758 | return 0; |
@@ -769,7 +769,7 @@ discard block |
||
| 769 | 769 | { |
| 770 | 770 | if( (int) $flag !== $this->getFlag() ) |
| 771 | 771 | { |
| 772 | - $this->data[$this->prefix . 'flag'] = (int) $flag; |
|
| 772 | + $this->data[$this->prefix.'flag'] = (int) $flag; |
|
| 773 | 773 | $this->setModified(); |
| 774 | 774 | } |
| 775 | 775 | |
@@ -839,27 +839,27 @@ discard block |
||
| 839 | 839 | { |
| 840 | 840 | switch( $key ) |
| 841 | 841 | { |
| 842 | - case $this->prefix . 'salutation': $this->setSalutation( $value ); break; |
|
| 843 | - case $this->prefix . 'company': $this->setCompany( $value ); break; |
|
| 844 | - case $this->prefix . 'vatid': $this->setVatID( $value ); break; |
|
| 845 | - case $this->prefix . 'title': $this->setTitle( $value ); break; |
|
| 846 | - case $this->prefix . 'firstname': $this->setFirstname( $value ); break; |
|
| 847 | - case $this->prefix . 'lastname': $this->setLastname( $value ); break; |
|
| 848 | - case $this->prefix . 'address1': $this->setAddress1( $value ); break; |
|
| 849 | - case $this->prefix . 'address2': $this->setAddress2( $value ); break; |
|
| 850 | - case $this->prefix . 'address3': $this->setAddress3( $value ); break; |
|
| 851 | - case $this->prefix . 'postal': $this->setPostal( $value ); break; |
|
| 852 | - case $this->prefix . 'city': $this->setCity( $value ); break; |
|
| 853 | - case $this->prefix . 'state': $this->setState( $value ); break; |
|
| 854 | - case $this->prefix . 'countryid': $this->setCountryId( $value ); break; |
|
| 855 | - case $this->prefix . 'languageid': $this->setLanguageId( $value ); break; |
|
| 856 | - case $this->prefix . 'telephone': $this->setTelephone( $value ); break; |
|
| 857 | - case $this->prefix . 'telefax': $this->setTelefax( $value ); break; |
|
| 858 | - case $this->prefix . 'email': $this->setEmail( $value ); break; |
|
| 859 | - case $this->prefix . 'website': $this->setWebsite( $value ); break; |
|
| 860 | - case $this->prefix . 'longitude': $this->setLongitude( $value ); break; |
|
| 861 | - case $this->prefix . 'latitude': $this->setLatitude( $value ); break; |
|
| 862 | - case $this->prefix . 'flag': $this->setFlag( $value ); break; |
|
| 842 | + case $this->prefix.'salutation': $this->setSalutation( $value ); break; |
|
| 843 | + case $this->prefix.'company': $this->setCompany( $value ); break; |
|
| 844 | + case $this->prefix.'vatid': $this->setVatID( $value ); break; |
|
| 845 | + case $this->prefix.'title': $this->setTitle( $value ); break; |
|
| 846 | + case $this->prefix.'firstname': $this->setFirstname( $value ); break; |
|
| 847 | + case $this->prefix.'lastname': $this->setLastname( $value ); break; |
|
| 848 | + case $this->prefix.'address1': $this->setAddress1( $value ); break; |
|
| 849 | + case $this->prefix.'address2': $this->setAddress2( $value ); break; |
|
| 850 | + case $this->prefix.'address3': $this->setAddress3( $value ); break; |
|
| 851 | + case $this->prefix.'postal': $this->setPostal( $value ); break; |
|
| 852 | + case $this->prefix.'city': $this->setCity( $value ); break; |
|
| 853 | + case $this->prefix.'state': $this->setState( $value ); break; |
|
| 854 | + case $this->prefix.'countryid': $this->setCountryId( $value ); break; |
|
| 855 | + case $this->prefix.'languageid': $this->setLanguageId( $value ); break; |
|
| 856 | + case $this->prefix.'telephone': $this->setTelephone( $value ); break; |
|
| 857 | + case $this->prefix.'telefax': $this->setTelefax( $value ); break; |
|
| 858 | + case $this->prefix.'email': $this->setEmail( $value ); break; |
|
| 859 | + case $this->prefix.'website': $this->setWebsite( $value ); break; |
|
| 860 | + case $this->prefix.'longitude': $this->setLongitude( $value ); break; |
|
| 861 | + case $this->prefix.'latitude': $this->setLatitude( $value ); break; |
|
| 862 | + case $this->prefix.'flag': $this->setFlag( $value ); break; |
|
| 863 | 863 | default: $unknown[$key] = $value; |
| 864 | 864 | } |
| 865 | 865 | } |
@@ -878,27 +878,27 @@ discard block |
||
| 878 | 878 | { |
| 879 | 879 | $list = parent::toArray( $private ); |
| 880 | 880 | |
| 881 | - $list[$this->prefix . 'salutation'] = $this->getSalutation(); |
|
| 882 | - $list[$this->prefix . 'company'] = $this->getCompany(); |
|
| 883 | - $list[$this->prefix . 'vatid'] = $this->getVatID(); |
|
| 884 | - $list[$this->prefix . 'title'] = $this->getTitle(); |
|
| 885 | - $list[$this->prefix . 'firstname'] = $this->getFirstname(); |
|
| 886 | - $list[$this->prefix . 'lastname'] = $this->getLastname(); |
|
| 887 | - $list[$this->prefix . 'address1'] = $this->getAddress1(); |
|
| 888 | - $list[$this->prefix . 'address2'] = $this->getAddress2(); |
|
| 889 | - $list[$this->prefix . 'address3'] = $this->getAddress3(); |
|
| 890 | - $list[$this->prefix . 'postal'] = $this->getPostal(); |
|
| 891 | - $list[$this->prefix . 'city'] = $this->getCity(); |
|
| 892 | - $list[$this->prefix . 'state'] = $this->getState(); |
|
| 893 | - $list[$this->prefix . 'countryid'] = $this->getCountryId(); |
|
| 894 | - $list[$this->prefix . 'languageid'] = $this->getLanguageId(); |
|
| 895 | - $list[$this->prefix . 'telephone'] = $this->getTelephone(); |
|
| 896 | - $list[$this->prefix . 'telefax'] = $this->getTelefax(); |
|
| 897 | - $list[$this->prefix . 'email'] = $this->getEmail(); |
|
| 898 | - $list[$this->prefix . 'website'] = $this->getWebsite(); |
|
| 899 | - $list[$this->prefix . 'longitude'] = $this->getLongitude(); |
|
| 900 | - $list[$this->prefix . 'latitude'] = $this->getLatitude(); |
|
| 901 | - $list[$this->prefix . 'flag'] = $this->getFlag(); |
|
| 881 | + $list[$this->prefix.'salutation'] = $this->getSalutation(); |
|
| 882 | + $list[$this->prefix.'company'] = $this->getCompany(); |
|
| 883 | + $list[$this->prefix.'vatid'] = $this->getVatID(); |
|
| 884 | + $list[$this->prefix.'title'] = $this->getTitle(); |
|
| 885 | + $list[$this->prefix.'firstname'] = $this->getFirstname(); |
|
| 886 | + $list[$this->prefix.'lastname'] = $this->getLastname(); |
|
| 887 | + $list[$this->prefix.'address1'] = $this->getAddress1(); |
|
| 888 | + $list[$this->prefix.'address2'] = $this->getAddress2(); |
|
| 889 | + $list[$this->prefix.'address3'] = $this->getAddress3(); |
|
| 890 | + $list[$this->prefix.'postal'] = $this->getPostal(); |
|
| 891 | + $list[$this->prefix.'city'] = $this->getCity(); |
|
| 892 | + $list[$this->prefix.'state'] = $this->getState(); |
|
| 893 | + $list[$this->prefix.'countryid'] = $this->getCountryId(); |
|
| 894 | + $list[$this->prefix.'languageid'] = $this->getLanguageId(); |
|
| 895 | + $list[$this->prefix.'telephone'] = $this->getTelephone(); |
|
| 896 | + $list[$this->prefix.'telefax'] = $this->getTelefax(); |
|
| 897 | + $list[$this->prefix.'email'] = $this->getEmail(); |
|
| 898 | + $list[$this->prefix.'website'] = $this->getWebsite(); |
|
| 899 | + $list[$this->prefix.'longitude'] = $this->getLongitude(); |
|
| 900 | + $list[$this->prefix.'latitude'] = $this->getLatitude(); |
|
| 901 | + $list[$this->prefix.'flag'] = $this->getFlag(); |
|
| 902 | 902 | |
| 903 | 903 | return $list; |
| 904 | 904 | } |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | * @see mshop/index/manager/text/decorators/global |
| 369 | 369 | */ |
| 370 | 370 | |
| 371 | - return $this->getSubManagerBase( 'index', 'text/' . $manager, $name ); |
|
| 371 | + return $this->getSubManagerBase( 'index', 'text/'.$manager, $name ); |
|
| 372 | 372 | } |
| 373 | 373 | |
| 374 | 374 | |
@@ -857,7 +857,7 @@ discard block |
||
| 857 | 857 | |
| 858 | 858 | try { |
| 859 | 859 | $stmt->execute()->finish(); |
| 860 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 860 | + } catch( \Aimeos\MW\DB\Exception $e ) {; } // Ignore duplicates |
|
| 861 | 861 | } |
| 862 | 862 | |
| 863 | 863 | |
@@ -874,7 +874,7 @@ discard block |
||
| 874 | 874 | |
| 875 | 875 | $search = $manager->createSearch( true ); |
| 876 | 876 | $expr = array( |
| 877 | - $search->compare( '==', $domain . '.id', $ids ), |
|
| 877 | + $search->compare( '==', $domain.'.id', $ids ), |
|
| 878 | 878 | $search->getConditions() |
| 879 | 879 | ); |
| 880 | 880 | $search->setConditions( $search->combine( '&&', $expr ) ); |
@@ -857,9 +857,13 @@ |
||
| 857 | 857 | $stmt->bind( 10, $siteid, \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
| 858 | 858 | $stmt->bind( 11, $date ); //ctime |
| 859 | 859 | |
| 860 | - try { |
|
| 860 | + try |
|
| 861 | + { |
|
| 861 | 862 | $stmt->execute()->finish(); |
| 862 | - } catch( \Aimeos\MW\DB\Exception $e ) { ; } // Ignore duplicates |
|
| 863 | + } |
|
| 864 | + catch( \Aimeos\MW\DB\Exception $e ) |
|
| 865 | + { |
|
| 866 | +; } // Ignore duplicates |
|
| 863 | 867 | } |
| 864 | 868 | |
| 865 | 869 | |
@@ -48,10 +48,10 @@ discard block |
||
| 48 | 48 | $ds = DIRECTORY_SEPARATOR; |
| 49 | 49 | |
| 50 | 50 | $files = array( |
| 51 | - 'db-cache' => 'default' . $ds . 'schema' . $ds . 'cache.php', |
|
| 52 | - 'db-log' => 'default' . $ds . 'schema' . $ds . 'log.php', |
|
| 53 | - 'db-job' => 'default' . $ds . 'schema' . $ds . 'job.php', |
|
| 54 | - 'db-queue' => 'default' . $ds . 'schema' . $ds . 'queue.php', |
|
| 51 | + 'db-cache' => 'default'.$ds.'schema'.$ds.'cache.php', |
|
| 52 | + 'db-log' => 'default'.$ds.'schema'.$ds.'log.php', |
|
| 53 | + 'db-job' => 'default'.$ds.'schema'.$ds.'job.php', |
|
| 54 | + 'db-queue' => 'default'.$ds.'schema'.$ds.'queue.php', |
|
| 55 | 55 | ); |
| 56 | 56 | |
| 57 | 57 | $this->setupSchema( $files, true ); |
@@ -69,10 +69,10 @@ discard block |
||
| 69 | 69 | $ds = DIRECTORY_SEPARATOR; |
| 70 | 70 | |
| 71 | 71 | $files = array( |
| 72 | - 'db-cache' => 'default' . $ds . 'schema' . $ds . 'cache.php', |
|
| 73 | - 'db-log' => 'default' . $ds . 'schema' . $ds . 'log.php', |
|
| 74 | - 'db-job' => 'default' . $ds . 'schema' . $ds . 'job.php', |
|
| 75 | - 'db-queue' => 'default' . $ds . 'schema' . $ds . 'queue.php', |
|
| 72 | + 'db-cache' => 'default'.$ds.'schema'.$ds.'cache.php', |
|
| 73 | + 'db-log' => 'default'.$ds.'schema'.$ds.'log.php', |
|
| 74 | + 'db-job' => 'default'.$ds.'schema'.$ds.'job.php', |
|
| 75 | + 'db-queue' => 'default'.$ds.'schema'.$ds.'queue.php', |
|
| 76 | 76 | ); |
| 77 | 77 | |
| 78 | 78 | $this->setupSchema( $files ); |