original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: Helper method for validating encryption cipher names.
  
  @param string $encrypt The cipher name.
  @return void
  @throws \RuntimeException When an invalid cipher is provided.
docstring_tokens: Helper method for validating encryption cipher names .