protected function _guessAdapterType()
    {
        $this->_cleanFilesStack();
        if (!empty($this->files_stack)) {
            $_fs = $this->files_stack;
            $_file = array_shift($_fs);
            $this->setAdapterType($_file->getExtension());
            return true;
        } elseif (false===$this->silent) {
            throw new \RuntimeException(
                '[Compressor] Trying to guess adapter from an empty files stack!'
            );
        }
        return false;
    }
protected function _guessAdapterType()
    {
        $this->_cleanFilesStack();
        if (!empty($this->files_stack)) {
            $_fs = $this->files_stack;
            $_file = array_shift($_fs);
            $this->setAdapterType($_file->getExtension());
            return true;
        } elseif (false===$this->silent) {
            throw new \RuntimeException(
                '[Compressor] Trying to guess adapter from an empty files stack!'
            );
        }
        return false;
    }
protected function _guessAdapterType ( ) { $ this -> _cleanFilesStack ( ) ; if ( ! empty ( $ this -> files_stack ) ) { $ _fs = $ this -> files_stack ; $ _file = array_shift ( $ _fs ) ; $ this -> setAdapterType ( $ _file -> getExtension ( ) ) ; return true ; } elseif ( false === $ this -> silent ) { throw new \ RuntimeException ( '[Compressor] Trying to guess adapter from an empty files stack!' ) ; } return false ; }
Guess the adapter type based on extension of the first file in stack

@return bool True if the adapter type had been guessed
@throws \RuntimeException if no file was found in the stack
Guess the adapter type based on extension of the first file in stack