$value) { if (substr($key, 0, 1) != '_') { $key = '_' . $key; } $styleObject->setStyleValue($key, $value); } $style = $styleObject; } else { $style = $returnObject ? $styleObject : $styleValue; } return $style; } }