@@ -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 |
@@ -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 ) ); |
@@ -48,27 +48,27 @@ discard block |
||
48 | 48 | $ds = DIRECTORY_SEPARATOR; |
49 | 49 | |
50 | 50 | $files = array( |
51 | - 'db-locale' => 'default' . $ds . 'schema' . $ds . 'locale.php', |
|
52 | - 'db-attribute' => 'default' . $ds . 'schema' . $ds . 'attribute.php', |
|
53 | - 'db-customer' => 'default' . $ds . 'schema' . $ds . 'customer.php', |
|
54 | - 'db-media' => 'default' . $ds . 'schema' . $ds . 'media.php', |
|
55 | - 'db-order' => 'default' . $ds . 'schema' . $ds . 'order.php', |
|
56 | - 'db-plugin' => 'default' . $ds . 'schema' . $ds . 'plugin.php', |
|
57 | - 'db-price' => 'default' . $ds . 'schema' . $ds . 'price.php', |
|
58 | - 'db-product' => 'default' . $ds . 'schema' . $ds . 'product.php', |
|
59 | - 'db-stock' => 'default' . $ds . 'schema' . $ds . 'stock.php', |
|
60 | - 'db-service' => 'default' . $ds . 'schema' . $ds . 'service.php', |
|
61 | - 'db-supplier' => 'default' . $ds . 'schema' . $ds . 'supplier.php', |
|
62 | - 'db-text' => 'default' . $ds . 'schema' . $ds . 'text.php', |
|
63 | - 'db-coupon' => 'default' . $ds . 'schema' . $ds . 'coupon.php', |
|
64 | - 'db-catalog' => 'default' . $ds . 'schema' . $ds . 'catalog.php', |
|
65 | - 'db-tag' => 'default' . $ds . 'schema' . $ds . 'tag.php', |
|
51 | + 'db-locale' => 'default'.$ds.'schema'.$ds.'locale.php', |
|
52 | + 'db-attribute' => 'default'.$ds.'schema'.$ds.'attribute.php', |
|
53 | + 'db-customer' => 'default'.$ds.'schema'.$ds.'customer.php', |
|
54 | + 'db-media' => 'default'.$ds.'schema'.$ds.'media.php', |
|
55 | + 'db-order' => 'default'.$ds.'schema'.$ds.'order.php', |
|
56 | + 'db-plugin' => 'default'.$ds.'schema'.$ds.'plugin.php', |
|
57 | + 'db-price' => 'default'.$ds.'schema'.$ds.'price.php', |
|
58 | + 'db-product' => 'default'.$ds.'schema'.$ds.'product.php', |
|
59 | + 'db-stock' => 'default'.$ds.'schema'.$ds.'stock.php', |
|
60 | + 'db-service' => 'default'.$ds.'schema'.$ds.'service.php', |
|
61 | + 'db-supplier' => 'default'.$ds.'schema'.$ds.'supplier.php', |
|
62 | + 'db-text' => 'default'.$ds.'schema'.$ds.'text.php', |
|
63 | + 'db-coupon' => 'default'.$ds.'schema'.$ds.'coupon.php', |
|
64 | + 'db-catalog' => 'default'.$ds.'schema'.$ds.'catalog.php', |
|
65 | + 'db-tag' => 'default'.$ds.'schema'.$ds.'tag.php', |
|
66 | 66 | ); |
67 | 67 | |
68 | 68 | $this->setupSchema( $files, true ); |
69 | 69 | |
70 | 70 | $files = array( |
71 | - 'db-product' => 'default' . $ds . 'schema' . $ds . 'index.php', |
|
71 | + 'db-product' => 'default'.$ds.'schema'.$ds.'index.php', |
|
72 | 72 | ); |
73 | 73 | |
74 | 74 | $this->setupSchema( $files, true ); |
@@ -86,27 +86,27 @@ discard block |
||
86 | 86 | $ds = DIRECTORY_SEPARATOR; |
87 | 87 | |
88 | 88 | $files = array( |
89 | - 'db-locale' => 'default' . $ds . 'schema' . $ds . 'locale.php', |
|
90 | - 'db-attribute' => 'default' . $ds . 'schema' . $ds . 'attribute.php', |
|
91 | - 'db-customer' => 'default' . $ds . 'schema' . $ds . 'customer.php', |
|
92 | - 'db-media' => 'default' . $ds . 'schema' . $ds . 'media.php', |
|
93 | - 'db-order' => 'default' . $ds . 'schema' . $ds . 'order.php', |
|
94 | - 'db-plugin' => 'default' . $ds . 'schema' . $ds . 'plugin.php', |
|
95 | - 'db-price' => 'default' . $ds . 'schema' . $ds . 'price.php', |
|
96 | - 'db-product' => 'default' . $ds . 'schema' . $ds . 'product.php', |
|
97 | - 'db-stock' => 'default' . $ds . 'schema' . $ds . 'stock.php', |
|
98 | - 'db-service' => 'default' . $ds . 'schema' . $ds . 'service.php', |
|
99 | - 'db-supplier' => 'default' . $ds . 'schema' . $ds . 'supplier.php', |
|
100 | - 'db-text' => 'default' . $ds . 'schema' . $ds . 'text.php', |
|
101 | - 'db-coupon' => 'default' . $ds . 'schema' . $ds . 'coupon.php', |
|
102 | - 'db-catalog' => 'default' . $ds . 'schema' . $ds . 'catalog.php', |
|
103 | - 'db-tag' => 'default' . $ds . 'schema' . $ds . 'tag.php', |
|
89 | + 'db-locale' => 'default'.$ds.'schema'.$ds.'locale.php', |
|
90 | + 'db-attribute' => 'default'.$ds.'schema'.$ds.'attribute.php', |
|
91 | + 'db-customer' => 'default'.$ds.'schema'.$ds.'customer.php', |
|
92 | + 'db-media' => 'default'.$ds.'schema'.$ds.'media.php', |
|
93 | + 'db-order' => 'default'.$ds.'schema'.$ds.'order.php', |
|
94 | + 'db-plugin' => 'default'.$ds.'schema'.$ds.'plugin.php', |
|
95 | + 'db-price' => 'default'.$ds.'schema'.$ds.'price.php', |
|
96 | + 'db-product' => 'default'.$ds.'schema'.$ds.'product.php', |
|
97 | + 'db-stock' => 'default'.$ds.'schema'.$ds.'stock.php', |
|
98 | + 'db-service' => 'default'.$ds.'schema'.$ds.'service.php', |
|
99 | + 'db-supplier' => 'default'.$ds.'schema'.$ds.'supplier.php', |
|
100 | + 'db-text' => 'default'.$ds.'schema'.$ds.'text.php', |
|
101 | + 'db-coupon' => 'default'.$ds.'schema'.$ds.'coupon.php', |
|
102 | + 'db-catalog' => 'default'.$ds.'schema'.$ds.'catalog.php', |
|
103 | + 'db-tag' => 'default'.$ds.'schema'.$ds.'tag.php', |
|
104 | 104 | ); |
105 | 105 | |
106 | 106 | $this->setupSchema( $files ); |
107 | 107 | |
108 | 108 | $files = array( |
109 | - 'db-product' => 'default' . $ds . 'schema' . $ds . 'index.php', |
|
109 | + 'db-product' => 'default'.$ds.'schema'.$ds.'index.php', |
|
110 | 110 | ); |
111 | 111 | |
112 | 112 | $this->setupSchema( $files ); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | foreach( $this->getSetupPaths() as $abspath ) |
129 | 129 | { |
130 | - $filepath = $abspath . DIRECTORY_SEPARATOR . $relpath; |
|
130 | + $filepath = $abspath.DIRECTORY_SEPARATOR.$relpath; |
|
131 | 131 | |
132 | 132 | if( !file_exists( $filepath ) ) { |
133 | 133 | continue; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | { |
166 | 166 | foreach( $files as $rname => $relpath ) |
167 | 167 | { |
168 | - $this->msg( 'Using schema from ' . basename( $relpath ), 1 ); $this->status( '' ); |
|
168 | + $this->msg( 'Using schema from '.basename( $relpath ), 1 ); $this->status( '' ); |
|
169 | 169 | |
170 | 170 | $dbal = $this->getConnection( $rname )->getRawObject(); |
171 | 171 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | { |
224 | 224 | foreach( $files as $rname => $filepath ) |
225 | 225 | { |
226 | - $this->msg( 'Using tables from ' . basename( $filepath ), 1 ); $this->status( '' ); |
|
226 | + $this->msg( 'Using tables from '.basename( $filepath ), 1 ); $this->status( '' ); |
|
227 | 227 | |
228 | 228 | if( ( $content = file_get_contents( $filepath ) ) === false ) { |
229 | 229 | throw new \Aimeos\MW\Setup\Exception( sprintf( 'Unable to get content from file "%1$s"', $filepath ) ); |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | { |
271 | 271 | foreach( $this->getSetupPaths() as $abspath ) |
272 | 272 | { |
273 | - $filepath = $abspath . DIRECTORY_SEPARATOR . $relpath; |
|
273 | + $filepath = $abspath.DIRECTORY_SEPARATOR.$relpath; |
|
274 | 274 | |
275 | 275 | if( !file_exists( $filepath ) ) { |
276 | 276 | continue; |
@@ -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 |
@@ -8,7 +8,8 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_product_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_product_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
12 | + { |
|
12 | 13 | |
13 | 14 | $table = $schema->createTable( 'mshop_product_type' ); |
14 | 15 | |
@@ -31,7 +32,8 @@ discard block |
||
31 | 32 | return $schema; |
32 | 33 | }, |
33 | 34 | |
34 | - 'mshop_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
35 | + 'mshop_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
36 | + { |
|
35 | 37 | |
36 | 38 | $table = $schema->createTable( 'mshop_product' ); |
37 | 39 | |
@@ -63,7 +65,8 @@ discard block |
||
63 | 65 | return $schema; |
64 | 66 | }, |
65 | 67 | |
66 | - 'mshop_product_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
68 | + 'mshop_product_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
69 | + { |
|
67 | 70 | |
68 | 71 | $table = $schema->createTable( 'mshop_product_list_type' ); |
69 | 72 | |
@@ -86,7 +89,8 @@ discard block |
||
86 | 89 | return $schema; |
87 | 90 | }, |
88 | 91 | |
89 | - 'mshop_product_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
92 | + 'mshop_product_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
93 | + { |
|
90 | 94 | |
91 | 95 | $table = $schema->createTable( 'mshop_product_list' ); |
92 | 96 | |
@@ -124,7 +128,8 @@ discard block |
||
124 | 128 | return $schema; |
125 | 129 | }, |
126 | 130 | |
127 | - 'mshop_product_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
131 | + 'mshop_product_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
132 | + { |
|
128 | 133 | |
129 | 134 | $table = $schema->createTable( 'mshop_product_property_type' ); |
130 | 135 | |
@@ -147,7 +152,8 @@ discard block |
||
147 | 152 | return $schema; |
148 | 153 | }, |
149 | 154 | |
150 | - 'mshop_product_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
155 | + 'mshop_product_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) |
|
156 | + { |
|
151 | 157 | |
152 | 158 | $table = $schema->createTable( 'mshop_product_property' ); |
153 | 159 |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | return array( |
10 | 10 | 'table' => array( |
11 | - 'mshop_product_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
11 | + 'mshop_product_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
12 | 12 | |
13 | 13 | $table = $schema->createTable( 'mshop_product_type' ); |
14 | 14 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return $schema; |
32 | 32 | }, |
33 | 33 | |
34 | - 'mshop_product' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
34 | + 'mshop_product' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
35 | 35 | |
36 | 36 | $table = $schema->createTable( 'mshop_product' ); |
37 | 37 | |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | $table->addColumn( 'status', 'smallint', [] ); |
47 | 47 | $table->addColumn( 'mtime', 'datetime', [] ); |
48 | 48 | $table->addColumn( 'ctime', 'datetime', [] ); |
49 | - $table->addColumn( 'editor', 'string', array('length' => 255 ) ); |
|
50 | - $table->addColumn( 'target', 'string', array('length' => 255 ) ); |
|
49 | + $table->addColumn( 'editor', 'string', array( 'length' => 255 ) ); |
|
50 | + $table->addColumn( 'target', 'string', array( 'length' => 255 ) ); |
|
51 | 51 | |
52 | 52 | $table->setPrimaryKey( array( 'id' ), 'pk_mspro_id' ); |
53 | 53 | $table->addUniqueIndex( array( 'siteid', 'code' ), 'unq_mspro_siteid_code' ); |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | return $schema; |
65 | 65 | }, |
66 | 66 | |
67 | - 'mshop_product_list_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
67 | + 'mshop_product_list_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
68 | 68 | |
69 | 69 | $table = $schema->createTable( 'mshop_product_list_type' ); |
70 | 70 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | return $schema; |
88 | 88 | }, |
89 | 89 | |
90 | - 'mshop_product_list' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
90 | + 'mshop_product_list' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
91 | 91 | |
92 | 92 | $table = $schema->createTable( 'mshop_product_list' ); |
93 | 93 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | return $schema; |
126 | 126 | }, |
127 | 127 | |
128 | - 'mshop_product_property_type' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
128 | + 'mshop_product_property_type' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
129 | 129 | |
130 | 130 | $table = $schema->createTable( 'mshop_product_property_type' ); |
131 | 131 | |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | return $schema; |
149 | 149 | }, |
150 | 150 | |
151 | - 'mshop_product_property' => function ( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
151 | + 'mshop_product_property' => function( \Doctrine\DBAL\Schema\Schema $schema ) { |
|
152 | 152 | |
153 | 153 | $table = $schema->createTable( 'mshop_product_property' ); |
154 | 154 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } |
82 | 82 | |
83 | 83 | foreach( $this->getStockItems( $productCodes, $stockTypes ) as $stockItem ) { |
84 | - $stockMap[ $stockItem->getProductCode() ][ $stockItem->getType() ] = $stockItem->getStocklevel(); |
|
84 | + $stockMap[$stockItem->getProductCode()][$stockItem->getType()] = $stockItem->getStocklevel(); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | return $this->checkStockLevels( $order, $stockMap ); |
@@ -106,10 +106,10 @@ discard block |
||
106 | 106 | { |
107 | 107 | $stocklevel = 0; |
108 | 108 | |
109 | - if( isset( $stockMap[ $orderProductItem->getProductCode() ] ) |
|
110 | - && array_key_exists( $orderProductItem->getStockType(), $stockMap[ $orderProductItem->getProductCode() ] ) |
|
109 | + if( isset( $stockMap[$orderProductItem->getProductCode()] ) |
|
110 | + && array_key_exists( $orderProductItem->getStockType(), $stockMap[$orderProductItem->getProductCode()] ) |
|
111 | 111 | ) { |
112 | - $stocklevel = $stockMap[ $orderProductItem->getProductCode() ][ $orderProductItem->getStockType() ]; |
|
112 | + $stocklevel = $stockMap[$orderProductItem->getProductCode()][$orderProductItem->getStockType()]; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | if( $stocklevel === null || $stocklevel >= $orderProductItem->getQuantity() ) { |
@@ -552,8 +552,8 @@ discard block |
||
552 | 552 | |
553 | 553 | while( ( $row = $results->fetch() ) !== false ) |
554 | 554 | { |
555 | - $map[ $row['stock.id'] ] = $row; |
|
556 | - $typeIds[ $row['stock.typeid'] ] = null; |
|
555 | + $map[$row['stock.id']] = $row; |
|
556 | + $typeIds[$row['stock.typeid']] = null; |
|
557 | 557 | } |
558 | 558 | |
559 | 559 | $dbm->release( $conn, $dbname ); |
@@ -576,9 +576,9 @@ discard block |
||
576 | 576 | |
577 | 577 | foreach( $map as $id => $row ) |
578 | 578 | { |
579 | - if( isset( $typeItems[ $row['stock.typeid'] ] ) ) |
|
579 | + if( isset( $typeItems[$row['stock.typeid']] ) ) |
|
580 | 580 | { |
581 | - $row['stock.type'] = $typeItems[ $row['stock.typeid'] ]->getCode(); |
|
581 | + $row['stock.type'] = $typeItems[$row['stock.typeid']]->getCode(); |
|
582 | 582 | $row['stock.typename'] = $typeItems[$row['stock.typeid']]->getName(); |
583 | 583 | } |
584 | 584 |
@@ -200,8 +200,7 @@ |
||
200 | 200 | * @see mshop/stock/manager/standard/stocklevel |
201 | 201 | */ |
202 | 202 | $path = 'mshop/stock/manager/standard/insert'; |
203 | - } |
|
204 | - else |
|
203 | + } else |
|
205 | 204 | { |
206 | 205 | /** mshop/stock/manager/standard/update/mysql |
207 | 206 | * Updates an existing product stock record in the database |
@@ -435,6 +435,7 @@ |
||
435 | 435 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
436 | 436 | * @param string[] $ref List of domains to fetch list items and referenced items for |
437 | 437 | * @param integer|null &$total Number of items that are available in total |
438 | + * @param integer $total |
|
438 | 439 | * @return array List of stock items implementing \Aimeos\MShop\Stock\Item\Iface |
439 | 440 | */ |
440 | 441 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |