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