@@ -210,8 +210,7 @@ |
||
210 | 210 | * @see mshop/text/manager/standard/count/ansi |
211 | 211 | */ |
212 | 212 | $path = 'mshop/text/manager/standard/insert'; |
213 | - } |
|
214 | - else |
|
213 | + } else |
|
215 | 214 | { |
216 | 215 | /** mshop/text/manager/standard/update/mysql |
217 | 216 | * Updates an existing text record in the database |
@@ -159,7 +159,7 @@ |
||
159 | 159 | * |
160 | 160 | * @param \Aimeos\MShop\Text\Item\Iface $item Text item which should be saved |
161 | 161 | * @param boolean $fetch True if the new ID should be returned in the item |
162 | - * @return \Aimeos\MShop\Common\Item\Iface $item Updated item including the generated ID |
|
162 | + * @return \Aimeos\MShop\Common\Item\ListRef\Iface $item Updated item including the generated ID |
|
163 | 163 | */ |
164 | 164 | public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true ) |
165 | 165 | { |
@@ -64,8 +64,7 @@ |
||
64 | 64 | { |
65 | 65 | $copy->setId( null ); |
66 | 66 | $copy->setRefId( $id ); |
67 | - } |
|
68 | - else |
|
67 | + } else |
|
69 | 68 | { |
70 | 69 | $copy = $listItems[$listRef[$id]]; |
71 | 70 | $ids[] = $listRef[$id]; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function updateListItems( \Aimeos\MShop\Common\Item\ListRef\Iface $item, array $map, $domain, $type ) |
36 | 36 | { |
37 | - $listManager = $this->getObject()->getSubManager( 'lists' ); |
|
37 | + $listManager = $this->getObject()->getSubManager( 'lists' ); |
|
38 | 38 | |
39 | 39 | if( !isset( $this->typeIds[$domain][$type] ) ) |
40 | 40 | { |
@@ -161,10 +161,10 @@ discard block |
||
161 | 161 | |
162 | 162 | $search = $manager->createSearch(); |
163 | 163 | |
164 | - $expr = [ $search->compare( '==', $prefix . '.lists.parentid', $ids ) ]; |
|
164 | + $expr = [$search->compare( '==', $prefix.'.lists.parentid', $ids )]; |
|
165 | 165 | |
166 | 166 | if( $domains !== null ) { |
167 | - $expr[] = $search->compare( '==', $prefix . '.lists.domain', $domains ); |
|
167 | + $expr[] = $search->compare( '==', $prefix.'.lists.domain', $domains ); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | $search->setConditions( $search->combine( '&&', $expr ) ); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | $manager = \Aimeos\MShop\Factory::createManager( $context, $domain ); |
193 | 193 | |
194 | 194 | $search = $manager->createSearch(); |
195 | - $search->setConditions( $search->compare( '==', str_replace( '/', '.', $domain ) . '.id', array_keys( $list ) ) ); |
|
195 | + $search->setConditions( $search->compare( '==', str_replace( '/', '.', $domain ).'.id', array_keys( $list ) ) ); |
|
196 | 196 | $search->setSlice( 0, 0x7fffffff ); |
197 | 197 | |
198 | 198 | foreach( $manager->searchItems( $search ) as $id => $item ) |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | { |
225 | 225 | $rmListIds = $rmIds = []; |
226 | 226 | $context = $this->getContext(); |
227 | - $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain . '/lists' ); |
|
227 | + $listManager = \Aimeos\MShop\Factory::createManager( $context, $domain.'/lists' ); |
|
228 | 228 | |
229 | 229 | foreach( $item->getDeletedItems() as $listItem ) |
230 | 230 | { |
@@ -163,8 +163,8 @@ discard block |
||
163 | 163 | */ |
164 | 164 | public function createItem() |
165 | 165 | { |
166 | - $values = array('supplier.siteid' => $this->getContext()->getLocale()->getSiteId()); |
|
167 | - return $this->createItemBase($values); |
|
166 | + $values = array( 'supplier.siteid' => $this->getContext()->getLocale()->getSiteId() ); |
|
167 | + return $this->createItemBase( $values ); |
|
168 | 168 | } |
169 | 169 | |
170 | 170 | |
@@ -542,7 +542,7 @@ discard block |
||
542 | 542 | * @see mshop/supplier/manager/standard/delete/ansi |
543 | 543 | * @see mshop/supplier/manager/standard/search/ansi |
544 | 544 | */ |
545 | - $cfgPathCount = 'mshop/supplier/manager/standard/count'; |
|
545 | + $cfgPathCount = 'mshop/supplier/manager/standard/count'; |
|
546 | 546 | |
547 | 547 | $results = $this->searchItemsBase( $conn, $search, $cfgPathSearch, $cfgPathCount, $required, $total, $level ); |
548 | 548 | while( ( $row = $results->fetch() ) !== false ) { |
@@ -581,10 +581,10 @@ discard block |
||
581 | 581 | * @param boolean $default |
582 | 582 | * @return \Aimeos\MW\Criteria\Iface |
583 | 583 | */ |
584 | - public function createSearch($default = false) |
|
584 | + public function createSearch( $default = false ) |
|
585 | 585 | { |
586 | - if ($default) { |
|
587 | - return $this->createSearchBase('supplier'); |
|
586 | + if( $default ) { |
|
587 | + return $this->createSearchBase( 'supplier' ); |
|
588 | 588 | } |
589 | 589 | |
590 | 590 | return parent::createSearch(); |
@@ -303,8 +303,7 @@ |
||
303 | 303 | * @see mshop/supplier/manager/standard/count/ansi |
304 | 304 | */ |
305 | 305 | $path = 'mshop/supplier/manager/standard/insert'; |
306 | - } |
|
307 | - else |
|
306 | + } else |
|
308 | 307 | { |
309 | 308 | /** mshop/supplier/manager/standard/update/mysql |
310 | 309 | * Updates an existing supplier record in the database |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | * |
251 | 251 | * @param \Aimeos\MShop\Supplier\Item\Iface $item Supplier item object |
252 | 252 | * @param boolean $fetch True if the new ID should be returned in the item |
253 | - * @return \Aimeos\MShop\Common\Item\Iface $item Updated item including the generated ID |
|
253 | + * @return \Aimeos\MShop\Common\Item\ListRef\Iface $item Updated item including the generated ID |
|
254 | 254 | */ |
255 | 255 | public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true ) |
256 | 256 | { |
@@ -428,6 +428,7 @@ discard block |
||
428 | 428 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
429 | 429 | * @param string[] $ref List of domains to fetch list items and referenced items for |
430 | 430 | * @param integer|null &$total Number of items that are available in total |
431 | + * @param integer $total |
|
431 | 432 | * @return array List of supplier items implementing \Aimeos\MShop\Supplier\Item\Iface |
432 | 433 | */ |
433 | 434 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |
@@ -657,7 +658,6 @@ discard block |
||
657 | 658 | /** |
658 | 659 | * Returns the address items for the given supplier IDs |
659 | 660 | * |
660 | - * @param array $prodIds List of supplier IDs |
|
661 | 661 | * @return array Associative list of supplier IDs / address IDs as keys and items implementing |
662 | 662 | * \Aimeos\MShop\Common\Item\Address\Iface as values |
663 | 663 | */ |
@@ -289,8 +289,7 @@ |
||
289 | 289 | * @see mshop/customer/manager/group/standard/count/ansi |
290 | 290 | */ |
291 | 291 | $path = 'mshop/customer/manager/group/standard/insert'; |
292 | - } |
|
293 | - else |
|
292 | + } else |
|
294 | 293 | { |
295 | 294 | /** mshop/customer/manager/group/standard/update/mysql |
296 | 295 | * Updates an existing customer group record in the database |
@@ -403,6 +403,7 @@ |
||
403 | 403 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
404 | 404 | * @param string[] $ref List of domains to fetch list items and referenced items for |
405 | 405 | * @param integer|null &$total Number of items that are available in total |
406 | + * @param integer $total |
|
406 | 407 | * @return array List of items implementing \Aimeos\MShop\Customer\Item\Group\Iface |
407 | 408 | */ |
408 | 409 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |
@@ -418,8 +418,7 @@ |
||
418 | 418 | * @see mshop/customer/manager/standard/count/ansi |
419 | 419 | */ |
420 | 420 | $path = 'mshop/customer/manager/standard/insert'; |
421 | - } |
|
422 | - else |
|
421 | + } else |
|
423 | 422 | { |
424 | 423 | /** mshop/customer/manager/standard/update/mysql |
425 | 424 | * Updates an existing customer record in the database |
@@ -366,7 +366,7 @@ discard block |
||
366 | 366 | * |
367 | 367 | * @param \Aimeos\MShop\Customer\Item\Iface $item Customer item object |
368 | 368 | * @param boolean $fetch True if the new ID should be returned in the item |
369 | - * @return \Aimeos\MShop\Common\Item\Iface $item Updated item including the generated ID |
|
369 | + * @return \Aimeos\MShop\Common\Item\ListRef\Iface $item Updated item including the generated ID |
|
370 | 370 | */ |
371 | 371 | public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true ) |
372 | 372 | { |
@@ -571,6 +571,7 @@ discard block |
||
571 | 571 | * @param \Aimeos\MW\Criteria\Iface $search Search criteria object |
572 | 572 | * @param string[] $ref List of domains to fetch list items and referenced items for |
573 | 573 | * @param integer|null &$total Number of items that are available in total |
574 | + * @param integer $total |
|
574 | 575 | * @return array Associative list of IDs as keys and items implementing \Aimeos\MShop\Customer\Item\Iface as values |
575 | 576 | */ |
576 | 577 | public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null ) |
@@ -360,8 +360,7 @@ |
||
360 | 360 | * @see mshop/price/manager/standard/count/ansi |
361 | 361 | */ |
362 | 362 | $path = 'mshop/price/manager/standard/insert'; |
363 | - } |
|
364 | - else |
|
363 | + } else |
|
365 | 364 | { |
366 | 365 | /** mshop/price/manager/standard/update/mysql |
367 | 366 | * Updates an existing price record in the database |
@@ -305,7 +305,7 @@ |
||
305 | 305 | * |
306 | 306 | * @param \Aimeos\MShop\Price\Item\Iface $item Price item object |
307 | 307 | * @param boolean $fetch True if the new ID should be returned in the item |
308 | - * @return \Aimeos\MShop\Common\Item\Iface $item Updated item including the generated ID |
|
308 | + * @return \Aimeos\MShop\Common\Item\ListRef\Iface $item Updated item including the generated ID |
|
309 | 309 | * @throws \Aimeos\MShop\Price\Exception If price couldn't be saved |
310 | 310 | */ |
311 | 311 | public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true ) |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * |
163 | 163 | * @param boolean $flag True if tax is included in the price value, costs and rebate, false if not |
164 | 164 | * @return \Aimeos\MShop\Price\Item\Iface Price item for chaining method calls |
165 | - */ |
|
165 | + */ |
|
166 | 166 | public function setTaxFlag( $flag ); |
167 | 167 | |
168 | 168 | /** |
@@ -268,8 +268,7 @@ |
||
268 | 268 | * @see mshop/coupon/manager/standard/count/ansi |
269 | 269 | */ |
270 | 270 | $path = 'mshop/coupon/manager/standard/insert'; |
271 | - } |
|
272 | - else |
|
271 | + } else |
|
273 | 272 | { |
274 | 273 | /** mshop/coupon/manager/standard/update/mysql |
275 | 274 | * Updates an existing coupon record in the database |
@@ -289,8 +289,7 @@ |
||
289 | 289 | * @see mshop/attribute/manager/standard/count/ansi |
290 | 290 | */ |
291 | 291 | $path = 'mshop/attribute/manager/standard/insert'; |
292 | - } |
|
293 | - else |
|
292 | + } else |
|
294 | 293 | { |
295 | 294 | /** mshop/attribute/manager/standard/update/mysql |
296 | 295 | * Updates an existing attribute record in the database |
@@ -236,7 +236,7 @@ |
||
236 | 236 | * |
237 | 237 | * @param \Aimeos\MShop\Common\Item\Iface $item Attribute item |
238 | 238 | * @param boolean $fetch True if the new ID should be returned in the item |
239 | - * @return \Aimeos\MShop\Common\Item\Iface $item Updated item including the generated ID |
|
239 | + * @return \Aimeos\MShop\Common\Item\ListRef\Iface $item Updated item including the generated ID |
|
240 | 240 | * @throws \Aimeos\MShop\Attribute\Exception If Attribute couldn't be saved |
241 | 241 | */ |
242 | 242 | public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true ) |