Completed
Push — master ( 7dd2c9...ab7616 )
by Aimeos
02:21
created
client/jsonapi/src/Client/JsonApi/Basket/Product/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 
79 79
 					$this->controller->deleteProduct( $entry->id );
80 80
 				}
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->controller->deleteProduct( $relId );
85 84
 			}
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Basket/Coupon/Standard.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 
79 79
 					$this->controller->deleteCoupon( $entry->id );
80 80
 				}
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$this->controller->deleteCoupon( $relId );
85 84
 			}
Please login to merge, or discard this patch.
client/jsonapi/templates/order/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
 }
25 25
 
26 26
 
27
-$entryFcn = function( \Aimeos\MShop\Order\Item\Iface $item, \Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config )
28
-{
27
+$entryFcn = function( \Aimeos\MShop\Order\Item\Iface $item, \Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config ) {
29 28
 	$id = $item->getId();
30 29
 	$attributes = $item->toArray();
31 30
 	$type = $item->getResourceType();
@@ -96,8 +95,7 @@  discard block
 block discarded – undo
96 95
 				foreach( $items as $item ) {
97 96
 					$data[] = $entryFcn( $item, $this->get( 'form' ) );
98 97
 				}
99
-			}
100
-			else
98
+			} else
101 99
 			{
102 100
 				$data = $entryFcn( $items, $this->get( 'form' ) );
103 101
 			}
Please login to merge, or discard this patch.
client/jsonapi/templates/locale/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
 }
30 30
 
31 31
 
32
-$entryFcn = function( \Aimeos\MShop\Locale\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
33
-{
32
+$entryFcn = function( \Aimeos\MShop\Locale\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
34 33
 	$id = $item->getId();
35 34
 	$attributes = $item->toArray();
36 35
 	$type = $item->getResourceType();
@@ -98,8 +97,7 @@  discard block
 block discarded – undo
98 97
 				foreach( $items as $localeItem ) {
99 98
 					$data[] = $entryFcn( $localeItem );
100 99
 				}
101
-			}
102
-			else
100
+			} else
103 101
 			{
104 102
 				$data = $entryFcn( $items );
105 103
 			}
Please login to merge, or discard this patch.
client/jsonapi/templates/customer/relationships/standard.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,15 +25,13 @@  discard block
 block discarded – undo
25 25
 }
26 26
 
27 27
 
28
-$removeFcn = function( $key, $array )
29
-{
28
+$removeFcn = function( $key, $array ) {
30 29
 	unset( $array[$key] );
31 30
 	return $array;
32 31
 };
33 32
 
34 33
 
35
-$entryFcn = function( \Aimeos\MShop\Common\Item\Lists\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
36
-{
34
+$entryFcn = function( \Aimeos\MShop\Common\Item\Lists\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
37 35
 	$relid = $item->getId();
38 36
 	$id = $item->getParentId();
39 37
 	$attributes = $item->toArray();
@@ -95,8 +93,7 @@  discard block
 block discarded – undo
95 93
 				foreach( $items as $item ) {
96 94
 					$data[] = $entryFcn( $item );
97 95
 				}
98
-			}
99
-			else
96
+			} else
100 97
 			{
101 98
 				$data = $entryFcn( $items );
102 99
 			}
Please login to merge, or discard this patch.
client/jsonapi/templates/customer/address/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
 }
26 26
 
27 27
 
28
-$entryFcn = function( \Aimeos\MShop\Customer\Item\Address\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
29
-{
28
+$entryFcn = function( \Aimeos\MShop\Customer\Item\Address\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
30 29
 	$id = $item->getId();
31 30
 	$attributes = $item->toArray();
32 31
 	$type = $item->getResourceType();
@@ -92,8 +91,7 @@  discard block
 block discarded – undo
92 91
 				foreach( $items as $addrItem ) {
93 92
 					$data[] = $entryFcn( $addrItem );
94 93
 				}
95
-			}
96
-			else
94
+			} else
97 95
 			{
98 96
 				$data = $entryFcn( $items );
99 97
 			}
Please login to merge, or discard this patch.
client/jsonapi/templates/subscription/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
 }
25 25
 
26 26
 
27
-$entryFcn = function( \Aimeos\MShop\Subscription\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
28
-{
27
+$entryFcn = function( \Aimeos\MShop\Subscription\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
29 28
 	$id = $item->getId();
30 29
 	$attributes = $item->toArray();
31 30
 	$type = $item->getResourceType();
@@ -85,8 +84,7 @@  discard block
 block discarded – undo
85 84
 				foreach( $items as $item ) {
86 85
 					$data[] = $entryFcn( $item );
87 86
 				}
88
-			}
89
-			else
87
+			} else
90 88
 			{
91 89
 				$data = $entryFcn( $items );
92 90
 			}
Please login to merge, or discard this patch.
client/jsonapi/templates/aggregate-standard.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,11 @@
 block discarded – undo
36 36
 	<?php if( isset( $this->errors ) ) : ?>
37 37
 		"errors": <?= json_encode( $this->errors, JSON_PRETTY_PRINT ); ?>
38 38
 
39
-	<?php else : ?>
40
-		"data": <?= json_encode( $entries ); ?>
39
+	<?php else {
40
+	: ?>
41
+		"data": <?= json_encode( $entries );
42
+}
43
+?>
41 44
 
42 45
 	<?php endif; ?>
43 46
 }
Please login to merge, or discard this patch.
client/jsonapi/src/Client/JsonApi/Customer/Address/Standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,8 +63,7 @@  discard block
 block discarded – undo
63 63
 				}
64 64
 
65 65
 				$cntl->store();
66
-			}
67
-			else
66
+			} else
68 67
 			{
69 68
 				if( isset( $items[$relId] ) ) {
70 69
 					$cntl->deleteAddressItem( $items[$relId] )->store();
@@ -113,8 +112,7 @@  discard block
 block discarded – undo
113 112
 			{
114 113
 				$view->items = $item->getAddressItems();
115 114
 				$view->total = count( $view->items );
116
-			}
117
-			else
115
+			} else
118 116
 			{
119 117
 				$view->items = $item->getAddressItem( $relId );
120 118
 				$view->total = empty( $view->items ) ? 0 : 1;
Please login to merge, or discard this patch.