@@ -115,7 +115,6 @@ |
||
115 | 115 | * |
116 | 116 | * @param \Psr\Http\Message\ServerRequestInterface $request Request object |
117 | 117 | * @param \Psr\Http\Message\ResponseInterface $response Response object |
118 | - * @param string|null $prefix Form parameter prefix when nesting parameters is required |
|
119 | 118 | * @return \Psr\Http\Message\ResponseInterface Modified response object |
120 | 119 | */ |
121 | 120 | public function put( ServerRequestInterface $request, ResponseInterface $response ) |
@@ -40,7 +40,7 @@ |
||
40 | 40 | /** |
41 | 41 | * Adds the decorators to the JSON API client object |
42 | 42 | * |
43 | - * @param \Aimeos\Client\JsonApi\Common\Iface $client Client object |
|
43 | + * @param \Aimeos\Client\JsonApi\Iface $client Client object |
|
44 | 44 | * @param \Aimeos\MShop\Context\Item\Iface $context Context instance with necessary objects |
45 | 45 | * @param \Aimeos\MW\View\Iface $view View object |
46 | 46 | * @param array $templatePaths List of file system paths where the templates are stored |
@@ -296,7 +296,7 @@ |
||
296 | 296 | { |
297 | 297 | $total = 0; |
298 | 298 | $map = array(); |
299 | - $direction = '+'; |
|
299 | + $direction = '+'; |
|
300 | 300 | |
301 | 301 | $ref = $view->param( 'include', array() ); |
302 | 302 | $size = $view->param( 'page/limit', 48 ); |
@@ -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(); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $first = ( $offset > 0 ? 0 : null ); |
34 | 34 | $prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
35 | 35 | $next = ( $offset + $limit < $total ? $offset + $limit : null ); |
36 | -$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null ); |
|
36 | +$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null ); |
|
37 | 37 | |
38 | 38 | |
39 | 39 | $fields = $this->param( 'fields', array() ); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | $first = ( $offset > 0 ? 0 : null ); |
34 | 34 | $prev = ( $offset - $limit >= 0 ? $offset - $limit : null ); |
35 | 35 | $next = ( $offset + $limit < $total ? $offset + $limit : null ); |
36 | -$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null ); |
|
36 | +$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null ); |
|
37 | 37 | |
38 | 38 | |
39 | 39 | $fields = $this->param( 'fields', array() ); |
@@ -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] ); |