Passed
Push — master ( 955296...e8f598 )
by Aimeos
01:53
created
client/jsonapi/tests/Client/JsonApi/Basket/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
client/jsonapi/templates/basket/standard.php 1 patch
Braces   +10 added lines, -12 removed lines patch added patch discarded remove patch
@@ -26,8 +26,7 @@  discard block
 block discarded – undo
26 26
 }
27 27
 
28 28
 
29
-$entryFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config )
30
-{
29
+$entryFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config ) {
31 30
 	$allow = array( 'GET' );
32 31
 	$attributes = $item->toArray();
33 32
 	$params = ['resource' => 'basket', 'id' => $basketId];
@@ -95,8 +94,7 @@  discard block
 block discarded – undo
95 94
 };
96 95
 
97 96
 
98
-$productFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config )
99
-{
97
+$productFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config ) {
100 98
 	$products = [];
101 99
 
102 100
 	foreach( $item->getProducts() as $position => $orderProduct )
@@ -137,8 +135,7 @@  discard block
 block discarded – undo
137 135
 };
138 136
 
139 137
 
140
-$serviceFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config )
141
-{
138
+$serviceFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config ) {
142 139
 	$services = [];
143 140
 
144 141
 	foreach( $item->getServices() as $type => $list )
@@ -171,8 +168,7 @@  discard block
 block discarded – undo
171 168
 };
172 169
 
173 170
 
174
-$addressFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config )
175
-{
171
+$addressFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config ) {
176 172
 	$list = [];
177 173
 
178 174
 	foreach( $item->getAddresses() as $type => $addresses )
@@ -201,8 +197,7 @@  discard block
 block discarded – undo
201 197
 };
202 198
 
203 199
 
204
-$couponFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config )
205
-{
200
+$couponFcn = function( \Aimeos\MShop\Order\Item\Base\Iface $item, $basketId ) use ( $fields, $target, $cntl, $action, $config ) {
206 201
 	$coupons = [];
207 202
 
208 203
 	foreach( $item->getCoupons() as $code => $list )
@@ -268,10 +263,13 @@  discard block
 block discarded – undo
268 263
 					"href": "<?= $this->url( $target, $cntl, $action, ['resource' => 'basket', 'id' => $basketId, 'related' => 'coupon'], [], $config ); ?>",
269 264
 					"allow": ["POST"]
270 265
 				}
271
-			<?php else : ?>
266
+			<?php else {
267
+	: ?>
272 268
 				,
273 269
 				"order": {
274
-					"href": "<?= $this->url( $target, $cntl, $action, ['resource' => 'order'], [], $config ); ?>",
270
+					"href": "<?= $this->url( $target, $cntl, $action, ['resource' => 'order'], [], $config );
271
+}
272
+?>",
275 273
 					"allow": ["POST"]
276 274
 				}
277 275
 			<?php endif; ?>
Please login to merge, or discard this patch.