@@ -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] ); |
@@ -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' ); |
@@ -374,7 +374,7 @@ |
||
| 374 | 374 | $baseManager = \Aimeos\MShop::create( $this->context, 'order/base' ); |
| 375 | 375 | |
| 376 | 376 | $search = $baseManager->createSearch(); |
| 377 | - $search->setConditions( $search->compare( '==', 'order.base.price', '672.00') ); |
|
| 377 | + $search->setConditions( $search->compare( '==', 'order.base.price', '672.00' ) ); |
|
| 378 | 378 | |
| 379 | 379 | $items = $baseManager->searchItems( $search ); |
| 380 | 380 | |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | else |
| 88 | 88 | { |
| 89 | 89 | $total = 0; |
| 90 | - $items = $cntl->slice( $view->param( 'page/offset', 0), $view->param( 'page/limit', 25 ) ) |
|
| 90 | + $items = $cntl->slice( $view->param( 'page/offset', 0 ), $view->param( 'page/limit', 25 ) ) |
|
| 91 | 91 | ->sort( $view->param( 'sort' ) )->parse( $view->param( 'filter', [] ) )->search( $total ); |
| 92 | 92 | |
| 93 | 93 | $view->items = $items; |
@@ -425,7 +425,7 @@ |
||
| 425 | 425 | $baseManager = \Aimeos\MShop::create( $this->context, 'order/base' ); |
| 426 | 426 | |
| 427 | 427 | $search = $baseManager->createSearch(); |
| 428 | - $search->setConditions( $search->compare( '==', 'order.base.price', '672.00') ); |
|
| 428 | + $search->setConditions( $search->compare( '==', 'order.base.price', '672.00' ) ); |
|
| 429 | 429 | |
| 430 | 430 | $items = $baseManager->searchItems( $search, ['order/base/product'] ); |
| 431 | 431 | |