@@ 70-75 (lines=6) @@ | ||
67 | // initialize the attribute option swatch data |
|
68 | $optionSwatch = array(); |
|
69 | if (isset($attributeOptionSwatch[$key])) { |
|
70 | foreach ($this->explode($attributeOptionSwatch[$key]) as $value) { |
|
71 | $explodedSwatch = $this->explode($value, '='); |
|
72 | if (isset($explodedSwatch[0]) && isset($explodedSwatch[1])) { |
|
73 | $optionSwatch[$explodedSwatch[0]] = $explodedSwatch[1]; |
|
74 | } |
|
75 | } |
|
76 | } |
|
77 | ||
78 | // initialize and add the new artefact |
@@ 77-82 (lines=6) @@ | ||
74 | $optionSwatch = array(); |
|
75 | if (isset($attributeOptionSwatch[$key])) { |
|
76 | // prepare the EAV attribute option swatch values |
|
77 | foreach ($this->explode($attributeOptionSwatch[$key]) as $value) { |
|
78 | $explodedSwatch = $this->explode($value, '='); |
|
79 | if (isset($explodedSwatch[0]) && isset($explodedSwatch[1])) { |
|
80 | $optionSwatch[$explodedSwatch[0]] = $explodedSwatch[1]; |
|
81 | } |
|
82 | } |
|
83 | ||
84 | // initialize and add the new artefact |
|
85 | $artefacts[] = $this->newArtefact( |