@@ -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 ); |
@@ -52,7 +52,7 @@ |
||
52 | 52 | $this->additional->setEditor( 'core:unittest' ); |
53 | 53 | |
54 | 54 | $ds = DIRECTORY_SEPARATOR; |
55 | - $path = __DIR__ . $ds . 'data' . $ds . 'stock.php'; |
|
55 | + $path = __DIR__.$ds.'data'.$ds.'stock.php'; |
|
56 | 56 | |
57 | 57 | if( ( $testdata = include( $path ) ) == false ) { |
58 | 58 | throw new \Aimeos\MShop\Exception( sprintf( 'No file "%1$s" found for stock domain', $path ) ); |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_stock_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_stock_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'mshop_stock_type' ); |
14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return $schema; |
32 | 32 | }, |
33 | 33 | |
34 | - 'mshop_stock' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
34 | + 'mshop_stock' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
35 | 35 | |
36 | 36 | $table = $schema->createTable( 'mshop_stock' ); |
37 | 37 |
@@ -8,7 +8,8 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_stock_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_stock_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
12 | + { |
|
12 | 13 | |
13 | 14 | $table = $schema->createTable( 'mshop_stock_type' ); |
14 | 15 | |
@@ -31,7 +32,8 @@ discard block |
||
31 | 32 | return $schema; |
32 | 33 | }, |
33 | 34 | |
34 | - 'mshop_stock' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
35 | + 'mshop_stock' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
36 | + { |
|
35 | 37 | |
36 | 38 | $table = $schema->createTable( 'mshop_stock' ); |
37 | 39 |