@@ -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 | } |
@@ -99,8 +99,7 @@ |
||
| 99 | 99 | $decorators = $config->get( 'client/jsonapi/' . $dpath . 'decorators/local', [] ); |
| 100 | 100 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $path ); |
| 101 | 101 | } |
| 102 | - } |
|
| 103 | - else |
|
| 102 | + } else |
|
| 104 | 103 | { |
| 105 | 104 | $classprefix = '\\Aimeos\\Client\\JsonApi\\Common\\Decorator\\'; |
| 106 | 105 | $client = self::addDecorators( $client, $decorators, $classprefix, $context, $path ); |
@@ -59,8 +59,7 @@ |
||
| 59 | 59 | if( ( $client = @call_user_func_array( [$factory, 'create'], [$context, $path, $name] ) ) === false ) { |
| 60 | 60 | throw new \Aimeos\Client\JsonApi\Exception( sprintf( 'Invalid factory "%1$s"', $factory ), 400 ); |
| 61 | 61 | } |
| 62 | - } |
|
| 63 | - else |
|
| 62 | + } else |
|
| 64 | 63 | { |
| 65 | 64 | $client = self::createRoot( $context, $path, $name ); |
| 66 | 65 | } |
@@ -58,8 +58,7 @@ |
||
| 58 | 58 | $view->items = $provider->getServiceItem(); |
| 59 | 59 | $view->total = 1; |
| 60 | 60 | } |
| 61 | - } |
|
| 62 | - else |
|
| 61 | + } else |
|
| 63 | 62 | { |
| 64 | 63 | $attributes = $prices = $items = []; |
| 65 | 64 | $type = $view->param( 'filter/cs_type' ); |
@@ -75,8 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $this->controller->deleteAddressItem( $entry->id ); |
| 77 | 77 | } |
| 78 | - } |
|
| 79 | - else |
|
| 78 | + } else |
|
| 80 | 79 | { |
| 81 | 80 | $this->controller->deleteAddressItem( $relId ); |
| 82 | 81 | } |
@@ -123,8 +122,7 @@ discard block |
||
| 123 | 122 | { |
| 124 | 123 | $view->items = $cntl->getItem( $view->param( 'id' ), ['customer/address'] )->getAddressItems(); |
| 125 | 124 | $view->total = count( $view->items ); |
| 126 | - } |
|
| 127 | - else |
|
| 125 | + } else |
|
| 128 | 126 | { |
| 129 | 127 | $view->items = $cntl->getAddressItem( $relId ); |
| 130 | 128 | $view->total = 1; |
@@ -75,8 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | $this->controller->deleteListItem( $entry->id ); |
| 77 | 77 | } |
| 78 | - } |
|
| 79 | - else |
|
| 78 | + } else |
|
| 80 | 79 | { |
| 81 | 80 | $this->controller->deleteListItem( $relId ); |
| 82 | 81 | } |
@@ -124,8 +123,7 @@ discard block |
||
| 124 | 123 | { |
| 125 | 124 | $filter = $this->initCriteria( $cntl->createListsFilter(), $view->param( 'filter', [] ) ); |
| 126 | 125 | $view->items = $cntl->searchListItems( $filter, $total ); |
| 127 | - } |
|
| 128 | - else |
|
| 126 | + } else |
|
| 129 | 127 | { |
| 130 | 128 | $view->items = $cntl->getListItem( $relId ); |
| 131 | 129 | } |
@@ -83,8 +83,7 @@ |
||
| 83 | 83 | { |
| 84 | 84 | $view->items = $cntl->get( $id ); |
| 85 | 85 | $view->total = 1; |
| 86 | - } |
|
| 87 | - else |
|
| 86 | + } else |
|
| 88 | 87 | { |
| 89 | 88 | $total = 0; |
| 90 | 89 | $items = $cntl->slice( $view->param( 'page/offset', 0), $view->param( 'page/limit', 25 ) ) |
@@ -43,8 +43,7 @@ |
||
| 43 | 43 | { |
| 44 | 44 | $view->items = $cntl->getItem( $id ); |
| 45 | 45 | $view->total = 1; |
| 46 | - } |
|
| 47 | - else |
|
| 46 | + } else |
|
| 48 | 47 | { |
| 49 | 48 | $total = 0; |
| 50 | 49 | $filter = $cntl->createFilter(); |
@@ -81,8 +81,7 @@ |
||
| 81 | 81 | */ |
| 82 | 82 | $tplconf = 'client/jsonapi/product/standard/template-aggregate'; |
| 83 | 83 | $default = 'aggregate-standard'; |
| 84 | - } |
|
| 85 | - else |
|
| 84 | + } else |
|
| 86 | 85 | { |
| 87 | 86 | /** client/jsonapi/product/standard/template |
| 88 | 87 | * Relative path to the product JSON API template |