@@ -579,7 +579,7 @@ |
||
579 | 579 | * @see mshop/order/manager/status/decorators/global |
580 | 580 | */ |
581 | 581 | |
582 | - return $this->getSubManagerBase( 'order', 'status/' . $manager, $name ); |
|
582 | + return $this->getSubManagerBase( 'order', 'status/'.$manager, $name ); |
|
583 | 583 | } |
584 | 584 | |
585 | 585 |
@@ -251,8 +251,7 @@ |
||
251 | 251 | * @see mshop/order/manager/status/standard/count/ansi |
252 | 252 | */ |
253 | 253 | $path = 'mshop/order/manager/status/standard/insert'; |
254 | - } |
|
255 | - else |
|
254 | + } else |
|
256 | 255 | { |
257 | 256 | /** mshop/order/manager/status/standard/update/mysql |
258 | 257 | * Updates an existing order record in the database |
@@ -590,6 +590,7 @@ |
||
590 | 590 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
591 | 591 | * @param string[] $ref List of domains to fetch list items and referenced items for |
592 | 592 | * @param integer|null &$total Number of items that are available in total |
593 | + * @param integer $total |
|
593 | 594 | * @return array List of items implementing \Aimeos\MShop\Order\Item\Status\Iface |
594 | 595 | */ |
595 | 596 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |
@@ -605,7 +605,7 @@ |
||
605 | 605 | * @see mshop/order/manager/base/product/attribute/decorators/global |
606 | 606 | */ |
607 | 607 | |
608 | - return $this->getSubManagerBase( 'order', 'base/product/attribute/' . $manager, $name ); |
|
608 | + return $this->getSubManagerBase( 'order', 'base/product/attribute/'.$manager, $name ); |
|
609 | 609 | } |
610 | 610 | |
611 | 611 |
@@ -290,8 +290,7 @@ |
||
290 | 290 | * @see mshop/order/manager/base/product/attribute/standard/count/ansi |
291 | 291 | */ |
292 | 292 | $path = 'mshop/order/manager/base/product/attribute/standard/insert'; |
293 | - } |
|
294 | - else |
|
293 | + } else |
|
295 | 294 | { |
296 | 295 | /** mshop/order/manager/base/product/attribute/standard/update/mysql |
297 | 296 | * Updates an existing order record in the database |
@@ -730,7 +730,7 @@ |
||
730 | 730 | * @see mshop/order/manager/base/product/decorators/global |
731 | 731 | */ |
732 | 732 | |
733 | - return $this->getSubManagerBase( 'order', 'base/product/' . $manager, $name ); |
|
733 | + return $this->getSubManagerBase( 'order', 'base/product/'.$manager, $name ); |
|
734 | 734 | } |
735 | 735 | |
736 | 736 |
@@ -402,8 +402,7 @@ |
||
402 | 402 | * @see mshop/order/manager/base/product/standard/count/ansi |
403 | 403 | */ |
404 | 404 | $path = 'mshop/order/manager/base/product/standard/insert'; |
405 | - } |
|
406 | - else |
|
405 | + } else |
|
407 | 406 | { |
408 | 407 | /** mshop/order/manager/base/product/standard/update/mysql |
409 | 408 | * Updates an existing order record in the database |
@@ -770,7 +770,7 @@ |
||
770 | 770 | * @see mshop/order/manager/base/service/attribute/decorators/global |
771 | 771 | */ |
772 | 772 | |
773 | - return $this->getSubManagerBase( 'order', 'base/service/attribute/' . $manager, $name ); |
|
773 | + return $this->getSubManagerBase( 'order', 'base/service/attribute/'.$manager, $name ); |
|
774 | 774 | } |
775 | 775 | |
776 | 776 |
@@ -289,8 +289,7 @@ |
||
289 | 289 | * @see mshop/order/manager/base/service/attribute/standard/count/ansi |
290 | 290 | */ |
291 | 291 | $path = 'mshop/order/manager/base/service/attribute/standard/insert'; |
292 | - } |
|
293 | - else |
|
292 | + } else |
|
294 | 293 | { |
295 | 294 | /** mshop/order/manager/base/service/attribute/standard/update/mysql |
296 | 295 | * Updates an existing order record in the database |
@@ -493,6 +493,7 @@ |
||
493 | 493 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
494 | 494 | * @param string[] $ref List of domains to fetch list items and referenced items for |
495 | 495 | * @param integer|null &$total Number of items that are available in total |
496 | + * @param integer $total |
|
496 | 497 | * @return array List of items implementing \Aimeos\MShop\Order\Item\Base\Service\Attribute\Iface |
497 | 498 | */ |
498 | 499 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |
@@ -372,7 +372,7 @@ discard block |
||
372 | 372 | $stmt->bind( 11, $price->getTaxValue() ); |
373 | 373 | $stmt->bind( 12, $price->getTaxRate() ); |
374 | 374 | $stmt->bind( 13, $price->getTaxFlag(), \Aimeos\MW\DB\Statement\Base::PARAM_INT ); |
375 | - $stmt->bind( 14, $date); // mtime |
|
375 | + $stmt->bind( 14, $date ); // mtime |
|
376 | 376 | $stmt->bind( 15, $context->getEditor() ); |
377 | 377 | |
378 | 378 | if( $id !== null ) { |
@@ -838,7 +838,7 @@ discard block |
||
838 | 838 | * @see mshop/order/manager/base/service/decorators/global |
839 | 839 | */ |
840 | 840 | |
841 | - return $this->getSubManagerBase( 'order', 'base/service/' . $manager, $name ); |
|
841 | + return $this->getSubManagerBase( 'order', 'base/service/'.$manager, $name ); |
|
842 | 842 | } |
843 | 843 | |
844 | 844 |
@@ -320,8 +320,7 @@ |
||
320 | 320 | * @see mshop/order/manager/base/service/standard/count/ansi |
321 | 321 | */ |
322 | 322 | $path = 'mshop/order/manager/base/service/standard/insert'; |
323 | - } |
|
324 | - else |
|
323 | + } else |
|
325 | 324 | { |
326 | 325 | /** mshop/order/manager/base/service/standard/update/mysql |
327 | 326 | * Updates an existing order record in the database |
@@ -895,7 +895,7 @@ |
||
895 | 895 | * @see mshop/order/manager/base/address/decorators/global |
896 | 896 | */ |
897 | 897 | |
898 | - return $this->getSubManagerBase( 'order', 'base/address/' . $manager, $name ); |
|
898 | + return $this->getSubManagerBase( 'order', 'base/address/'.$manager, $name ); |
|
899 | 899 | } |
900 | 900 | |
901 | 901 |
@@ -400,8 +400,7 @@ |
||
400 | 400 | * @see mshop/order/manager/base/address/standard/count/ansi |
401 | 401 | */ |
402 | 402 | $path = 'mshop/order/manager/base/address/standard/insert'; |
403 | - } |
|
404 | - else |
|
403 | + } else |
|
405 | 404 | { |
406 | 405 | /** mshop/order/manager/base/address/standard/update/mysql |
407 | 406 | * Updates an existing order record in the database |
@@ -741,7 +741,7 @@ |
||
741 | 741 | * @see mshop/order/manager/base/coupon/decorators/global |
742 | 742 | */ |
743 | 743 | |
744 | - return $this->getSubManagerBase( 'order', 'base/coupon/' . $manager, $name ); |
|
744 | + return $this->getSubManagerBase( 'order', 'base/coupon/'.$manager, $name ); |
|
745 | 745 | } |
746 | 746 | |
747 | 747 |
@@ -268,8 +268,7 @@ |
||
268 | 268 | * @see mshop/order/manager/base/coupon/standard/count/ansi |
269 | 269 | */ |
270 | 270 | $path = 'mshop/order/manager/base/coupon/standard/insert'; |
271 | - } |
|
272 | - else |
|
271 | + } else |
|
273 | 272 | { |
274 | 273 | /** mshop/order/manager/base/coupon/standard/update/mysql |
275 | 274 | * Updates an existing order record in the database |
@@ -470,6 +470,7 @@ |
||
470 | 470 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
471 | 471 | * @param string[] $ref List of domains to fetch list items and referenced items for |
472 | 472 | * @param integer|null &$total Number of items that are available in total |
473 | + * @param integer $total |
|
473 | 474 | * @return array Return a list of items implementing \Aimeos\MShop\Order\Item\Base\Coupon\Iface |
474 | 475 | */ |
475 | 476 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | */ |
47 | 47 | public function getParentId() |
48 | 48 | { |
49 | - if( isset( $this->values[$this->prefix . 'parentid'] ) ) { |
|
50 | - return (string) $this->values[$this->prefix . 'parentid']; |
|
49 | + if( isset( $this->values[$this->prefix.'parentid'] ) ) { |
|
50 | + return (string) $this->values[$this->prefix.'parentid']; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | return ''; |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | { |
65 | 65 | if( $parentid == $this->getParentId() ) { return $this; } |
66 | 66 | |
67 | - $this->values[$this->prefix . 'parentid'] = (string) $parentid; |
|
67 | + $this->values[$this->prefix.'parentid'] = (string) $parentid; |
|
68 | 68 | $this->setModified(); |
69 | 69 | |
70 | 70 | return $this; |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function getPosition() |
80 | 80 | { |
81 | - if( isset( $this->values[$this->prefix . 'position'] ) ) { |
|
82 | - return (int) $this->values[$this->prefix . 'position']; |
|
81 | + if( isset( $this->values[$this->prefix.'position'] ) ) { |
|
82 | + return (int) $this->values[$this->prefix.'position']; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | return 0; |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | { |
97 | 97 | if( $position == $this->getPosition() ) { return $this; } |
98 | 98 | |
99 | - $this->values[$this->prefix . 'position'] = (int) $position; |
|
99 | + $this->values[$this->prefix.'position'] = (int) $position; |
|
100 | 100 | $this->setModified(); |
101 | 101 | |
102 | 102 | return $this; |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | { |
119 | 119 | switch( $key ) |
120 | 120 | { |
121 | - case $this->prefix . 'parentid': $this->setParentId( $value ); break; |
|
122 | - case $this->prefix . 'position': $this->setPosition( $value ); break; |
|
121 | + case $this->prefix.'parentid': $this->setParentId( $value ); break; |
|
122 | + case $this->prefix.'position': $this->setPosition( $value ); break; |
|
123 | 123 | default: $unknown[$key] = $value; |
124 | 124 | } |
125 | 125 | } |
@@ -137,8 +137,8 @@ discard block |
||
137 | 137 | { |
138 | 138 | $properties = parent::toArray(); |
139 | 139 | |
140 | - $properties[$this->prefix . 'parentid'] = $this->getParentId(); |
|
141 | - $properties[$this->prefix . 'position'] = $this->getPosition(); |
|
140 | + $properties[$this->prefix.'parentid'] = $this->getParentId(); |
|
141 | + $properties[$this->prefix.'position'] = $this->getPosition(); |
|
142 | 142 | |
143 | 143 | return $properties; |
144 | 144 | } |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | return (string) $this->values['id']; |
49 | 49 | } |
50 | 50 | |
51 | - $key = $this->prefix . 'id'; |
|
51 | + $key = $this->prefix.'id'; |
|
52 | 52 | return ( isset( $this->values[$key] ) && $this->values[$key] != '' ? (string) $this->values[$key] : null ); |
53 | 53 | } |
54 | 54 | |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function setId( $id ) |
63 | 63 | { |
64 | - $key = $this->prefix . 'id'; |
|
64 | + $key = $this->prefix.'id'; |
|
65 | 65 | |
66 | 66 | if( ( $this->values[$key] = \Aimeos\MShop\Common\Item\Base::checkId( $this->getId(), $id ) ) === null ) { |
67 | 67 | $this->modified = true; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return (int) $this->values['siteid']; |
86 | 86 | } |
87 | 87 | |
88 | - $key = $this->prefix . 'siteid'; |
|
88 | + $key = $this->prefix.'siteid'; |
|
89 | 89 | return ( isset( $this->values[$key] ) ? (int) $this->values[$key] : null ); |
90 | 90 | } |
91 | 91 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | return (string) $this->values['mtime']; |
102 | 102 | } |
103 | 103 | |
104 | - $key = $this->prefix . 'mtime'; |
|
104 | + $key = $this->prefix.'mtime'; |
|
105 | 105 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : null ); |
106 | 106 | } |
107 | 107 | |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | return (string) $this->values['ctime']; |
118 | 118 | } |
119 | 119 | |
120 | - $key = $this->prefix . 'ctime'; |
|
120 | + $key = $this->prefix.'ctime'; |
|
121 | 121 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : null ); |
122 | 122 | } |
123 | 123 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | return (string) $this->values['editor']; |
134 | 134 | } |
135 | 135 | |
136 | - $key = $this->prefix . 'editor'; |
|
136 | + $key = $this->prefix.'editor'; |
|
137 | 137 | return ( isset( $this->values[$key] ) ? (string) $this->values[$key] : '' ); |
138 | 138 | } |
139 | 139 | |
@@ -166,16 +166,16 @@ discard block |
||
166 | 166 | */ |
167 | 167 | public function fromArray( array $list ) |
168 | 168 | { |
169 | - if( array_key_exists( $this->prefix . 'id', $list ) ) |
|
169 | + if( array_key_exists( $this->prefix.'id', $list ) ) |
|
170 | 170 | { |
171 | - $this->setId( $list[$this->prefix . 'id'] ); |
|
172 | - unset( $list[$this->prefix . 'id'] ); |
|
171 | + $this->setId( $list[$this->prefix.'id'] ); |
|
172 | + unset( $list[$this->prefix.'id'] ); |
|
173 | 173 | } |
174 | 174 | |
175 | - unset( $list[$this->prefix . 'siteid'] ); |
|
176 | - unset( $list[$this->prefix . 'ctime'] ); |
|
177 | - unset( $list[$this->prefix . 'mtime'] ); |
|
178 | - unset( $list[$this->prefix . 'editor'] ); |
|
175 | + unset( $list[$this->prefix.'siteid'] ); |
|
176 | + unset( $list[$this->prefix.'ctime'] ); |
|
177 | + unset( $list[$this->prefix.'mtime'] ); |
|
178 | + unset( $list[$this->prefix.'editor'] ); |
|
179 | 179 | |
180 | 180 | return $list; |
181 | 181 | } |
@@ -189,11 +189,11 @@ discard block |
||
189 | 189 | public function toArray() |
190 | 190 | { |
191 | 191 | return array( |
192 | - $this->prefix . 'id' => $this->getId(), |
|
193 | - $this->prefix . 'siteid' => $this->getSiteId(), |
|
194 | - $this->prefix . 'ctime' => $this->getTimeCreated(), |
|
195 | - $this->prefix . 'mtime' => $this->getTimeModified(), |
|
196 | - $this->prefix . 'editor' => $this->getEditor(), |
|
192 | + $this->prefix.'id' => $this->getId(), |
|
193 | + $this->prefix.'siteid' => $this->getSiteId(), |
|
194 | + $this->prefix.'ctime' => $this->getTimeCreated(), |
|
195 | + $this->prefix.'mtime' => $this->getTimeModified(), |
|
196 | + $this->prefix.'editor' => $this->getEditor(), |
|
197 | 197 | ); |
198 | 198 | } |
199 | 199 |