Passed
Push — master ( 277f06...4f76c9 )
by Aimeos
36:06 queued 13:44
created
templates/client/jsonapi/customer/address/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@  discard block
 block discarded – undo
27 27
 }
28 28
 
29 29
 
30
-$entryFcn = function( \Aimeos\MShop\Customer\Item\Address\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
31
-{
30
+$entryFcn = function( \Aimeos\MShop\Customer\Item\Address\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
32 31
 	$id = $item->getId();
33 32
 	$attributes = $item->toArray();
34 33
 	$rtype = str_replace( '/', '.', $item->getResourceType() );
@@ -90,8 +89,7 @@  discard block
 block discarded – undo
90 89
 				foreach( $items as $addrItem ) {
91 90
 					$data[] = $entryFcn( $addrItem );
92 91
 				}
93
-			}
94
-			else
92
+			} else
95 93
 			{
96 94
 				$data = $entryFcn( $items );
97 95
 			}
Please login to merge, or discard this patch.
templates/client/jsonapi/customer/property/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,8 +27,7 @@  discard block
 block discarded – undo
27 27
 }
28 28
 
29 29
 
30
-$entryFcn = function( \Aimeos\MShop\Common\Item\Property\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
31
-{
30
+$entryFcn = function( \Aimeos\MShop\Common\Item\Property\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
32 31
 	$id = $item->getId();
33 32
 	$attributes = $item->toArray();
34 33
 	$rtype = str_replace( '/', '.', $item->getResourceType() );
@@ -85,8 +84,7 @@  discard block
 block discarded – undo
85 84
 				foreach( $items as $propItem ) {
86 85
 					$data[] = $entryFcn( $propItem );
87 86
 				}
88
-			}
89
-			else
87
+			} else
90 88
 			{
91 89
 				$data = $entryFcn( $items );
92 90
 			}
Please login to merge, or discard this patch.
templates/client/jsonapi/order/standard.php 1 patch
Braces   +7 added lines, -14 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\Iface $item, ?\Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config )
30
-{
29
+$entryFcn = function( \Aimeos\MShop\Order\Item\Iface $item, ?\Aimeos\MShop\Common\Helper\Form\Iface $form = null ) use ( $fields, $target, $cntl, $action, $config ) {
31 30
 	$relationships = [];
32 31
 	$id = $item->getId();
33 32
 	$attributes = $item->toArray();
@@ -92,8 +91,7 @@  discard block
 block discarded – undo
92 91
 };
93 92
 
94 93
 
95
-$productFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields )
96
-{
94
+$productFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) {
97 95
 	$result = [];
98 96
 
99 97
 	foreach( $item->getProducts() as $orderProduct )
@@ -133,8 +131,7 @@  discard block
 block discarded – undo
133 131
 };
134 132
 
135 133
 
136
-$serviceFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields )
137
-{
134
+$serviceFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) {
138 135
 	$result = [];
139 136
 
140 137
 	foreach( $item->getServices() as $type => $list )
@@ -166,8 +163,7 @@  discard block
 block discarded – undo
166 163
 };
167 164
 
168 165
 
169
-$addressFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields )
170
-{
166
+$addressFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields ) {
171 167
 	$list = [];
172 168
 
173 169
 	foreach( $item->getAddresses() as $type => $addresses )
@@ -189,8 +185,7 @@  discard block
 block discarded – undo
189 185
 };
190 186
 
191 187
 
192
-$couponFcn = function( \Aimeos\MShop\Order\Item\Iface $item )
193
-{
188
+$couponFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) {
194 189
 	$coupons = [];
195 190
 
196 191
 	foreach( $item->getCoupons() as $code => $list ) {
@@ -201,8 +196,7 @@  discard block
 block discarded – undo
201 196
 };
202 197
 
203 198
 
204
-$customerFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
205
-{
199
+$customerFcn = function( \Aimeos\MShop\Order\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
206 200
 	$result = [];
207 201
 
208 202
 	if( ( $customer = $item->getCustomerItem() ) !== null && $customer->isAvailable() )
@@ -271,8 +265,7 @@  discard block
 block discarded – undo
271 265
 					$included = array_replace_recursive( $included, $serviceFcn( $item ) );
272 266
 					$included = array_replace_recursive( $included, $customerFcn( $item ) );
273 267
 				}
274
-			}
275
-			else
268
+			} else
276 269
 			{
277 270
 				$data = $entryFcn( $items, $this->get( 'form' ) );
278 271
 				$included = array_replace_recursive( $included, $couponFcn( $items ) );
Please login to merge, or discard this patch.