@@ 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 |
@@ 79-84 (lines=6) @@ | ||
76 | $optionSwatch = array(); |
|
77 | if (isset($attributeOptionSwatch[$key])) { |
|
78 | // prepare the EAV attribute option swatch values |
|
79 | foreach ($this->explode($attributeOptionSwatch[$key]) as $value) { |
|
80 | $explodedSwatch = $this->explode($value, '='); |
|
81 | if (isset($explodedSwatch[0]) && isset($explodedSwatch[1])) { |
|
82 | $optionSwatch[$explodedSwatch[0]] = $explodedSwatch[1]; |
|
83 | } |
|
84 | } |
|
85 | ||
86 | // initialize and add the new artefact |
|
87 | $artefacts[] = $this->newArtefact( |