@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @return bool |
79 | 79 | */ |
80 | - public function generate(ShopInfo $shopInfo, iterable $currencies, iterable $categories, iterable $offers, iterable $deliveries = []) |
|
80 | + public function generate(ShopInfo $shopInfo, iterable $currencies, iterable $categories, iterable $offers, iterable $deliveries = [ ]) |
|
81 | 81 | { |
82 | 82 | try { |
83 | 83 | $this->addHeader(); |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | |
171 | 171 | if (!empty($category->getAttributes())) { |
172 | 172 | foreach ($category->getAttributes() as $attribute) { |
173 | - $this->writer->writeAttribute($attribute['name'], $attribute['value']); |
|
173 | + $this->writer->writeAttribute($attribute[ 'name' ], $attribute[ 'value' ]); |
|
174 | 174 | } |
175 | 175 | } |
176 | 176 |