function set_mode()
{
if (strpos($this->code['original'], '{')) {
// если есть фигурные скобки
$this->mode = 'css-file';
} else {
// если нет фигурных скобок
// если есть атрибут
if (strpos($this->code['original'], "style='") or strpos($this->code['original'], 'style="')) {
$this->mode = 'style-attribute';
} else {
if (strpos($this->code['original'], ':') and strpos($this->code['original'], ';')) {
$this->mode = 'properties';
}
}
}
}