original_string: public function init()
  	{
  		parent::init();
  		if (! empty($this->theme) && ! in_array($this->theme, $this->_supportedThemes)) {
  			throw new InvalidConfigException('Unsupported built-in theme : ' . $this->theme);
  		}
  		if (isset($this->pluginOptions['animation']) && ! in_array($this->pluginOptions['animation'], $this->_supportedAnimation)) {
  			throw new InvalidConfigException('Unsupported animation mode : ' . $this->pluginOptions['animation']);
  		}
  	}
code: public function init()
  	{
  		parent::init();
  		if (! empty($this->theme) && ! in_array($this->theme, $this->_supportedThemes)) {
  			throw new InvalidConfigException('Unsupported built-in theme : ' . $this->theme);
  		}
  		if (isset($this->pluginOptions['animation']) && ! in_array($this->pluginOptions['animation'], $this->_supportedAnimation)) {
  			throw new InvalidConfigException('Unsupported animation mode : ' . $this->pluginOptions['animation']);
  		}
  	}
code_tokens: public function init ( ) { parent :: init ( ) ; if ( ! empty ( $ this -> theme ) && ! in_array ( $ this -> theme , $ this -> _supportedThemes ) ) { throw new InvalidConfigException ( 'Unsupported built-in theme : ' . $ this -> theme ) ; } if ( isset ( $ this -> pluginOptions [ 'animation' ] ) && ! in_array ( $ this -> pluginOptions [ 'animation' ] , $ this -> _supportedAnimation ) ) { throw new InvalidConfigException ( 'Unsupported animation mode : ' . $ this -> pluginOptions [ 'animation' ] ) ; } }
docstring: Chekcs validity of theme and animation options
docstring_tokens: Chekcs validity of theme and animation options