Passed
Push — master ( 6ed52c...acf19f )
by Aimeos
02:22
created
templates/admin/jsonadm/partials/locale/site/data.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\Locale\Item\Site\Iface $item ) use ( $fields )
25
-{
24
+$build = function( \Aimeos\MShop\Locale\Item\Site\Iface $item ) use ( $fields ) {
26 25
 	$id = $item->getId();
27 26
 	$type = $item->getResourceType();
28 27
 	$params = array( 'resource' => $type, 'id' => $id );
@@ -66,12 +65,10 @@  discard block
 block discarded – undo
66 65
 	foreach( $data as $item ) {
67 66
 		$response[] = $build( $item );
68 67
 	}
69
-}
70
-elseif( $data !== null )
68
+} elseif( $data !== null )
71 69
 {
72 70
 	$response = $build( $data );
73
-}
74
-else
71
+} else
75 72
 {
76 73
 	$response = null;
77 74
 }
Please login to merge, or discard this patch.
templates/admin/jsonadm/partials/included.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
 }
22 22
 
23 23
 
24
-$build = function( \Aimeos\Map $items ) use ( $fields )
25
-{
24
+$build = function( \Aimeos\Map $items ) use ( $fields ) {
26 25
 	$list = [];
27 26
 
28 27
 	$target = $this->config( 'admin/jsonadm/url/target' );
Please login to merge, or discard this patch.