original_string: public function getItems($name, $type)
  	{
  		$namespaced = $this->namespace.':'.$name;
  
  		$key = ($type === 'queued') ? $namespaced : $namespaced.':'.$type;
  
  		if ( ! $this->exists($key)) throw new QueueNotFoundException($key);
  
  		$type = $this->type($key);
  		$length = $this->length($key, $type);
  
  		$method = 'get'.ucwords($type).'Items';
  		$items = $this->{$method}($key, $length);
  
  		return Collection::make($items);
  	}
code: public function getItems($name, $type)
  	{
  		$namespaced = $this->namespace.':'.$name;
  
  		$key = ($type === 'queued') ? $namespaced : $namespaced.':'.$type;
  
  		if ( ! $this->exists($key)) throw new QueueNotFoundException($key);
  
  		$type = $this->type($key);
  		$length = $this->length($key, $type);
  
  		$method = 'get'.ucwords($type).'Items';
  		$items = $this->{$method}($key, $length);
  
  		return Collection::make($items);
  	}
code_tokens: public function getItems ( $ name , $ type ) { $ namespaced = $ this -> namespace . ':' . $ name ; $ key = ( $ type === 'queued' ) ? $ namespaced : $ namespaced . ':' . $ type ; if ( ! $ this -> exists ( $ key ) ) throw new QueueNotFoundException ( $ key ) ; $ type = $ this -> type ( $ key ) ; $ length = $ this -> length ( $ key , $ type ) ; $ method = 'get' . ucwords ( $ type ) . 'Items' ; $ items = $ this -> { $ method } ( $ key , $ length ) ; return Collection :: make ( $ items ) ; }
docstring: Retruns a list of items for a given key.
  
  @param  string $name
  @param  string $type
  @return \Illuminate\Support\Collection
docstring_tokens: Retruns a list of items for a given key .