Passed
Push — master ( 2c41d6...bfa0a8 )
by Aimeos
01:33
created
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
 
@@ -59,9 +58,12 @@  discard block
 block discarded – undo
59 58
 
60 59
 		, "errors": <?= $this->partial( $this->config( $this->get( 'partial-errors', 'admin/jsonadm/partials/template-errors' ), 'partials/errors-standard' ), array( 'errors' => $this->errors ) ); ?>
61 60
 
62
-	<?php else : ?>
61
+	<?php else {
62
+	: ?>
63 63
 
64
-		, "data": <?= json_encode( $build( $configItems, $this->param( 'id' ) ), $options ); ?>
64
+		, "data": <?= json_encode( $build( $configItems, $this->param( 'id' ) ), $options );
65
+}
66
+?>
65 67
 
66 68
 	<?php endif; ?>
67 69
 }
Please login to merge, or discard this patch.