@@ -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 | } |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $this->controller->deleteService( $entry->id ); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $this->controller->deleteService( $relId ); |
| 85 | 84 | } |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $this->controller->deleteProduct( $entry->id ); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $this->controller->deleteProduct( $relId ); |
| 85 | 84 | } |
@@ -78,8 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | $this->controller->deleteCoupon( $entry->id ); |
| 80 | 80 | } |
| 81 | - } |
|
| 82 | - else |
|
| 81 | + } else |
|
| 83 | 82 | { |
| 84 | 83 | $this->controller->deleteCoupon( $relId ); |
| 85 | 84 | } |
@@ -29,8 +29,7 @@ discard block |
||
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | |
| 32 | -$entryFcn = function( \Aimeos\MShop\Locale\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 33 | -{ |
|
| 32 | +$entryFcn = function( \Aimeos\MShop\Locale\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 34 | 33 | $id = $item->getId(); |
| 35 | 34 | $attributes = $item->toArray(); |
| 36 | 35 | $type = $item->getResourceType(); |
@@ -98,8 +97,7 @@ discard block |
||
| 98 | 97 | foreach( $items as $localeItem ) { |
| 99 | 98 | $data[] = $entryFcn( $localeItem ); |
| 100 | 99 | } |
| 101 | - } |
|
| 102 | - else |
|
| 100 | + } else |
|
| 103 | 101 | { |
| 104 | 102 | $data = $entryFcn( $items ); |
| 105 | 103 | } |
@@ -35,8 +35,7 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | |
| 38 | -$entryFcn = function( \Aimeos\MShop\Stock\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 39 | -{ |
|
| 38 | +$entryFcn = function( \Aimeos\MShop\Stock\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 ); |
@@ -111,8 +110,7 @@ discard block |
||
| 111 | 110 | foreach( $items as $item ) { |
| 112 | 111 | $data[] = $entryFcn( $item ); |
| 113 | 112 | } |
| 114 | - } |
|
| 115 | - else |
|
| 113 | + } else |
|
| 116 | 114 | { |
| 117 | 115 | $data = $entryFcn( $items ); |
| 118 | 116 | } |
@@ -25,8 +25,7 @@ discard block |
||
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | |
| 28 | -$entryFcn = function( \Aimeos\MShop\Customer\Item\Address\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 29 | -{ |
|
| 28 | +$entryFcn = function( \Aimeos\MShop\Customer\Item\Address\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 30 | 29 | $id = $item->getId(); |
| 31 | 30 | $attributes = $item->toArray(); |
| 32 | 31 | $type = $item->getResourceType(); |
@@ -92,8 +91,7 @@ discard block |
||
| 92 | 91 | foreach( $items as $addrItem ) { |
| 93 | 92 | $data[] = $entryFcn( $addrItem ); |
| 94 | 93 | } |
| 95 | - } |
|
| 96 | - else |
|
| 94 | + } else |
|
| 97 | 95 | { |
| 98 | 96 | $data = $entryFcn( $items ); |
| 99 | 97 | } |
@@ -24,8 +24,7 @@ discard block |
||
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | |
| 27 | -$entryFcn = function( \Aimeos\MShop\Subscription\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) |
|
| 28 | -{ |
|
| 27 | +$entryFcn = function( \Aimeos\MShop\Subscription\Item\Iface $item ) use ( $fields, $target, $cntl, $action, $config ) { |
|
| 29 | 28 | $id = $item->getId(); |
| 30 | 29 | $attributes = $item->toArray(); |
| 31 | 30 | $type = $item->getResourceType(); |
@@ -85,8 +84,7 @@ discard block |
||
| 85 | 84 | foreach( $items as $item ) { |
| 86 | 85 | $data[] = $entryFcn( $item ); |
| 87 | 86 | } |
| 88 | - } |
|
| 89 | - else |
|
| 87 | + } else |
|
| 90 | 88 | { |
| 91 | 89 | $data = $entryFcn( $items ); |
| 92 | 90 | } |