@@ -268,7 +268,7 @@ |
||
| 268 | 268 | $baseManager = \Aimeos\MShop\Factory::createManager( $this->context, 'order/base' ); |
| 269 | 269 | |
| 270 | 270 | $search = $baseManager->createSearch(); |
| 271 | - $search->setConditions( $search->compare( '==', 'order.base.price', '672.00') ); |
|
| 271 | + $search->setConditions( $search->compare( '==', 'order.base.price', '672.00' ) ); |
|
| 272 | 272 | |
| 273 | 273 | $items = $baseManager->searchItems( $search ); |
| 274 | 274 | |
@@ -199,6 +199,9 @@ |
||
| 199 | 199 | } |
| 200 | 200 | |
| 201 | 201 | |
| 202 | + /** |
|
| 203 | + * @param string $code |
|
| 204 | + */ |
|
| 202 | 205 | protected function addProduct( $code ) |
| 203 | 206 | { |
| 204 | 207 | $prodId = \Aimeos\MShop\Factory::createManager( $this->context, 'product' )->findItem( $code )->getId(); |
@@ -313,6 +313,9 @@ |
||
| 313 | 313 | } |
| 314 | 314 | |
| 315 | 315 | |
| 316 | + /** |
|
| 317 | + * @param string $name |
|
| 318 | + */ |
|
| 316 | 319 | protected function access( $name ) |
| 317 | 320 | { |
| 318 | 321 | $class = new \ReflectionClass( '\Aimeos\Client\JsonApi\Order\Standard' ); |
@@ -268,7 +268,7 @@ |
||
| 268 | 268 | $baseManager = \Aimeos\MShop\Factory::createManager( $this->context, 'order/base' ); |
| 269 | 269 | |
| 270 | 270 | $search = $baseManager->createSearch(); |
| 271 | - $search->setConditions( $search->compare( '==', 'order.base.price', '672.00') ); |
|
| 271 | + $search->setConditions( $search->compare( '==', 'order.base.price', '672.00' ) ); |
|
| 272 | 272 | |
| 273 | 273 | $items = $baseManager->searchItems( $search ); |
| 274 | 274 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | unset( $attributes['service.config'] ); // don't expose private information |
| 42 | 42 | |
| 43 | 43 | $params = array( 'resource' => $type, 'id' => $id ); |
| 44 | - $basketParams = [ 'resource' => 'basket', 'id' => 'default', 'related' => 'service', 'relatedid' => $item->getType() ]; |
|
| 44 | + $basketParams = ['resource' => 'basket', 'id' => 'default', 'related' => 'service', 'relatedid' => $item->getType()]; |
|
| 45 | 45 | |
| 46 | 46 | if( isset( $fields[$type] ) ) { |
| 47 | 47 | $attributes = array_intersect_key( $attributes, $fields[$type] ); |
@@ -287,7 +287,7 @@ |
||
| 287 | 287 | { |
| 288 | 288 | $total = 0; |
| 289 | 289 | $map = []; |
| 290 | - $direction = '+'; |
|
| 290 | + $direction = '+'; |
|
| 291 | 291 | |
| 292 | 292 | $ref = $view->param( 'include', [] ); |
| 293 | 293 | $size = $view->param( 'page/limit', 48 ); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $first = ( $offset > 0 ? 0 : null ); |
| 24 | 24 | $prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
| 25 | 25 | $next = ( $offset + $limit < $total ? $offset + $limit : null ); |
| 26 | -$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null ); |
|
| 26 | +$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null ); |
|
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | $ref = array( 'resource', 'id', 'related', 'relatedid', 'filter', 'page', 'sort', 'include', 'fields' ); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $first = ( $offset > 0 ? 0 : null ); |
| 90 | 90 | $prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
| 91 | 91 | $next = ( $offset + $limit < $total ? $offset + $limit : null ); |
| 92 | -$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null ); |
|
| 92 | +$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null ); |
|
| 93 | 93 | |
| 94 | 94 | |
| 95 | 95 | $ref = array( 'resource', 'id', 'related', 'relatedid', 'filter', 'page', 'sort', 'include', 'fields' ); |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | $type = $item->getResourceType(); |
| 110 | 110 | |
| 111 | 111 | $params = array( 'resource' => $type, 'id' => $id ); |
| 112 | - $basketParams = [ 'resource' => 'basket', 'id' => 'default', 'related' => 'product' ]; |
|
| 112 | + $basketParams = ['resource' => 'basket', 'id' => 'default', 'related' => 'product']; |
|
| 113 | 113 | |
| 114 | 114 | if( isset( $fields[$type] ) ) { |
| 115 | 115 | $attributes = array_intersect_key( $attributes, $fields[$type] ); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $first = ( $offset > 0 ? 0 : null ); |
| 24 | 24 | $prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
| 25 | 25 | $next = ( $offset + $limit < $total ? $offset + $limit : null ); |
| 26 | -$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null ); |
|
| 26 | +$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null ); |
|
| 27 | 27 | |
| 28 | 28 | |
| 29 | 29 | $ref = array( 'resource', 'id', 'related', 'relatedid', 'filter', 'page', 'sort', 'include', 'fields' ); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $typeManager = \Aimeos\MShop\Factory::createManager( $this->context, 'customer/lists/type' ); |
| 40 | 40 | |
| 41 | 41 | $userId = $custManager->findItem( 'UTC001' )->getId(); |
| 42 | - $typeId = $typeManager->findItem( 'favorite', [], 'product' )->getId();; |
|
| 42 | + $typeId = $typeManager->findItem( 'favorite', [], 'product' )->getId(); ; |
|
| 43 | 43 | |
| 44 | 44 | $this->context->setUserId( $userId ); |
| 45 | 45 | $item = $manager->createItem()->setParentId( $userId ); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | $typeManager = \Aimeos\MShop\Factory::createManager( $this->context, 'customer/lists/type' ); |
| 75 | 75 | |
| 76 | 76 | $userId = $custManager->findItem( 'UTC001' )->getId(); |
| 77 | - $typeId = $typeManager->findItem( 'favorite', [], 'product' )->getId();; |
|
| 77 | + $typeId = $typeManager->findItem( 'favorite', [], 'product' )->getId(); ; |
|
| 78 | 78 | |
| 79 | 79 | $this->context->setUserId( $userId ); |
| 80 | 80 | $item = $manager->createItem()->setParentId( $userId ); |
@@ -270,7 +270,7 @@ discard block |
||
| 270 | 270 | $typeManager = \Aimeos\MShop\Factory::createManager( $this->context, 'customer/lists/type' ); |
| 271 | 271 | |
| 272 | 272 | $userId = $custManager->findItem( 'UTC001' )->getId(); |
| 273 | - $typeId = $typeManager->findItem( 'favorite', [], 'product' )->getId();; |
|
| 273 | + $typeId = $typeManager->findItem( 'favorite', [], 'product' )->getId(); ; |
|
| 274 | 274 | |
| 275 | 275 | $this->context->setUserId( $userId ); |
| 276 | 276 | $item = $manager->createItem()->setParentId( $userId ); |