src/CLImate.php
protected function applyStyleMethods($name, $method_search = null)
    {
        // Get all of the possible style attributes
        $method_search = $method_search ?: array_keys($this->style->all());

        $new_name = $this->searchForStyleMethods($name, $method_search);

        // While we still have a name left and we keep finding methods,
        // loop through the possibilities
        if (strlen($new_name) > 0 && $new_name != $name) {
            return $this->applyStyleMethods($new_name, $method_search);
        }

        return $new_name;
    }
protected function applyStyleMethods($name, $method_search = null)
    {
        // Get all of the possible style attributes
        $method_search = $method_search ?: array_keys($this->style->all());

        $new_name = $this->searchForStyleMethods($name, $method_search);

        // While we still have a name left and we keep finding methods,
        // loop through the possibilities
        if (strlen($new_name) > 0 && $new_name != $name) {
            return $this->applyStyleMethods($new_name, $method_search);
        }

        return $new_name;
    }
protected function applyStyleMethods ( $ name , $ method_search = null ) { // Get all of the possible style attributes $ method_search = $ method_search ? : array_keys ( $ this -> style -> all ( ) ) ; $ new_name = $ this -> searchForStyleMethods ( $ name , $ method_search ) ; // While we still have a name left and we keep finding methods, // loop through the possibilities if ( strlen ( $ new_name ) > 0 && $ new_name != $ name ) { return $ this -> applyStyleMethods ( $ new_name , $ method_search ) ; } return $ new_name ; }
Search for any style methods within the name and apply them

@param  string $name
@param  array $method_search

@return string Anything left over after applying styles
Search for any style methods within the name and apply them