@param array|string|null $style

@return static
549937
public function style($style)
    {
        if (is_array($style)) {
            $style = implode('; ', array_map(function ($value, $attribute) {
                return "{$attribute}: {$value}";
            }, $style, array_keys($style)));
        }

        return $this->attribute('style', $style);
    }
857624
public function style($styles)
    {
        if (is_string($styles)) {
            return $this->style([$styles]);
        }

        $styles = array_map(function ($style) {
            return 'box-'.$style;
        }, $styles);

        $this->class = $this->class.' '.implode(' ', $styles);

        return $this;
    }
990986
public function makeType(StyleType $type): ?Style
    {
        if (!$type->isType()) {
            return null;
        }

        return Style::make()
            ->setFgColor(Color::CYAN())
            ->bold();
    }
1271333
public function setstyle($style, array $params = [], $prepend = false, $conditional = '')
    {
        return $this->headStyle(array_merge($params, ['type' => 'text/css', 'style' => $style]), $prepend, $conditional);
    }
663640
public function import(Style $style)
    {
        foreach ($style->getArrayCopy() as $styleTextContent) {
            $this->append($styleTextContent);
        }
    }
990815
public static function info($message, $style = null) {
		if (is_array($message)) {
			$msg     = unget($message, 'message');
			$args    = $message;
			$message = $msg ? $msg : '';
		} else {
			$args = [];
		}

		return new JsonView([
			'code'    => self::INFO,
			'message' => $message,
			'args'    => $args,
			'style'   => $style
		], ['ajax' => '1']);
	}
15597
protected function _styleToString(&$style) {

        if (is_array($style)) {
            $css = $this->newStyle();
            foreach ($style as $prop => $val) {
                $css[$prop] = $val;
            }
            return $css->css();
        } elseif (is_a($style, '\\s4y\\Style')) {
            return $style->css();
        }
        return $style.PHP_EOL;
    }
1113246
public function setTemplateStyle($style = null)
    {
        if (null == $style) {
            $style = GEMS_PROJECT_NAME;
        }
        $this->setHtmlTemplateFile(APPLICATION_PATH . '/configs/email/' . $style . '.html');

        return $this;
    }
920242
final public function style($sel = null, $property = null, $value = null)
	{
		if (! is_array($this->response['style'])) {
			$this->response['style'] = [];
		}

		$this->response['style']["$sel"]["$property"] = "$value";
		return $this;
	}
158758
public function addRow(array $row, Style $style = null)
    {
        if (!empty($row)) {
            $style = $style instanceof Style ? $style : $this->styler->getDefaultStyle();
            $this->styler->addStyle($style);
            $this->sheetFile->fwrite($this->sheet->addRow($row, $style));
        }
    }
165609
public function make($view, $style = null)
    {
        $viewPath = $this->viewFinder->find($view);

        try {
            $stylePath = $this->styleFinder->find($style ?: $view);
        } catch (InvalidArgumentException $e) {
            $stylePath = null;
        }

        return new View($this->viewParser, $viewPath, $this->styleParser, $stylePath);
    }
979787
public function &inline($styles)
    {
        $css_object = new CssObject();

        $css_object->setType('inline');
        $css_object->setCss($styles);

        $this->add($css_object);

        return $css_object;
    }
628090
public function addCell($width, $style = null) {
		$cell = new PHPWord_Section_Table_Cell($this->_insideOf, $this->_pCount, $width, $style);
		$i = count($this->_rows) - 1;
		$this->_rows[$i][] = $cell;
		return $cell;
	}
775220
public function removeStyles($styles)
    {
        $currentStyles = $this->unpackStylesArray();

        if (is_array($styles)) {
            foreach ($styles as $styleToRemove) {
                if (isset($currentStyles[$styleToRemove])) {
                    unset($currentStyles[$styleToRemove]);
                }
            }
        } else {
            if (isset($currentStyles[$styles])) {
                unset($currentStyles[$styles]);
            }
        }

        $this->packStylesArray($currentStyles);

        return $this;
    }
137730
public function addStyle($style) {
        $style = trim($style);
        if ($style != '') {
            if (strpos($this->style, $style) === false) {
                $this->style .= " 
                $style ";
            }
        }
    }
1163316
public function getStyle($key)
    {
        $styles = Helpers::cssStringToArray($this->getAttribute('style'));
        return (isset($styles[$key]) ? $styles[$key] : null);
    }
1118948
public function setStyle(string $style): void
    {
        $style = strtolower($style);
        switch ($style) {
            case 'nested':
            case 'compact':
            case 'compressed':
            case 'expanded':
            case 'crunched':
                $this->flags = str_replace(" --style $this->style", '', $this->flags);
                $this->style = $style;
                $this->flags .= " --style $style";
                break;
            default:
                $this->log("Style $style ignored", Project::MSG_INFO);
        }
    }