protected function _checkCipher($encrypt)
    {
        if (!in_array($encrypt, $this->_validCiphers)) {
            $msg = sprintf(
                'Invalid encryption cipher. Must be one of %s or false.',
                implode(', ', $this->_validCiphers)
            );
            throw new RuntimeException($msg);
        }
    }
protected function _checkCipher($encrypt)
    {
        if (!in_array($encrypt, $this->_validCiphers)) {
            $msg = sprintf(
                'Invalid encryption cipher. Must be one of %s or false.',
                implode(', ', $this->_validCiphers)
            );
            throw new RuntimeException($msg);
        }
    }
protected function _checkCipher ( $ encrypt ) { if ( ! in_array ( $ encrypt , $ this -> _validCiphers ) ) { $ msg = sprintf ( 'Invalid encryption cipher. Must be one of %s or false.' , implode ( ', ' , $ this -> _validCiphers ) ) ; throw new RuntimeException ( $ msg ) ; } }
Helper method for validating encryption cipher names.

@param string $encrypt The cipher name.
@return void
@throws \RuntimeException When an invalid cipher is provided.
Helper method for validating encryption cipher names .