@@ -101,8 +101,7 @@ |
||
101 | 101 | foreach( $items as $item ) { |
102 | 102 | $data[] = $entryFcn( $item ); |
103 | 103 | } |
104 | - } |
|
105 | - else |
|
104 | + } else |
|
106 | 105 | { |
107 | 106 | $data = $entryFcn( $items ); |
108 | 107 | } |
@@ -244,8 +244,7 @@ |
||
244 | 244 | $data[] = $entryFcn( $item ); |
245 | 245 | $included = array_merge( $included, $refFcn( $item ) ); |
246 | 246 | } |
247 | - } |
|
248 | - else |
|
247 | + } else |
|
249 | 248 | { |
250 | 249 | $data = $entryFcn( $items ); |
251 | 250 | $included = $refFcn( $items ); |
@@ -145,8 +145,7 @@ |
||
145 | 145 | $data[] = $entryFcn( $attrItem ); |
146 | 146 | $included = array_merge( $included, $refFcn( $attrItem ) ); |
147 | 147 | } |
148 | - } |
|
149 | - else |
|
148 | + } else |
|
150 | 149 | { |
151 | 150 | $data = $entryFcn( $items ); |
152 | 151 | $included = $refFcn( $items ); |
@@ -101,8 +101,7 @@ |
||
101 | 101 | $decorators = $config->get( 'client/jsonapi/' . $dpath . 'decorators/local', [] ); |
102 | 102 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $view, $templatePaths, $path ); |
103 | 103 | } |
104 | - } |
|
105 | - else |
|
104 | + } else |
|
106 | 105 | { |
107 | 106 | $classprefix = '\\Aimeos\\Client\\JsonApi\\Common\\Decorator\\'; |
108 | 107 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $view, $templatePaths, $path ); |
@@ -262,10 +262,13 @@ |
||
262 | 262 | "href": "<?= $this->url( $target, $cntl, $action, ['resource' => 'basket', 'id' => $basketId, 'related' => 'coupon'], [], $config ); ?>", |
263 | 263 | "allow": ["POST"] |
264 | 264 | } |
265 | - <?php else : ?> |
|
265 | + <?php else { |
|
266 | + : ?> |
|
266 | 267 | , |
267 | 268 | "order": { |
268 | - "href": "<?= $this->url( $target, $cntl, $action, ['resource' => 'order'], [], $config ); ?>", |
|
269 | + "href": "<?= $this->url( $target, $cntl, $action, ['resource' => 'order'], [], $config ); |
|
270 | +} |
|
271 | +?>", |
|
269 | 272 | "allow": ["POST"] |
270 | 273 | } |
271 | 274 | <?php endif; ?> |
@@ -28,9 +28,12 @@ |
||
28 | 28 | |
29 | 29 | "errors": <?= json_encode( $this->errors, JSON_PRETTY_PRINT ); ?> |
30 | 30 | |
31 | - <?php else : ?> |
|
31 | + <?php else { |
|
32 | + : ?> |
|
32 | 33 | |
33 | - "data": <?= json_encode( $entries ); ?> |
|
34 | + "data": <?= json_encode( $entries ); |
|
35 | +} |
|
36 | +?> |
|
34 | 37 | |
35 | 38 | <?php endif; ?> |
36 | 39 | } |