@@ -563,13 +563,13 @@ discard block |
||
563 | 563 | * @see mshop/product/manager/property/standard/delete/ansi |
564 | 564 | * @see mshop/product/manager/property/standard/search/ansi |
565 | 565 | */ |
566 | - $cfgPathCount = 'mshop/product/manager/property/standard/count'; |
|
566 | + $cfgPathCount = 'mshop/product/manager/property/standard/count'; |
|
567 | 567 | |
568 | 568 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level ); |
569 | 569 | while( ( $row = $results->fetch() ) !== false ) |
570 | 570 | { |
571 | - $map[ $row['product.property.id'] ] = $row; |
|
572 | - $typeIds[ $row['product.property.typeid'] ] = null; |
|
571 | + $map[$row['product.property.id']] = $row; |
|
572 | + $typeIds[$row['product.property.typeid']] = null; |
|
573 | 573 | } |
574 | 574 | |
575 | 575 | $dbm->release( $conn, $dbname ); |
@@ -590,9 +590,9 @@ discard block |
||
590 | 590 | |
591 | 591 | foreach( $map as $id => $row ) |
592 | 592 | { |
593 | - if( isset( $typeItems[ $row['product.property.typeid'] ] ) ) |
|
593 | + if( isset( $typeItems[$row['product.property.typeid']] ) ) |
|
594 | 594 | { |
595 | - $row['product.property.type'] = $typeItems[ $row['product.property.typeid'] ]->getCode(); |
|
595 | + $row['product.property.type'] = $typeItems[$row['product.property.typeid']]->getCode(); |
|
596 | 596 | $row['product.property.typename'] = $typeItems[$row['product.property.typeid']]->getName(); |
597 | 597 | } |
598 | 598 | |
@@ -723,7 +723,7 @@ discard block |
||
723 | 723 | * @see mshop/product/manager/property/decorators/global |
724 | 724 | */ |
725 | 725 | |
726 | - return $this->getSubManagerBase( 'product', 'property/' . $manager, $name ); |
|
726 | + return $this->getSubManagerBase( 'product', 'property/'.$manager, $name ); |
|
727 | 727 | } |
728 | 728 | |
729 | 729 |
@@ -222,8 +222,7 @@ |
||
222 | 222 | * @see mshop/product/manager/property/standard/count/ansi |
223 | 223 | */ |
224 | 224 | $path = 'mshop/product/manager/property/standard/insert'; |
225 | - } |
|
226 | - else |
|
225 | + } else |
|
227 | 226 | { |
228 | 227 | /** mshop/product/manager/property/standard/update/mysql |
229 | 228 | * Updates an existing product property record in the database |
@@ -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 ) ); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | $table->addColumn( 'status', 'smallint', array( 'default' => -1 ) ); |
123 | 123 | $table->addColumn( 'mtime', 'datetime', [] ); |
124 | 124 | $table->addColumn( 'ctime', 'datetime', [] ); |
125 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
125 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
126 | 126 | |
127 | 127 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbapr_id' ); |
128 | 128 | $table->addUniqueIndex( array( 'baseid', 'pos' ), 'unq_msordbapr_bid_pos' ); |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | return $schema; |
137 | 137 | }, |
138 | 138 | |
139 | - 'mshop_order_base_product_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
139 | + 'mshop_order_base_product_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
140 | 140 | |
141 | 141 | $table = $schema->createTable( 'mshop_order_base_product_attr' ); |
142 | 142 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | $table->addColumn( 'value', 'text', array( 'length' => 0xffff ) ); |
151 | 151 | $table->addColumn( 'mtime', 'datetime', [] ); |
152 | 152 | $table->addColumn( 'ctime', 'datetime', [] ); |
153 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
153 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
154 | 154 | |
155 | 155 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaprat_id' ); |
156 | 156 | $table->addUniqueIndex( array( 'ordprodid', 'attrid', 'type', 'code' ), 'unq_msordbaprat_oid_aid_ty_cd' ); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | return $schema; |
163 | 163 | }, |
164 | 164 | |
165 | - 'mshop_order_base_service' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
165 | + 'mshop_order_base_service' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
166 | 166 | |
167 | 167 | $table = $schema->createTable( 'mshop_order_base_service' ); |
168 | 168 | |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | $table->addColumn( 'taxflag', 'smallint', [] ); |
183 | 183 | $table->addColumn( 'mtime', 'datetime', [] ); |
184 | 184 | $table->addColumn( 'ctime', 'datetime', [] ); |
185 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
185 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
186 | 186 | |
187 | 187 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbase_id' ); |
188 | 188 | $table->addUniqueIndex( array( 'baseid', 'type', 'code' ), 'unq_msordbase_bid_type_code' ); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | return $schema; |
197 | 197 | }, |
198 | 198 | |
199 | - 'mshop_order_base_service_attr' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
199 | + 'mshop_order_base_service_attr' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
200 | 200 | |
201 | 201 | $table = $schema->createTable( 'mshop_order_base_service_attr' ); |
202 | 202 | |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | $table->addColumn( 'value', 'text', array( 'length' => 0xffff ) ); |
211 | 211 | $table->addColumn( 'mtime', 'datetime', [] ); |
212 | 212 | $table->addColumn( 'ctime', 'datetime', [] ); |
213 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
213 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
214 | 214 | |
215 | 215 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaseat_id' ); |
216 | 216 | $table->addUniqueIndex( array( 'ordservid', 'attrid', 'type', 'code' ), 'unq_msordbaseat_oid_aid_ty_cd' ); |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | return $schema; |
223 | 223 | }, |
224 | 224 | |
225 | - 'mshop_order_base_coupon' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
225 | + 'mshop_order_base_coupon' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
226 | 226 | |
227 | 227 | $table = $schema->createTable( 'mshop_order_base_coupon' ); |
228 | 228 | |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | $table->addColumn( 'code', 'string', array( 'length' => 32 ) ); |
234 | 234 | $table->addColumn( 'mtime', 'datetime', [] ); |
235 | 235 | $table->addColumn( 'ctime', 'datetime', [] ); |
236 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
236 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
237 | 237 | |
238 | 238 | $table->setPrimaryKey( array( 'id' ), 'pk_msordbaco_id' ); |
239 | 239 | $table->addIndex( array( 'siteid', 'baseid', 'code' ), 'idx_msordbaco_sid_bid_code' ); |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | return $schema; |
250 | 250 | }, |
251 | 251 | |
252 | - 'mshop_order' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
252 | + 'mshop_order' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
253 | 253 | |
254 | 254 | $table = $schema->createTable( 'mshop_order' ); |
255 | 255 | |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | $table->addColumn( 'chour', 'string', array( 'fixed' => 2 ) ); |
269 | 269 | $table->addColumn( 'ctime', 'datetime', [] ); |
270 | 270 | $table->addColumn( 'mtime', 'datetime', [] ); |
271 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
271 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
272 | 272 | |
273 | 273 | $table->setPrimaryKey( array( 'id' ), 'pk_msord_id' ); |
274 | 274 | $table->addIndex( array( 'siteid', 'type' ), 'idx_msord_sid_type' ); |
@@ -291,7 +291,7 @@ discard block |
||
291 | 291 | return $schema; |
292 | 292 | }, |
293 | 293 | |
294 | - 'mshop_order_status' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
294 | + 'mshop_order_status' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
295 | 295 | |
296 | 296 | $table = $schema->createTable( 'mshop_order_status' ); |
297 | 297 | |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | $table->addColumn( 'value', 'string', array( 'length' => 32 ) ); |
303 | 303 | $table->addColumn( 'mtime', 'datetime', [] ); |
304 | 304 | $table->addColumn( 'ctime', 'datetime', [] ); |
305 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
305 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
306 | 306 | |
307 | 307 | $table->setPrimaryKey( array( 'id' ), 'pk_msordst_id' ); |
308 | 308 | $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 ); |
@@ -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( $company == $this->getCompany() ) { return $this; } |
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 | return $this; |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function getVatID() |
109 | 109 | { |
110 | - if( isset( $this->data[$this->prefix . 'vatid'] ) ) { |
|
111 | - return (string) $this->data[$this->prefix . 'vatid']; |
|
110 | + if( isset( $this->data[$this->prefix.'vatid'] ) ) { |
|
111 | + return (string) $this->data[$this->prefix.'vatid']; |
|
112 | 112 | } |
113 | 113 | |
114 | 114 | return ''; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | if( $vatid == $this->getVatID() ) { return $this; } |
127 | 127 | |
128 | - $this->data[$this->prefix . 'vatid'] = (string) $vatid; |
|
128 | + $this->data[$this->prefix.'vatid'] = (string) $vatid; |
|
129 | 129 | $this->setModified(); |
130 | 130 | |
131 | 131 | return $this; |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function getSalutation() |
141 | 141 | { |
142 | - if( isset( $this->data[$this->prefix . 'salutation'] ) ) { |
|
143 | - return (string) $this->data[$this->prefix . 'salutation']; |
|
142 | + if( isset( $this->data[$this->prefix.'salutation'] ) ) { |
|
143 | + return (string) $this->data[$this->prefix.'salutation']; |
|
144 | 144 | } |
145 | 145 | |
146 | 146 | return \Aimeos\MShop\Common\Item\Address\Base::SALUTATION_UNKNOWN; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | $this->checkSalutation( $salutation ); |
161 | 161 | |
162 | - $this->data[$this->prefix . 'salutation'] = (string) $salutation; |
|
162 | + $this->data[$this->prefix.'salutation'] = (string) $salutation; |
|
163 | 163 | $this->setModified(); |
164 | 164 | |
165 | 165 | return $this; |
@@ -173,8 +173,8 @@ discard block |
||
173 | 173 | */ |
174 | 174 | public function getTitle() |
175 | 175 | { |
176 | - if( isset( $this->data[$this->prefix . 'title'] ) ) { |
|
177 | - return (string) $this->data[$this->prefix . 'title']; |
|
176 | + if( isset( $this->data[$this->prefix.'title'] ) ) { |
|
177 | + return (string) $this->data[$this->prefix.'title']; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | return ''; |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | { |
192 | 192 | if( $title == $this->getTitle() ) { return $this; } |
193 | 193 | |
194 | - $this->data[$this->prefix . 'title'] = (string) $title; |
|
194 | + $this->data[$this->prefix.'title'] = (string) $title; |
|
195 | 195 | $this->setModified(); |
196 | 196 | |
197 | 197 | return $this; |
@@ -205,8 +205,8 @@ discard block |
||
205 | 205 | */ |
206 | 206 | public function getFirstname() |
207 | 207 | { |
208 | - if( isset( $this->data[$this->prefix . 'firstname'] ) ) { |
|
209 | - return (string) $this->data[$this->prefix . 'firstname']; |
|
208 | + if( isset( $this->data[$this->prefix.'firstname'] ) ) { |
|
209 | + return (string) $this->data[$this->prefix.'firstname']; |
|
210 | 210 | } |
211 | 211 | |
212 | 212 | return ''; |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | { |
224 | 224 | if( $firstname == $this->getFirstname() ) { return $this; } |
225 | 225 | |
226 | - $this->data[$this->prefix . 'firstname'] = (string) $firstname; |
|
226 | + $this->data[$this->prefix.'firstname'] = (string) $firstname; |
|
227 | 227 | $this->setModified(); |
228 | 228 | |
229 | 229 | return $this; |
@@ -237,8 +237,8 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function getLastname() |
239 | 239 | { |
240 | - if( isset( $this->data[$this->prefix . 'lastname'] ) ) { |
|
241 | - return (string) $this->data[$this->prefix . 'lastname']; |
|
240 | + if( isset( $this->data[$this->prefix.'lastname'] ) ) { |
|
241 | + return (string) $this->data[$this->prefix.'lastname']; |
|
242 | 242 | } |
243 | 243 | |
244 | 244 | return ''; |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | { |
256 | 256 | if( $lastname == $this->getLastname() ) { return $this; } |
257 | 257 | |
258 | - $this->data[$this->prefix . 'lastname'] = (string) $lastname; |
|
258 | + $this->data[$this->prefix.'lastname'] = (string) $lastname; |
|
259 | 259 | $this->setModified(); |
260 | 260 | |
261 | 261 | return $this; |
@@ -269,8 +269,8 @@ discard block |
||
269 | 269 | */ |
270 | 270 | public function getAddress1() |
271 | 271 | { |
272 | - if( isset( $this->data[$this->prefix . 'address1'] ) ) { |
|
273 | - return (string) $this->data[$this->prefix . 'address1']; |
|
272 | + if( isset( $this->data[$this->prefix.'address1'] ) ) { |
|
273 | + return (string) $this->data[$this->prefix.'address1']; |
|
274 | 274 | } |
275 | 275 | |
276 | 276 | return ''; |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | { |
288 | 288 | if( $address1 == $this->getAddress1() ) { return $this; } |
289 | 289 | |
290 | - $this->data[$this->prefix . 'address1'] = (string) $address1; |
|
290 | + $this->data[$this->prefix.'address1'] = (string) $address1; |
|
291 | 291 | $this->setModified(); |
292 | 292 | |
293 | 293 | return $this; |
@@ -301,8 +301,8 @@ discard block |
||
301 | 301 | */ |
302 | 302 | public function getAddress2() |
303 | 303 | { |
304 | - if( isset( $this->data[$this->prefix . 'address2'] ) ) { |
|
305 | - return (string) $this->data[$this->prefix . 'address2']; |
|
304 | + if( isset( $this->data[$this->prefix.'address2'] ) ) { |
|
305 | + return (string) $this->data[$this->prefix.'address2']; |
|
306 | 306 | } |
307 | 307 | |
308 | 308 | return ''; |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | { |
320 | 320 | if( $address2 == $this->getAddress2() ) { return $this; } |
321 | 321 | |
322 | - $this->data[$this->prefix . 'address2'] = (string) $address2; |
|
322 | + $this->data[$this->prefix.'address2'] = (string) $address2; |
|
323 | 323 | $this->setModified(); |
324 | 324 | |
325 | 325 | return $this; |
@@ -333,8 +333,8 @@ discard block |
||
333 | 333 | */ |
334 | 334 | public function getAddress3() |
335 | 335 | { |
336 | - if( isset( $this->data[$this->prefix . 'address3'] ) ) { |
|
337 | - return (string) $this->data[$this->prefix . 'address3']; |
|
336 | + if( isset( $this->data[$this->prefix.'address3'] ) ) { |
|
337 | + return (string) $this->data[$this->prefix.'address3']; |
|
338 | 338 | } |
339 | 339 | |
340 | 340 | return ''; |
@@ -351,7 +351,7 @@ discard block |
||
351 | 351 | { |
352 | 352 | if( $address3 == $this->getAddress3() ) { return $this; } |
353 | 353 | |
354 | - $this->data[$this->prefix . 'address3'] = (string) $address3; |
|
354 | + $this->data[$this->prefix.'address3'] = (string) $address3; |
|
355 | 355 | $this->setModified(); |
356 | 356 | |
357 | 357 | return $this; |
@@ -365,8 +365,8 @@ discard block |
||
365 | 365 | */ |
366 | 366 | public function getPostal() |
367 | 367 | { |
368 | - if( isset( $this->data[$this->prefix . 'postal'] ) ) { |
|
369 | - return (string) $this->data[$this->prefix . 'postal']; |
|
368 | + if( isset( $this->data[$this->prefix.'postal'] ) ) { |
|
369 | + return (string) $this->data[$this->prefix.'postal']; |
|
370 | 370 | } |
371 | 371 | |
372 | 372 | return ''; |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | { |
384 | 384 | if( $postal == $this->getPostal() ) { return $this; } |
385 | 385 | |
386 | - $this->data[$this->prefix . 'postal'] = (string) $postal; |
|
386 | + $this->data[$this->prefix.'postal'] = (string) $postal; |
|
387 | 387 | $this->setModified(); |
388 | 388 | |
389 | 389 | return $this; |
@@ -397,8 +397,8 @@ discard block |
||
397 | 397 | */ |
398 | 398 | public function getCity() |
399 | 399 | { |
400 | - if( isset( $this->data[$this->prefix . 'city'] ) ) { |
|
401 | - return (string) $this->data[$this->prefix . 'city']; |
|
400 | + if( isset( $this->data[$this->prefix.'city'] ) ) { |
|
401 | + return (string) $this->data[$this->prefix.'city']; |
|
402 | 402 | } |
403 | 403 | |
404 | 404 | return ''; |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | { |
416 | 416 | if( $city == $this->getCity() ) { return $this; } |
417 | 417 | |
418 | - $this->data[$this->prefix . 'city'] = (string) $city; |
|
418 | + $this->data[$this->prefix.'city'] = (string) $city; |
|
419 | 419 | $this->setModified(); |
420 | 420 | |
421 | 421 | return $this; |
@@ -429,8 +429,8 @@ discard block |
||
429 | 429 | */ |
430 | 430 | public function getState() |
431 | 431 | { |
432 | - if( isset( $this->data[$this->prefix . 'state'] ) ) { |
|
433 | - return (string) $this->data[$this->prefix . 'state']; |
|
432 | + if( isset( $this->data[$this->prefix.'state'] ) ) { |
|
433 | + return (string) $this->data[$this->prefix.'state']; |
|
434 | 434 | } |
435 | 435 | |
436 | 436 | return ''; |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | { |
448 | 448 | if( $state == $this->getState() ) { return $this; } |
449 | 449 | |
450 | - $this->data[$this->prefix . 'state'] = (string) $state; |
|
450 | + $this->data[$this->prefix.'state'] = (string) $state; |
|
451 | 451 | $this->setModified(); |
452 | 452 | |
453 | 453 | return $this; |
@@ -461,8 +461,8 @@ discard block |
||
461 | 461 | */ |
462 | 462 | public function getCountryId() |
463 | 463 | { |
464 | - if( isset( $this->data[$this->prefix . 'countryid'] ) ) { |
|
465 | - return (string) $this->data[$this->prefix . 'countryid']; |
|
464 | + if( isset( $this->data[$this->prefix.'countryid'] ) ) { |
|
465 | + return (string) $this->data[$this->prefix.'countryid']; |
|
466 | 466 | } |
467 | 467 | |
468 | 468 | return null; |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | { |
480 | 480 | if( $countryid === $this->getCountryId() ) { return $this; } |
481 | 481 | |
482 | - $this->data[$this->prefix . 'countryid'] = strtoupper( (string) $countryid ); |
|
482 | + $this->data[$this->prefix.'countryid'] = strtoupper( (string) $countryid ); |
|
483 | 483 | $this->setModified(); |
484 | 484 | |
485 | 485 | return $this; |
@@ -493,8 +493,8 @@ discard block |
||
493 | 493 | */ |
494 | 494 | public function getLanguageId() |
495 | 495 | { |
496 | - if( isset( $this->data[$this->prefix . 'languageid'] ) ) { |
|
497 | - return (string) $this->data[$this->prefix . 'languageid']; |
|
496 | + if( isset( $this->data[$this->prefix.'languageid'] ) ) { |
|
497 | + return (string) $this->data[$this->prefix.'languageid']; |
|
498 | 498 | } |
499 | 499 | |
500 | 500 | return null; |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | { |
512 | 512 | if( $langid === $this->getLanguageId() ) { return $this; } |
513 | 513 | |
514 | - $this->data[$this->prefix . 'languageid'] = (string) $langid; |
|
514 | + $this->data[$this->prefix.'languageid'] = (string) $langid; |
|
515 | 515 | $this->setModified(); |
516 | 516 | |
517 | 517 | return $this; |
@@ -525,8 +525,8 @@ discard block |
||
525 | 525 | */ |
526 | 526 | public function getTelephone() |
527 | 527 | { |
528 | - if( isset( $this->data[$this->prefix . 'telephone'] ) ) { |
|
529 | - return (string) $this->data[$this->prefix . 'telephone']; |
|
528 | + if( isset( $this->data[$this->prefix.'telephone'] ) ) { |
|
529 | + return (string) $this->data[$this->prefix.'telephone']; |
|
530 | 530 | } |
531 | 531 | |
532 | 532 | return ''; |
@@ -543,7 +543,7 @@ discard block |
||
543 | 543 | { |
544 | 544 | if( $telephone == $this->getTelephone() ) { return $this; } |
545 | 545 | |
546 | - $this->data[$this->prefix . 'telephone'] = (string) $telephone; |
|
546 | + $this->data[$this->prefix.'telephone'] = (string) $telephone; |
|
547 | 547 | $this->setModified(); |
548 | 548 | |
549 | 549 | return $this; |
@@ -557,8 +557,8 @@ discard block |
||
557 | 557 | */ |
558 | 558 | public function getEmail() |
559 | 559 | { |
560 | - if( isset( $this->data[$this->prefix . 'email'] ) ) { |
|
561 | - return (string) $this->data[$this->prefix . 'email']; |
|
560 | + if( isset( $this->data[$this->prefix.'email'] ) ) { |
|
561 | + return (string) $this->data[$this->prefix.'email']; |
|
562 | 562 | } |
563 | 563 | |
564 | 564 | return ''; |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | throw new \Aimeos\MShop\Exception( sprintf( 'Invalid characters in email address: "%1$s"', $email ) ); |
580 | 580 | } |
581 | 581 | |
582 | - $this->data[$this->prefix . 'email'] = (string) $email; |
|
582 | + $this->data[$this->prefix.'email'] = (string) $email; |
|
583 | 583 | $this->setModified(); |
584 | 584 | |
585 | 585 | return $this; |
@@ -593,8 +593,8 @@ discard block |
||
593 | 593 | */ |
594 | 594 | public function getTelefax() |
595 | 595 | { |
596 | - if( isset( $this->data[$this->prefix . 'telefax'] ) ) { |
|
597 | - return (string) $this->data[$this->prefix . 'telefax']; |
|
596 | + if( isset( $this->data[$this->prefix.'telefax'] ) ) { |
|
597 | + return (string) $this->data[$this->prefix.'telefax']; |
|
598 | 598 | } |
599 | 599 | |
600 | 600 | return ''; |
@@ -611,7 +611,7 @@ discard block |
||
611 | 611 | { |
612 | 612 | if( $telefax == $this->getTelefax() ) { return $this; } |
613 | 613 | |
614 | - $this->data[$this->prefix . 'telefax'] = (string) $telefax; |
|
614 | + $this->data[$this->prefix.'telefax'] = (string) $telefax; |
|
615 | 615 | $this->setModified(); |
616 | 616 | |
617 | 617 | return $this; |
@@ -625,8 +625,8 @@ discard block |
||
625 | 625 | */ |
626 | 626 | public function getWebsite() |
627 | 627 | { |
628 | - if( isset( $this->data[$this->prefix . 'website'] ) ) { |
|
629 | - return (string) $this->data[$this->prefix . 'website']; |
|
628 | + if( isset( $this->data[$this->prefix.'website'] ) ) { |
|
629 | + return (string) $this->data[$this->prefix.'website']; |
|
630 | 630 | } |
631 | 631 | |
632 | 632 | return ''; |
@@ -649,7 +649,7 @@ discard block |
||
649 | 649 | throw new \Aimeos\MShop\Exception( sprintf( 'Invalid web site URL "%1$s"', $website ) ); |
650 | 650 | } |
651 | 651 | |
652 | - $this->data[$this->prefix . 'website'] = (string) $website; |
|
652 | + $this->data[$this->prefix.'website'] = (string) $website; |
|
653 | 653 | $this->setModified(); |
654 | 654 | |
655 | 655 | return $this; |
@@ -663,8 +663,8 @@ discard block |
||
663 | 663 | */ |
664 | 664 | public function getLongitude() |
665 | 665 | { |
666 | - if( isset( $this->data[$this->prefix . 'longitude'] ) ) { |
|
667 | - return (string) $this->data[$this->prefix . 'longitude']; |
|
666 | + if( isset( $this->data[$this->prefix.'longitude'] ) ) { |
|
667 | + return (string) $this->data[$this->prefix.'longitude']; |
|
668 | 668 | } |
669 | 669 | |
670 | 670 | return null; |
@@ -682,7 +682,7 @@ discard block |
||
682 | 682 | if( $value == '' ) { $value = null; } |
683 | 683 | if( $value === $this->getLongitude() ) { return $this; } |
684 | 684 | |
685 | - $this->data[$this->prefix . 'longitude'] = $value; |
|
685 | + $this->data[$this->prefix.'longitude'] = $value; |
|
686 | 686 | $this->setModified(); |
687 | 687 | |
688 | 688 | return $this; |
@@ -696,8 +696,8 @@ discard block |
||
696 | 696 | */ |
697 | 697 | public function getLatitude() |
698 | 698 | { |
699 | - if( isset( $this->data[$this->prefix . 'latitude'] ) ) { |
|
700 | - return (string) $this->data[$this->prefix . 'latitude']; |
|
699 | + if( isset( $this->data[$this->prefix.'latitude'] ) ) { |
|
700 | + return (string) $this->data[$this->prefix.'latitude']; |
|
701 | 701 | } |
702 | 702 | |
703 | 703 | return null; |
@@ -715,7 +715,7 @@ discard block |
||
715 | 715 | if( $value == '' ) { $value = null; } |
716 | 716 | if( $value === $this->getLatitude() ) { return $this; } |
717 | 717 | |
718 | - $this->data[$this->prefix . 'latitude'] = $value; |
|
718 | + $this->data[$this->prefix.'latitude'] = $value; |
|
719 | 719 | $this->setModified(); |
720 | 720 | |
721 | 721 | return $this; |
@@ -729,8 +729,8 @@ discard block |
||
729 | 729 | */ |
730 | 730 | public function getFlag() |
731 | 731 | { |
732 | - if( isset( $this->data[$this->prefix . 'flag'] ) ) { |
|
733 | - return (int) $this->data[$this->prefix . 'flag']; |
|
732 | + if( isset( $this->data[$this->prefix.'flag'] ) ) { |
|
733 | + return (int) $this->data[$this->prefix.'flag']; |
|
734 | 734 | } |
735 | 735 | |
736 | 736 | return 0; |
@@ -747,7 +747,7 @@ discard block |
||
747 | 747 | { |
748 | 748 | if( $flag == $this->getFlag() ) { return $this; } |
749 | 749 | |
750 | - $this->data[$this->prefix . 'flag'] = (int) $flag; |
|
750 | + $this->data[$this->prefix.'flag'] = (int) $flag; |
|
751 | 751 | $this->setModified(); |
752 | 752 | |
753 | 753 | return $this; |
@@ -816,27 +816,27 @@ discard block |
||
816 | 816 | { |
817 | 817 | switch( $key ) |
818 | 818 | { |
819 | - case $this->prefix . 'salutation': $this->setSalutation( $value ); break; |
|
820 | - case $this->prefix . 'company': $this->setCompany( $value ); break; |
|
821 | - case $this->prefix . 'vatid': $this->setVatID( $value ); break; |
|
822 | - case $this->prefix . 'title': $this->setTitle( $value ); break; |
|
823 | - case $this->prefix . 'firstname': $this->setFirstname( $value ); break; |
|
824 | - case $this->prefix . 'lastname': $this->setLastname( $value ); break; |
|
825 | - case $this->prefix . 'address1': $this->setAddress1( $value ); break; |
|
826 | - case $this->prefix . 'address2': $this->setAddress2( $value ); break; |
|
827 | - case $this->prefix . 'address3': $this->setAddress3( $value ); break; |
|
828 | - case $this->prefix . 'postal': $this->setPostal( $value ); break; |
|
829 | - case $this->prefix . 'city': $this->setCity( $value ); break; |
|
830 | - case $this->prefix . 'state': $this->setState( $value ); break; |
|
831 | - case $this->prefix . 'countryid': $this->setCountryId( $value ); break; |
|
832 | - case $this->prefix . 'languageid': $this->setLanguageId( $value ); break; |
|
833 | - case $this->prefix . 'telephone': $this->setTelephone( $value ); break; |
|
834 | - case $this->prefix . 'telefax': $this->setTelefax( $value ); break; |
|
835 | - case $this->prefix . 'email': $this->setEmail( $value ); break; |
|
836 | - case $this->prefix . 'website': $this->setWebsite( $value ); break; |
|
837 | - case $this->prefix . 'longitude': $this->setLongitude( $value ); break; |
|
838 | - case $this->prefix . 'latitude': $this->setLatitude( $value ); break; |
|
839 | - case $this->prefix . 'flag': $this->setFlag( $value ); break; |
|
819 | + case $this->prefix.'salutation': $this->setSalutation( $value ); break; |
|
820 | + case $this->prefix.'company': $this->setCompany( $value ); break; |
|
821 | + case $this->prefix.'vatid': $this->setVatID( $value ); break; |
|
822 | + case $this->prefix.'title': $this->setTitle( $value ); break; |
|
823 | + case $this->prefix.'firstname': $this->setFirstname( $value ); break; |
|
824 | + case $this->prefix.'lastname': $this->setLastname( $value ); break; |
|
825 | + case $this->prefix.'address1': $this->setAddress1( $value ); break; |
|
826 | + case $this->prefix.'address2': $this->setAddress2( $value ); break; |
|
827 | + case $this->prefix.'address3': $this->setAddress3( $value ); break; |
|
828 | + case $this->prefix.'postal': $this->setPostal( $value ); break; |
|
829 | + case $this->prefix.'city': $this->setCity( $value ); break; |
|
830 | + case $this->prefix.'state': $this->setState( $value ); break; |
|
831 | + case $this->prefix.'countryid': $this->setCountryId( $value ); break; |
|
832 | + case $this->prefix.'languageid': $this->setLanguageId( $value ); break; |
|
833 | + case $this->prefix.'telephone': $this->setTelephone( $value ); break; |
|
834 | + case $this->prefix.'telefax': $this->setTelefax( $value ); break; |
|
835 | + case $this->prefix.'email': $this->setEmail( $value ); break; |
|
836 | + case $this->prefix.'website': $this->setWebsite( $value ); break; |
|
837 | + case $this->prefix.'longitude': $this->setLongitude( $value ); break; |
|
838 | + case $this->prefix.'latitude': $this->setLatitude( $value ); break; |
|
839 | + case $this->prefix.'flag': $this->setFlag( $value ); break; |
|
840 | 840 | default: $unknown[$key] = $value; |
841 | 841 | } |
842 | 842 | } |
@@ -855,27 +855,27 @@ discard block |
||
855 | 855 | { |
856 | 856 | $list = parent::toArray( $private ); |
857 | 857 | |
858 | - $list[$this->prefix . 'salutation'] = $this->getSalutation(); |
|
859 | - $list[$this->prefix . 'company'] = $this->getCompany(); |
|
860 | - $list[$this->prefix . 'vatid'] = $this->getVatID(); |
|
861 | - $list[$this->prefix . 'title'] = $this->getTitle(); |
|
862 | - $list[$this->prefix . 'firstname'] = $this->getFirstname(); |
|
863 | - $list[$this->prefix . 'lastname'] = $this->getLastname(); |
|
864 | - $list[$this->prefix . 'address1'] = $this->getAddress1(); |
|
865 | - $list[$this->prefix . 'address2'] = $this->getAddress2(); |
|
866 | - $list[$this->prefix . 'address3'] = $this->getAddress3(); |
|
867 | - $list[$this->prefix . 'postal'] = $this->getPostal(); |
|
868 | - $list[$this->prefix . 'city'] = $this->getCity(); |
|
869 | - $list[$this->prefix . 'state'] = $this->getState(); |
|
870 | - $list[$this->prefix . 'countryid'] = $this->getCountryId(); |
|
871 | - $list[$this->prefix . 'languageid'] = $this->getLanguageId(); |
|
872 | - $list[$this->prefix . 'telephone'] = $this->getTelephone(); |
|
873 | - $list[$this->prefix . 'telefax'] = $this->getTelefax(); |
|
874 | - $list[$this->prefix . 'email'] = $this->getEmail(); |
|
875 | - $list[$this->prefix . 'website'] = $this->getWebsite(); |
|
876 | - $list[$this->prefix . 'longitude'] = $this->getLongitude(); |
|
877 | - $list[$this->prefix . 'latitude'] = $this->getLatitude(); |
|
878 | - $list[$this->prefix . 'flag'] = $this->getFlag(); |
|
858 | + $list[$this->prefix.'salutation'] = $this->getSalutation(); |
|
859 | + $list[$this->prefix.'company'] = $this->getCompany(); |
|
860 | + $list[$this->prefix.'vatid'] = $this->getVatID(); |
|
861 | + $list[$this->prefix.'title'] = $this->getTitle(); |
|
862 | + $list[$this->prefix.'firstname'] = $this->getFirstname(); |
|
863 | + $list[$this->prefix.'lastname'] = $this->getLastname(); |
|
864 | + $list[$this->prefix.'address1'] = $this->getAddress1(); |
|
865 | + $list[$this->prefix.'address2'] = $this->getAddress2(); |
|
866 | + $list[$this->prefix.'address3'] = $this->getAddress3(); |
|
867 | + $list[$this->prefix.'postal'] = $this->getPostal(); |
|
868 | + $list[$this->prefix.'city'] = $this->getCity(); |
|
869 | + $list[$this->prefix.'state'] = $this->getState(); |
|
870 | + $list[$this->prefix.'countryid'] = $this->getCountryId(); |
|
871 | + $list[$this->prefix.'languageid'] = $this->getLanguageId(); |
|
872 | + $list[$this->prefix.'telephone'] = $this->getTelephone(); |
|
873 | + $list[$this->prefix.'telefax'] = $this->getTelefax(); |
|
874 | + $list[$this->prefix.'email'] = $this->getEmail(); |
|
875 | + $list[$this->prefix.'website'] = $this->getWebsite(); |
|
876 | + $list[$this->prefix.'longitude'] = $this->getLongitude(); |
|
877 | + $list[$this->prefix.'latitude'] = $this->getLatitude(); |
|
878 | + $list[$this->prefix.'flag'] = $this->getFlag(); |
|
879 | 879 | |
880 | 880 | return $list; |
881 | 881 | } |
@@ -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 |