@@ -122,12 +122,12 @@ |
||
| 122 | 122 | } |
| 123 | 123 | |
| 124 | 124 | /** |
| 125 | - * Saves and returns the new or updated item |
|
| 126 | - * |
|
| 127 | - * @param \Aimeos\MShop\Common\Manager\Iface $manager Manager responsible for the items |
|
| 128 | - * @param \stdClass $entry Object including "id" and "attributes" elements |
|
| 129 | - * @return \Aimeos\MShop\Common\Item\Iface New or updated item |
|
| 130 | - */ |
|
| 125 | + * Saves and returns the new or updated item |
|
| 126 | + * |
|
| 127 | + * @param \Aimeos\MShop\Common\Manager\Iface $manager Manager responsible for the items |
|
| 128 | + * @param \stdClass $entry Object including "id" and "attributes" elements |
|
| 129 | + * @return \Aimeos\MShop\Common\Item\Iface New or updated item |
|
| 130 | + */ |
|
| 131 | 131 | protected function saveEntry( \Aimeos\MShop\Common\Manager\Iface $manager, \stdClass $entry ) : \Aimeos\MShop\Common\Item\Iface |
| 132 | 132 | { |
| 133 | 133 | if( isset( $entry->id ) ) { |
@@ -392,7 +392,7 @@ discard block |
||
| 392 | 392 | if( isset( $entry->attributes ) && ( $attr = (array) $entry->attributes ) ) { |
| 393 | 393 | if( $item instanceof \Aimeos\MShop\Common\Item\Config\Iface ) { |
| 394 | 394 | $key = str_replace( '/', '.', $this->path ) . '.config'; |
| 395 | - $attr[ $key ] = (array) ( $attr[ $key ] ?? [] ); |
|
| 395 | + $attr[$key] = (array) ( $attr[$key] ?? [] ); |
|
| 396 | 396 | } |
| 397 | 397 | $item = $item->fromArray( $attr, true ); |
| 398 | 398 | } |
@@ -430,7 +430,7 @@ discard block |
||
| 430 | 430 | |
| 431 | 431 | if( isset( $data->attributes ) && ( $attr = (array) $data->attributes ) ) { |
| 432 | 432 | $key = str_replace( '/', '.', $this->path ) . '.config'; |
| 433 | - $attr[ $key ] = (array) ( $attr[ $key ] ?? [] ); |
|
| 433 | + $attr[$key] = (array) ( $attr[$key] ?? [] ); |
|
| 434 | 434 | $item = $item->fromArray( $attr, true ); |
| 435 | 435 | } |
| 436 | 436 | |