Completed
Push — master ( a6d4f1...a821e5 )
by Aimeos
02:38 queued 54s
created
admin/jsonadm/templates/partials/order/base/data-standard.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 }
22 22
 
23 23
 
24
-$build = function( \Aimeos\MShop\Order\Item\Base\Iface $item, array $childItems ) use ( $fields )
25
-{
24
+$build = function( \Aimeos\MShop\Order\Item\Base\Iface $item, array $childItems ) use ( $fields ) {
26 25
 	$id = $item->getId();
27 26
 	$type = $item->getResourceType();
28 27
 	$params = array( 'resource' => $type, 'id' => $id );
@@ -76,12 +75,10 @@  discard block
 block discarded – undo
76 75
 	foreach( $data as $item ) {
77 76
 		$response[] = $build( $item, $childItems );
78 77
 	}
79
-}
80
-elseif( $data !== null )
78
+} elseif( $data !== null )
81 79
 {
82 80
 	$response = $build( $data, $childItems );
83
-}
84
-else
81
+} else
85 82
 {
86 83
 	$response = null;
87 84
 }
Please login to merge, or discard this patch.
admin/jsonadm/templates/config-standard.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
 }
22 22
 
23 23
 
24
-$build = function( array $attrItems, $id ) use ( $fields )
25
-{
24
+$build = function( array $attrItems, $id ) use ( $fields ) {
26 25
 	$result = [];
27 26
 	$type = 'criteria/attribute';
28 27
 
@@ -58,8 +57,11 @@  discard block
 block discarded – undo
58 57
 	<?php if( isset( $this->errors ) ) : ?>
59 58
 		, "errors": <?= $this->partial( $this->config( $this->get( 'partial-errors', 'admin/jsonadm/partials/template-errors' ), 'partials/errors-standard' ), array( 'errors' => $this->errors ) ); ?>
60 59
 
61
-	<?php else : ?>
62
-		, "data": <?= json_encode( $build( $configItems, $this->param( 'id' ) ), $options ); ?>
60
+	<?php else {
61
+	: ?>
62
+		, "data": <?= json_encode( $build( $configItems, $this->param( 'id' ) ), $options );
63
+}
64
+?>
63 65
 
64 66
 	<?php endif; ?>
65 67
 }
Please login to merge, or discard this patch.