Completed
Push — master ( f04487...03797e )
by Aimeos
04:01
created
client/jsonapi/templates/service/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\Service\Item\Iface $item, array $prices, array $feConfig ) use ( $fields, $target, $cntl, $action, $config )
29
-{
28
+$entryFcn = function( \Aimeos\MShop\Service\Item\Iface $item, array $prices, array $feConfig ) use ( $fields, $target, $cntl, $action, $config ) {
30 29
 	$metadata = [];
31 30
 	$id = $item->getId();
32 31
 	$type = $item->getResourceType();
@@ -119,8 +118,7 @@  discard block
 block discarded – undo
119 118
 					$data[] = $entryFcn( $item, $prices, $feConfig );
120 119
 					$included = array_merge( $included, $this->included( $item, $fields ) );
121 120
 				}
122
-			}
123
-			else
121
+			} else
124 122
 			{
125 123
 				$data = $entryFcn( $this->items, $prices, $feConfig );
126 124
 				$included = $this->included( $this->items, $fields );
Please login to merge, or discard this patch.
client/jsonapi/templates/supplier/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@  discard block
 block discarded – undo
35 35
 }
36 36
 
37 37
 
38
-$entryFcn = function( \Aimeos\MShop\Supplier\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
39
-{
38
+$entryFcn = function( \Aimeos\MShop\Supplier\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
40 39
 	$id = $item->getId();
41 40
 	$type = $item->getResourceType();
42 41
 	$params = array( 'resource' => $type, 'id' => $id );
@@ -129,8 +128,7 @@  discard block
 block discarded – undo
129 128
 					$data[] = $entryFcn( $item );
130 129
 					$included = array_merge( $included, $this->included( $item, $fields ) );
131 130
 				}
132
-			}
133
-			else
131
+			} else
134 132
 			{
135 133
 				$data = $entryFcn( $items );
136 134
 				$included = $this->included( $items, $fields );
Please login to merge, or discard this patch.
client/jsonapi/templates/product/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -101,8 +101,7 @@  discard block
 block discarded – undo
101 101
 }
102 102
 
103 103
 
104
-$entryFcn = function( \Aimeos\MShop\Product\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
105
-{
104
+$entryFcn = function( \Aimeos\MShop\Product\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
106 105
 	$id = $item->getId();
107 106
 	$attributes = $item->toArray();
108 107
 	$type = $item->getResourceType();
@@ -195,8 +194,7 @@  discard block
 block discarded – undo
195 194
 					$data[] = $entryFcn( $item );
196 195
 					$included = array_merge( $included, $this->included( $item, $fields ) );
197 196
 				}
198
-			}
199
-			else
197
+			} else
200 198
 			{
201 199
 				$data = $entryFcn( $items );
202 200
 				$included = $this->included( $items, $fields );
Please login to merge, or discard this patch.
client/jsonapi/templates/catalog/standard.php 1 patch
Braces   +4 added lines, -8 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\Catalog\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
33
-{
32
+$entryFcn = function( \Aimeos\MShop\Catalog\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
34 33
 	if( $item->isAvailable() === false ) {
35 34
 		return [];
36 35
 	}
@@ -80,8 +79,7 @@  discard block
 block discarded – undo
80 79
 };
81 80
 
82 81
 
83
-$refFcn = function( \Aimeos\MShop\Common\Item\Iface $item, array $map ) use ( $fields, $target, $cntl, $action, $config, &$refFcn )
84
-{
82
+$refFcn = function( \Aimeos\MShop\Common\Item\Iface $item, array $map ) use ( $fields, $target, $cntl, $action, $config, &$refFcn ) {
85 83
 	$id = $item->getId();
86 84
 	$type = $item->getResourceType();
87 85
 
@@ -150,8 +148,7 @@  discard block
 block discarded – undo
150 148
 };
151 149
 
152 150
 
153
-$inclFcn = function( \Aimeos\MShop\Catalog\Item\Iface $item ) use ( $entryFcn, $refFcn )
154
-{
151
+$inclFcn = function( \Aimeos\MShop\Catalog\Item\Iface $item ) use ( $entryFcn, $refFcn ) {
155 152
 	$list = [];
156 153
 
157 154
 	foreach( $item->getChildren() as $childItem )
@@ -167,8 +164,7 @@  discard block
 block discarded – undo
167 164
 };
168 165
 
169 166
 
170
-$flatFcn = function( array $map )
171
-{
167
+$flatFcn = function( array $map ) {
172 168
 	$result = [];
173 169
 
174 170
 	foreach( $map as $list )
Please login to merge, or discard this patch.
client/jsonapi/templates/attribute/standard.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,8 +35,7 @@  discard block
 block discarded – undo
35 35
 }
36 36
 
37 37
 
38
-$entryFcn = function( \Aimeos\MShop\Attribute\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
39
-{
38
+$entryFcn = function( \Aimeos\MShop\Attribute\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
40 39
 	$id = $item->getId();
41 40
 	$type = $item->getResourceType();
42 41
 	$params = array( 'resource' => $type, 'id' => $id );
@@ -128,8 +127,7 @@  discard block
 block discarded – undo
128 127
 					$data[] = $entryFcn( $item );
129 128
 					$included = array_merge( $included, $this->included( $item, $fields ) );
130 129
 				}
131
-			}
132
-			else
130
+			} else
133 131
 			{
134 132
 				$data = $entryFcn( $items );
135 133
 				$included = $this->included( $items, $fields );
Please login to merge, or discard this patch.
client/jsonapi/templates/customer/standard.php 1 patch
Braces   +4 added lines, -8 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\Iface $item ) use ( $fields, $target, $cntl, $action, $config )
29
-{
28
+$entryFcn = function( \Aimeos\MShop\Customer\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) {
30 29
 	$id = $item->getId();
31 30
 	$type = $item->getResourceType();
32 31
 	$params = array( 'resource' => $type, 'id' => $id );
@@ -92,8 +91,7 @@  discard block
 block discarded – undo
92 91
 };
93 92
 
94 93
 
95
-$refFcn = function( \Aimeos\MShop\Common\Item\Iface $item, array $map ) use ( $fields, $target, $cntl, $action, $config, &$refFcn )
96
-{
94
+$refFcn = function( \Aimeos\MShop\Common\Item\Iface $item, array $map ) use ( $fields, $target, $cntl, $action, $config, &$refFcn ) {
97 95
 	$id = $item->getId();
98 96
 	$type = $item->getResourceType();
99 97
 
@@ -157,8 +155,7 @@  discard block
 block discarded – undo
157 155
 };
158 156
 
159 157
 
160
-$inclFcn = function( \Aimeos\MShop\Common\Item\Iface $item ) use ( $refFcn )
161
-{
158
+$inclFcn = function( \Aimeos\MShop\Common\Item\Iface $item ) use ( $refFcn ) {
162 159
 	$map = [];
163 160
 
164 161
 	if( $item instanceof \Aimeos\MShop\Common\Item\AddressRef\Iface )
@@ -189,8 +186,7 @@  discard block
 block discarded – undo
189 186
 };
190 187
 
191 188
 
192
-$flatFcn = function( array $map )
193
-{
189
+$flatFcn = function( array $map ) {
194 190
 	$result = [];
195 191
 
196 192
 	foreach( $map as $list )
Please login to merge, or discard this patch.