Creates a new Dashes object in the given style.

@param string   $style    The dash style.
@param Settings $settings The current settings.

@return Dashes|null Returns null in case of an invalid $style parameter.
434901
public static function get_styled_dashes( $style, /** Currently unused. @scrutinizer ignore-unused */ Settings $settings ) {
		if ( isset( self::$styles[ $style ] ) ) {
			return new Simple_Dashes(
				self::$styles[ $style ][ self::_PARENTHETICAL ],
				self::$styles[ $style ][ self::_PARENTHETICAL_SPACE ],
				self::$styles[ $style ][ self::_INTERVAL ],
				self::$styles[ $style ][ self::_INTERVAL_SPACE ]
			);
		}

		return null;
	}
170163
public function line(Array $settings = []) : GD
    {
        $x1   = $settings['x1']    ?? $this->x1    ?? 0;
        $y1   = $settings['y1']    ?? $this->y1    ?? 0;
        $x2   = $settings['x2']    ?? $this->x2    ?? 0;
        $y2   = $settings['y2']    ?? $this->y2    ?? 0;
        $rgb  = $settings['color'] ?? $this->color ?? '0|0|0';
        $type = $settings['type']  ?? $this->type  ?? 'solid';
        
        if( $type === 'solid' )
        {
            imageline($this->canvas, $x1, $y1, $x2, $y2, $this->allocate($rgb));
        }
        elseif( $type === 'dashed' )
        {
            imagedashedline($this->canvas, $x1, $y1, $x2, $y2, $this->allocate($rgb));
        }

        $this->defaultRevolvingVariables();

        return $this;
    }
331069
public function fill(Array $settings = []) : GD
    {
        $x           = $settings['x']           ?? $this->x           ?? 0;
        $y           = $settings['y']           ?? $this->y           ?? 0;
        $color       = $settings['color']       ?? $this->color       ?? '0|0|0';
        $borderColor = $settings['borderColor'] ?? $this->borderColor ?? NULL;
        
        if( $borderColor === NULL )
        {
            imagefill($this->canvas, $x, $y, $this->allocate($color));
        }
        else
        {
            imagefilltoborder($this->canvas, $x, $y, $this->allocate($borderColor), $this->allocate($color));
        }

        $this->defaultRevolvingVariables();

        return $this;
    }
1268523
public function &createInline($styles): CssObjectInterface
    {
        $css = new CssObject();

        $css->setType($css::TYPE_INLINE);
        $css->setContent($styles);

        $this->addObject($css);

        return $css;
    }
1119653
public function setStyle($style) {
		$this->owner->ButtonStyle = trim(strtolower($style));
		return $this->owner;
	}
570836
public static function getResetSequence($style = null)
    {
        $resetSequence = Style::getResetSequence();

        if (!is_null($style)) {
            switch (true) {
                case in_array($style, Color::enum()):
                    $resetSequence = Color::getResetSequence();
                    break;
                case in_array($style, BackgroundColor::enum()):
                    $resetSequence = BackgroundColor::getResetSequence();
                    break;
            }
        }

        return $resetSequence;
    }
137730
public function addStyle($style) {
        $style = trim($style);
        if ($style != '') {
            if (strpos($this->style, $style) === false) {
                $this->style .= " 
                $style ";
            }
        }
    }
695030
public function setStyle(string $style): Bootstrap3Label
    {
        if (in_array($style, $this->supported_styles) === true) {
            $this->style = $style;
        } else {
            $this->style = 'default';
        }

        return $this;
    }
1163316
public function getStyle($key)
    {
        $styles = Helpers::cssStringToArray($this->getAttribute('style'));
        return (isset($styles[$key]) ? $styles[$key] : null);
    }
443588
public function getJavascript(&$javascripts, Settings $settings)
    {
        if ($this->linktype == LinkConstants::LINK_JAVASCRIPT) {
            $javascripts[$this->getIdType() . $settings->getPrefix() . $this->getId()] = $this->javascript;
        }
    }
1327704
public function addStyle($style,$options=array())
    {
        $options["type"] = Utility::get($options, "type", "text/css");

        $this->tags[md5($style)] = array(
            "at"=>'begin',
            "tag"=>"style",
            "options"=>$options,
            "content"=>$style,
        );
        return $this;
    }
1017860
static public function formatSettings($settings)
    {
        if (isset($settings) && is_string($settings)) {
            $settings['class'] = $settings;
        }
        
        $settings['style'] = isset($settings['style']) ? $settings['style'] : '';
        if (isset($settings['width'])) {
            $settings['style'] .= ';width:' . $settings['width'] . ';max-width:' . $settings['width'] . ';';
        }
        if (isset($settings['height'])) {
            $settings['style'] .= ';height:' . $settings['height'] . ';';
        }
        $settings['style'] = trim(str_replace(';;', ';', $settings['style']), ';');
        
        return $settings;
    }
147791
public function addStyle(Style $style)
    {
        if (!in_array($style, $this->styles, true)) {
            array_push($this->styles, $style);
        }
        return $this;
    }
600735
public function setStyle(\Jstewmc\Rtf\Style $style = null)
	{
		$this->style = $style;
		
		return $this;
	}
1156564
static function instance( $settings = array() )
    {
        if (
            !isset( $GLOBALS['eZScriptInstance'] )
            || !( $GLOBALS['eZScriptInstance'] instanceof eZScript )
        )
        {
            $GLOBALS['eZScriptInstance'] = new eZScript( $settings );
        }
        else if ( !empty( $settings ) )
        {
            $GLOBALS['eZScriptInstance']->updateSettings( $settings );
        }

        return $GLOBALS['eZScriptInstance'];
    }
448260
public function style($style)
    {
        if (in_array($style, ['arrow', 'dot', 'bar'])) {
            $this->attributes->removeAttributeClass('breadcrumb-*');
            $this->attributes->addAttributeClass('breadcrumb-' . $style);
        }

        return $this;
    }
934563
private function appendStyles(array $styles)
    {
        if (empty($styles)) {
            return;
        }

        $string = '';
        $prependSemicolon = false;
        foreach ($styles as $key => $value) {
            if ($prependSemicolon) {
                $string .= '; ';
            }
            $prependSemicolon = true;
            $string .= $key.': '.$value;
        }

        $this->appendAttribute('style', $string);
    }