src/ConsoleColor.php
public function styleWasCalled($name)
    {
        $name = $this->snakeCase($name);
        $supportedStyles = $this->getSupportedStyles();

        if ($code = $this->searchStyle($name, $supportedStyles)) {
            $this->mergeToCurrent($code);

            return true;
        }

        throw new StyleNotFoundException("Invalid style {$name}.");
    }
public function styleWasCalled($name)
    {
        $name = $this->snakeCase($name);
        $supportedStyles = $this->getSupportedStyles();

        if ($code = $this->searchStyle($name, $supportedStyles)) {
            $this->mergeToCurrent($code);

            return true;
        }

        throw new StyleNotFoundException("Invalid style {$name}.");
    }
public function styleWasCalled ( $ name ) { $ name = $ this -> snakeCase ( $ name ) ; $ supportedStyles = $ this -> getSupportedStyles ( ) ; if ( $ code = $ this -> searchStyle ( $ name , $ supportedStyles ) ) { $ this -> mergeToCurrent ( $ code ) ; return true ; } throw new StyleNotFoundException ( "Invalid style {$name}." ) ; }
@param string $name

@throws StyleNotFoundException

@return bool
@param string $name