original_string: public function load()
  	{
  		if( $this->cacheType() === "data" )
  		{
  			$ref = new \ReflectionClass($this);
  			$cache_name = Str::snake($ref->getShortName());
  			$cache_data = $this->cacheData();
  
  			if( isset($cache_data["id"]) )
  			{
  				$id = $cache_data["id"];
  				unset($cache_data["id"]);
  			}
  			else
  			{
  				$id = $cache_data;
  			}
  
  			$cache = new Cache( $id, "plugin/" . $cache_name, $cache_data );
  			if( $cache->ready() )
  			{
  				$this->plugin_data = $cache->import();
  			}
  			else
  			{
  				$this->loadPluginData();
  				$cache->export($this->plugin_data);
  			}
  		}
  		else
  		{
  			$this->loadPluginData();
  		}
  
  		return $this;
  	}
code: public function load()
  	{
  		if( $this->cacheType() === "data" )
  		{
  			$ref = new \ReflectionClass($this);
  			$cache_name = Str::snake($ref->getShortName());
  			$cache_data = $this->cacheData();
  
  			if( isset($cache_data["id"]) )
  			{
  				$id = $cache_data["id"];
  				unset($cache_data["id"]);
  			}
  			else
  			{
  				$id = $cache_data;
  			}
  
  			$cache = new Cache( $id, "plugin/" . $cache_name, $cache_data );
  			if( $cache->ready() )
  			{
  				$this->plugin_data = $cache->import();
  			}
  			else
  			{
  				$this->loadPluginData();
  				$cache->export($this->plugin_data);
  			}
  		}
  		else
  		{
  			$this->loadPluginData();
  		}
  
  		return $this;
  	}
code_tokens: public function load ( ) { if ( $ this -> cacheType ( ) === "data" ) { $ ref = new \ ReflectionClass ( $ this ) ; $ cache_name = Str :: snake ( $ ref -> getShortName ( ) ) ; $ cache_data = $ this -> cacheData ( ) ; if ( isset ( $ cache_data [ "id" ] ) ) { $ id = $ cache_data [ "id" ] ; unset ( $ cache_data [ "id" ] ) ; } else { $ id = $ cache_data ; } $ cache = new Cache ( $ id , "plugin/" . $ cache_name , $ cache_data ) ; if ( $ cache -> ready ( ) ) { $ this -> plugin_data = $ cache -> import ( ) ; } else { $ this -> loadPluginData ( ) ; $ cache -> export ( $ this -> plugin_data ) ; } } else { $ this -> loadPluginData ( ) ; } return $ this ; }
docstring: Load plugin data
  @return $this
docstring_tokens: Load plugin data