protected function detectGroupFromExtension()
    {
        $extension = pathinfo($this->absolutePath, PATHINFO_EXTENSION);

        foreach (array('stylesheets', 'javascripts') as $group)
        {
            if (in_array($extension, $this->allowedExtensions[$group]))
            {
                return $group;
            }
        }
    }
protected function detectGroupFromExtension()
    {
        $extension = pathinfo($this->absolutePath, PATHINFO_EXTENSION);

        foreach (array('stylesheets', 'javascripts') as $group)
        {
            if (in_array($extension, $this->allowedExtensions[$group]))
            {
                return $group;
            }
        }
    }
protected function detectGroupFromExtension ( ) { $ extension = pathinfo ( $ this -> absolutePath , PATHINFO_EXTENSION ) ; foreach ( array ( 'stylesheets' , 'javascripts' ) as $ group ) { if ( in_array ( $ extension , $ this -> allowedExtensions [ $ group ] ) ) { return $ group ; } } }
Detect group from the assets extension.

@return string
Detect group from the assets extension .