Completed
Push — master ( 61c665...5e15bb )
by Aimeos
02:18
created
client/jsonapi/tests/Client/JsonApi/Basket/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
client/jsonapi/tests/Client/JsonApi/Order/StandardTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -268,7 +268,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
client/jsonapi/templates/service/standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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] );
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Product/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
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 );
Please login to merge, or discard this patch.
client/jsonapi/templates/stock/standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 $first = ( $offset > 0 ? 0 : null );
32 32
 $prev = ( $offset - $limit >= 0 ? $offset - $limit : null );
33 33
 $next = ( $offset + $limit < $total ? $offset + $limit : null );
34
-$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null );
34
+$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null );
35 35
 
36 36
 
37 37
 $fields = $this->param( 'fields', [] );
Please login to merge, or discard this patch.
client/jsonapi/templates/product/standard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 $first = ( $offset > 0 ? 0 : null );
98 98
 $prev = ( $offset - $limit >= 0 ? $offset - $limit : null );
99 99
 $next = ( $offset + $limit < $total ? $offset + $limit : null );
100
-$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null );
100
+$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null );
101 101
 
102 102
 
103 103
 $map = $this->get( 'itemMap', [] );
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	$type = $item->getResourceType();
116 116
 
117 117
 	$params = array( 'resource' => $type, 'id' => $id );
118
-	$basketParams = [ 'resource' => 'basket', 'id' => 'default', 'related' => 'product' ];
118
+	$basketParams = ['resource' => 'basket', 'id' => 'default', 'related' => 'product'];
119 119
 
120 120
 	if( isset( $fields[$type] ) ) {
121 121
 		$attributes = array_intersect_key( $attributes, $fields[$type] );
Please login to merge, or discard this patch.
client/jsonapi/templates/attribute/standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
 $first = ( $offset > 0 ? 0 : null );
32 32
 $prev = ( $offset - $limit >= 0 ? $offset - $limit : null );
33 33
 $next = ( $offset + $limit < $total ? $offset + $limit : null );
34
-$last = ( ((int) ($total / $limit)) * $limit > $offset ? ((int) ($total / $limit)) * $limit : null );
34
+$last = ( ( (int) ( $total / $limit ) ) * $limit > $offset ? ( (int) ( $total / $limit ) ) * $limit : null );
35 35
 
36 36
 
37 37
 $fields = $this->param( 'fields', [] );
Please login to merge, or discard this patch.